sfdx-browserforce-plugin 5.0.2 → 5.1.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/package.json +1 -4
- package/lib/browserforce-command.d.ts +0 -15
- package/lib/browserforce-command.js +0 -61
- package/lib/browserforce-command.js.map +0 -1
- package/lib/browserforce.d.ts +0 -25
- package/lib/browserforce.js +0 -169
- package/lib/browserforce.js.map +0 -1
- package/lib/commands/browserforce/apply.d.ts +0 -10
- package/lib/commands/browserforce/apply.js +0 -54
- package/lib/commands/browserforce/apply.js.map +0 -1
- package/lib/commands/browserforce/plan.d.ts +0 -10
- package/lib/commands/browserforce/plan.js +0 -56
- package/lib/commands/browserforce/plan.js.map +0 -1
- package/lib/config-parser.d.ts +0 -16
- package/lib/config-parser.js +0 -24
- package/lib/config-parser.js.map +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -2
- package/lib/index.js.map +0 -1
- package/lib/jsforce-utils.d.ts +0 -5
- package/lib/jsforce-utils.js +0 -14
- package/lib/jsforce-utils.js.map +0 -1
- package/lib/pages/login.d.ts +0 -8
- package/lib/pages/login.js +0 -39
- package/lib/pages/login.js.map +0 -1
- package/lib/plugin.d.ts +0 -17
- package/lib/plugin.js +0 -30
- package/lib/plugin.js.map +0 -1
- package/lib/plugins/activity-settings/index.d.ts +0 -9
- package/lib/plugins/activity-settings/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/activity-settings/index.e2e-spec.js +0 -36
- package/lib/plugins/activity-settings/index.e2e-spec.js.map +0 -1
- package/lib/plugins/activity-settings/index.js +0 -31
- package/lib/plugins/activity-settings/index.js.map +0 -1
- package/lib/plugins/company-information/index.d.ts +0 -8
- package/lib/plugins/company-information/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/company-information/index.e2e-spec.js +0 -37
- package/lib/plugins/company-information/index.e2e-spec.js.map +0 -1
- package/lib/plugins/company-information/index.js +0 -50
- package/lib/plugins/company-information/index.js.map +0 -1
- package/lib/plugins/customer-portal/available-custom-objects/index.d.ts +0 -14
- package/lib/plugins/customer-portal/available-custom-objects/index.js +0 -114
- package/lib/plugins/customer-portal/available-custom-objects/index.js.map +0 -1
- package/lib/plugins/customer-portal/available-custom-objects/index.test.d.ts +0 -1
- package/lib/plugins/customer-portal/available-custom-objects/index.test.js +0 -39
- package/lib/plugins/customer-portal/available-custom-objects/index.test.js.map +0 -1
- package/lib/plugins/customer-portal/enabled/index.d.ts +0 -6
- package/lib/plugins/customer-portal/enabled/index.js +0 -27
- package/lib/plugins/customer-portal/enabled/index.js.map +0 -1
- package/lib/plugins/customer-portal/enabled/index.test.d.ts +0 -1
- package/lib/plugins/customer-portal/enabled/index.test.js +0 -34
- package/lib/plugins/customer-portal/enabled/index.test.js.map +0 -1
- package/lib/plugins/customer-portal/index.d.ts +0 -15
- package/lib/plugins/customer-portal/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/customer-portal/index.e2e-spec.js +0 -202
- package/lib/plugins/customer-portal/index.e2e-spec.js.map +0 -1
- package/lib/plugins/customer-portal/index.js +0 -59
- package/lib/plugins/customer-portal/index.js.map +0 -1
- package/lib/plugins/customer-portal/index.test.d.ts +0 -1
- package/lib/plugins/customer-portal/index.test.js +0 -84
- package/lib/plugins/customer-portal/index.test.js.map +0 -1
- package/lib/plugins/customer-portal/portals/index.d.ts +0 -25
- package/lib/plugins/customer-portal/portals/index.js +0 -180
- package/lib/plugins/customer-portal/portals/index.js.map +0 -1
- package/lib/plugins/customer-portal/portals/index.test.d.ts +0 -1
- package/lib/plugins/customer-portal/portals/index.test.js +0 -140
- package/lib/plugins/customer-portal/portals/index.test.js.map +0 -1
- package/lib/plugins/density-settings/index.d.ts +0 -17
- package/lib/plugins/density-settings/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/density-settings/index.e2e-spec.js +0 -39
- package/lib/plugins/density-settings/index.e2e-spec.js.map +0 -1
- package/lib/plugins/density-settings/index.js +0 -46
- package/lib/plugins/density-settings/index.js.map +0 -1
- package/lib/plugins/deprecated.d.ts +0 -4
- package/lib/plugins/deprecated.js +0 -28
- package/lib/plugins/deprecated.js.map +0 -1
- package/lib/plugins/email-deliverability/index.d.ts +0 -9
- package/lib/plugins/email-deliverability/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/email-deliverability/index.e2e-spec.js +0 -55
- package/lib/plugins/email-deliverability/index.e2e-spec.js.map +0 -1
- package/lib/plugins/email-deliverability/index.js +0 -39
- package/lib/plugins/email-deliverability/index.js.map +0 -1
- package/lib/plugins/high-velocity-sales-settings/index.d.ts +0 -10
- package/lib/plugins/high-velocity-sales-settings/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/high-velocity-sales-settings/index.e2e-spec.js +0 -29
- package/lib/plugins/high-velocity-sales-settings/index.e2e-spec.js.map +0 -1
- package/lib/plugins/high-velocity-sales-settings/index.js +0 -42
- package/lib/plugins/high-velocity-sales-settings/index.js.map +0 -1
- package/lib/plugins/high-velocity-sales-settings/page.d.ts +0 -7
- package/lib/plugins/high-velocity-sales-settings/page.js +0 -29
- package/lib/plugins/high-velocity-sales-settings/page.js.map +0 -1
- package/lib/plugins/history-tracking/index.d.ts +0 -17
- package/lib/plugins/history-tracking/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/history-tracking/index.e2e-spec.js +0 -106
- package/lib/plugins/history-tracking/index.e2e-spec.js.map +0 -1
- package/lib/plugins/history-tracking/index.js +0 -169
- package/lib/plugins/history-tracking/index.js.map +0 -1
- package/lib/plugins/home-page-layouts/index.d.ts +0 -14
- package/lib/plugins/home-page-layouts/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/home-page-layouts/index.e2e-spec.js +0 -47
- package/lib/plugins/home-page-layouts/index.e2e-spec.js.map +0 -1
- package/lib/plugins/home-page-layouts/index.js +0 -90
- package/lib/plugins/home-page-layouts/index.js.map +0 -1
- package/lib/plugins/home-page-layouts/index.test.d.ts +0 -1
- package/lib/plugins/home-page-layouts/index.test.js +0 -104
- package/lib/plugins/home-page-layouts/index.test.js.map +0 -1
- package/lib/plugins/index.d.ts +0 -23
- package/lib/plugins/index.js +0 -24
- package/lib/plugins/index.js.map +0 -1
- package/lib/plugins/lightning-experience-settings/index.d.ts +0 -18
- package/lib/plugins/lightning-experience-settings/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/lightning-experience-settings/index.e2e-spec.js +0 -40
- package/lib/plugins/lightning-experience-settings/index.e2e-spec.js.map +0 -1
- package/lib/plugins/lightning-experience-settings/index.js +0 -97
- package/lib/plugins/lightning-experience-settings/index.js.map +0 -1
- package/lib/plugins/linkedin-sales-navigator-settings/index.d.ts +0 -8
- package/lib/plugins/linkedin-sales-navigator-settings/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/linkedin-sales-navigator-settings/index.e2e-spec.js +0 -29
- package/lib/plugins/linkedin-sales-navigator-settings/index.e2e-spec.js.map +0 -1
- package/lib/plugins/linkedin-sales-navigator-settings/index.js +0 -15
- package/lib/plugins/linkedin-sales-navigator-settings/index.js.map +0 -1
- package/lib/plugins/linkedin-sales-navigator-settings/page.d.ts +0 -8
- package/lib/plugins/linkedin-sales-navigator-settings/page.js +0 -32
- package/lib/plugins/linkedin-sales-navigator-settings/page.js.map +0 -1
- package/lib/plugins/omni-channel-settings/index.d.ts +0 -9
- package/lib/plugins/omni-channel-settings/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/omni-channel-settings/index.e2e-spec.js +0 -26
- package/lib/plugins/omni-channel-settings/index.e2e-spec.js.map +0 -1
- package/lib/plugins/omni-channel-settings/index.js +0 -29
- package/lib/plugins/omni-channel-settings/index.js.map +0 -1
- package/lib/plugins/opportunity-splits/index.d.ts +0 -9
- package/lib/plugins/opportunity-splits/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/opportunity-splits/index.e2e-spec.js +0 -46
- package/lib/plugins/opportunity-splits/index.e2e-spec.js.map +0 -1
- package/lib/plugins/opportunity-splits/index.js +0 -32
- package/lib/plugins/opportunity-splits/index.js.map +0 -1
- package/lib/plugins/opportunity-splits/pages/layout-selection.d.ts +0 -8
- package/lib/plugins/opportunity-splits/pages/layout-selection.js +0 -17
- package/lib/plugins/opportunity-splits/pages/layout-selection.js.map +0 -1
- package/lib/plugins/opportunity-splits/pages/overview.d.ts +0 -10
- package/lib/plugins/opportunity-splits/pages/overview.js +0 -38
- package/lib/plugins/opportunity-splits/pages/overview.js.map +0 -1
- package/lib/plugins/opportunity-splits/pages/setup.d.ts +0 -8
- package/lib/plugins/opportunity-splits/pages/setup.js +0 -19
- package/lib/plugins/opportunity-splits/pages/setup.js.map +0 -1
- package/lib/plugins/permission-sets/index.d.ts +0 -10
- package/lib/plugins/permission-sets/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/permission-sets/index.e2e-spec.js +0 -36
- package/lib/plugins/permission-sets/index.e2e-spec.js.map +0 -1
- package/lib/plugins/permission-sets/index.js +0 -22
- package/lib/plugins/permission-sets/index.js.map +0 -1
- package/lib/plugins/permission-sets/service-presence-status/index.d.ts +0 -10
- package/lib/plugins/permission-sets/service-presence-status/index.js +0 -60
- package/lib/plugins/permission-sets/service-presence-status/index.js.map +0 -1
- package/lib/plugins/picklists/field-dependencies/index.d.ts +0 -11
- package/lib/plugins/picklists/field-dependencies/index.js +0 -56
- package/lib/plugins/picklists/field-dependencies/index.js.map +0 -1
- package/lib/plugins/picklists/field-dependencies/index.test.d.ts +0 -1
- package/lib/plugins/picklists/field-dependencies/index.test.js +0 -64
- package/lib/plugins/picklists/field-dependencies/index.test.js.map +0 -1
- package/lib/plugins/picklists/field-dependencies/pages.d.ts +0 -14
- package/lib/plugins/picklists/field-dependencies/pages.js +0 -57
- package/lib/plugins/picklists/field-dependencies/pages.js.map +0 -1
- package/lib/plugins/picklists/index.d.ts +0 -23
- package/lib/plugins/picklists/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/picklists/index.e2e-spec.js +0 -100
- package/lib/plugins/picklists/index.e2e-spec.js.map +0 -1
- package/lib/plugins/picklists/index.js +0 -153
- package/lib/plugins/picklists/index.js.map +0 -1
- package/lib/plugins/picklists/pages.d.ts +0 -40
- package/lib/plugins/picklists/pages.js +0 -194
- package/lib/plugins/picklists/pages.js.map +0 -1
- package/lib/plugins/picklists/standard-value-set.d.ts +0 -1
- package/lib/plugins/picklists/standard-value-set.js +0 -80
- package/lib/plugins/picklists/standard-value-set.js.map +0 -1
- package/lib/plugins/record-types/index.d.ts +0 -13
- package/lib/plugins/record-types/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/record-types/index.e2e-spec.js +0 -73
- package/lib/plugins/record-types/index.e2e-spec.js.map +0 -1
- package/lib/plugins/record-types/index.js +0 -70
- package/lib/plugins/record-types/index.js.map +0 -1
- package/lib/plugins/record-types/pages.d.ts +0 -15
- package/lib/plugins/record-types/pages.js +0 -64
- package/lib/plugins/record-types/pages.js.map +0 -1
- package/lib/plugins/relate-contact-to-multiple-accounts/index.d.ts +0 -11
- package/lib/plugins/relate-contact-to-multiple-accounts/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/relate-contact-to-multiple-accounts/index.e2e-spec.js +0 -29
- package/lib/plugins/relate-contact-to-multiple-accounts/index.e2e-spec.js.map +0 -1
- package/lib/plugins/relate-contact-to-multiple-accounts/index.js +0 -72
- package/lib/plugins/relate-contact-to-multiple-accounts/index.js.map +0 -1
- package/lib/plugins/reports-and-dashboards/folder-sharing/index.d.ts +0 -8
- package/lib/plugins/reports-and-dashboards/folder-sharing/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/reports-and-dashboards/folder-sharing/index.e2e-spec.js +0 -3
- package/lib/plugins/reports-and-dashboards/folder-sharing/index.e2e-spec.js.map +0 -1
- package/lib/plugins/reports-and-dashboards/folder-sharing/index.js +0 -50
- package/lib/plugins/reports-and-dashboards/folder-sharing/index.js.map +0 -1
- package/lib/plugins/reports-and-dashboards/index.d.ts +0 -11
- package/lib/plugins/reports-and-dashboards/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/reports-and-dashboards/index.e2e-spec.js +0 -3
- package/lib/plugins/reports-and-dashboards/index.e2e-spec.js.map +0 -1
- package/lib/plugins/reports-and-dashboards/index.js +0 -29
- package/lib/plugins/reports-and-dashboards/index.js.map +0 -1
- package/lib/plugins/salesforce-cpq-config/formConfig.d.ts +0 -17
- package/lib/plugins/salesforce-cpq-config/formConfig.js +0 -649
- package/lib/plugins/salesforce-cpq-config/formConfig.js.map +0 -1
- package/lib/plugins/salesforce-cpq-config/index.d.ts +0 -7
- package/lib/plugins/salesforce-cpq-config/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/salesforce-cpq-config/index.e2e-spec.js +0 -37
- package/lib/plugins/salesforce-cpq-config/index.e2e-spec.js.map +0 -1
- package/lib/plugins/salesforce-cpq-config/index.js +0 -195
- package/lib/plugins/salesforce-cpq-config/index.js.map +0 -1
- package/lib/plugins/salesforce-to-salesforce/index.d.ts +0 -9
- package/lib/plugins/salesforce-to-salesforce/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/salesforce-to-salesforce/index.e2e-spec.js +0 -34
- package/lib/plugins/salesforce-to-salesforce/index.e2e-spec.js.map +0 -1
- package/lib/plugins/salesforce-to-salesforce/index.js +0 -44
- package/lib/plugins/salesforce-to-salesforce/index.js.map +0 -1
- package/lib/plugins/security/authentication-configuration/index.d.ts +0 -11
- package/lib/plugins/security/authentication-configuration/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/security/authentication-configuration/index.e2e-spec.js +0 -101
- package/lib/plugins/security/authentication-configuration/index.e2e-spec.js.map +0 -1
- package/lib/plugins/security/authentication-configuration/index.js +0 -62
- package/lib/plugins/security/authentication-configuration/index.js.map +0 -1
- package/lib/plugins/security/certificate-and-key-management/index.d.ts +0 -23
- package/lib/plugins/security/certificate-and-key-management/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/security/certificate-and-key-management/index.e2e-spec.js +0 -63
- package/lib/plugins/security/certificate-and-key-management/index.e2e-spec.js.map +0 -1
- package/lib/plugins/security/certificate-and-key-management/index.js +0 -159
- package/lib/plugins/security/certificate-and-key-management/index.js.map +0 -1
- package/lib/plugins/security/certificate-and-key-management/index.test.d.ts +0 -1
- package/lib/plugins/security/certificate-and-key-management/index.test.js +0 -61
- package/lib/plugins/security/certificate-and-key-management/index.test.js.map +0 -1
- package/lib/plugins/security/index.d.ts +0 -13
- package/lib/plugins/security/index.js +0 -42
- package/lib/plugins/security/index.js.map +0 -1
- package/lib/plugins/service-channels/capacity/index.d.ts +0 -18
- package/lib/plugins/service-channels/capacity/index.js +0 -133
- package/lib/plugins/service-channels/capacity/index.js.map +0 -1
- package/lib/plugins/service-channels/index.d.ts +0 -12
- package/lib/plugins/service-channels/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/service-channels/index.e2e-spec.js +0 -57
- package/lib/plugins/service-channels/index.e2e-spec.js.map +0 -1
- package/lib/plugins/service-channels/index.js +0 -38
- package/lib/plugins/service-channels/index.js.map +0 -1
- package/lib/plugins/slack/index.d.ts +0 -9
- package/lib/plugins/slack/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/slack/index.e2e-spec.js +0 -47
- package/lib/plugins/slack/index.e2e-spec.js.map +0 -1
- package/lib/plugins/slack/index.js +0 -47
- package/lib/plugins/slack/index.js.map +0 -1
- package/lib/plugins/utils.d.ts +0 -3
- package/lib/plugins/utils.js +0 -47
- package/lib/plugins/utils.js.map +0 -1
- package/oclif.manifest.json +0 -163
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import assert from 'assert';
|
|
2
|
-
import * as child from 'child_process';
|
|
3
|
-
import { fileURLToPath } from 'node:url';
|
|
4
|
-
import * as path from 'path';
|
|
5
|
-
import { HistoryTracking } from './index.js';
|
|
6
|
-
const __dirname = fileURLToPath(new URL('.', import.meta.url));
|
|
7
|
-
describe(HistoryTracking.name, function () {
|
|
8
|
-
let plugin;
|
|
9
|
-
before(() => {
|
|
10
|
-
plugin = new HistoryTracking(global.bf);
|
|
11
|
-
});
|
|
12
|
-
const enableHistoryTracking = [
|
|
13
|
-
{
|
|
14
|
-
objectApiName: 'Account',
|
|
15
|
-
enableHistoryTracking: true,
|
|
16
|
-
fieldHistoryTracking: [
|
|
17
|
-
{
|
|
18
|
-
fieldApiName: 'PersonBirthdate',
|
|
19
|
-
enableHistoryTracking: true,
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
fieldApiName: 'Test__pc',
|
|
23
|
-
enableHistoryTracking: true,
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
objectApiName: 'Opportunity',
|
|
29
|
-
enableHistoryTracking: true,
|
|
30
|
-
fieldHistoryTracking: [
|
|
31
|
-
{
|
|
32
|
-
fieldApiName: 'Type',
|
|
33
|
-
enableHistoryTracking: true,
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
objectApiName: 'Test__c',
|
|
39
|
-
fieldHistoryTracking: [
|
|
40
|
-
{
|
|
41
|
-
fieldApiName: 'Owner',
|
|
42
|
-
enableHistoryTracking: true,
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
fieldApiName: 'Test__c',
|
|
46
|
-
enableHistoryTracking: true,
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
},
|
|
50
|
-
];
|
|
51
|
-
const disableHistoryTracking = [
|
|
52
|
-
{
|
|
53
|
-
objectApiName: 'Account',
|
|
54
|
-
enableHistoryTracking: true,
|
|
55
|
-
fieldHistoryTracking: [
|
|
56
|
-
{
|
|
57
|
-
fieldApiName: 'PersonBirthdate',
|
|
58
|
-
enableHistoryTracking: false,
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
fieldApiName: 'Test__pc',
|
|
62
|
-
enableHistoryTracking: true,
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
objectApiName: 'Opportunity',
|
|
68
|
-
enableHistoryTracking: false,
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
objectApiName: 'Test__c',
|
|
72
|
-
fieldHistoryTracking: [
|
|
73
|
-
{
|
|
74
|
-
fieldApiName: 'Owner',
|
|
75
|
-
enableHistoryTracking: true,
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
fieldApiName: 'Test__c',
|
|
79
|
-
enableHistoryTracking: false,
|
|
80
|
-
},
|
|
81
|
-
],
|
|
82
|
-
},
|
|
83
|
-
];
|
|
84
|
-
it('should create custom object and fields as a prerequisite', () => {
|
|
85
|
-
const sourceDeployCmd = child.spawnSync('sf', [
|
|
86
|
-
'project',
|
|
87
|
-
'deploy',
|
|
88
|
-
'start',
|
|
89
|
-
'-d',
|
|
90
|
-
path.join(__dirname, 'sfdx-source'),
|
|
91
|
-
'--json',
|
|
92
|
-
]);
|
|
93
|
-
assert.deepStrictEqual(sourceDeployCmd.status, 0, sourceDeployCmd.output.toString());
|
|
94
|
-
});
|
|
95
|
-
it('should enable history tracking for objects and fields', async () => {
|
|
96
|
-
await plugin.run(enableHistoryTracking);
|
|
97
|
-
const res = await plugin.retrieve(enableHistoryTracking);
|
|
98
|
-
assert.deepStrictEqual(res, enableHistoryTracking);
|
|
99
|
-
});
|
|
100
|
-
it('should disable history tracking for objects and fields', async () => {
|
|
101
|
-
await plugin.run(disableHistoryTracking);
|
|
102
|
-
const res = await plugin.retrieve(disableHistoryTracking);
|
|
103
|
-
assert.deepStrictEqual(res, disableHistoryTracking);
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
//# sourceMappingURL=index.e2e-spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.e2e-spec.js","sourceRoot":"","sources":["../../../src/plugins/history-tracking/index.e2e-spec.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,I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@
|
|
|
1
|
-
import { BrowserforcePlugin } from '../../plugin.js';
|
|
2
|
-
const BASE_PATH = 'ui/setup/layout/FieldHistoryTracking?pEntity={APINAME}';
|
|
3
|
-
const ENABLE_HISTORY_SELECTOR = 'input[id="enable"][type="checkbox"][name="enable"]';
|
|
4
|
-
const ENABLE_FIELD_HISTORY_SELECTOR = 'input[id="{APINAME}_fht"]';
|
|
5
|
-
const SAVE_BUTTON_SELECTOR = 'input[class="btn"][type="submit"][name="save"][title="Save"]';
|
|
6
|
-
export class HistoryTracking extends BrowserforcePlugin {
|
|
7
|
-
async retrieve(definition) {
|
|
8
|
-
const historyTrackingConfigs = [];
|
|
9
|
-
// We first need to retrieve the corresponding CustomField.TableOrEnumId for all objects
|
|
10
|
-
// This is in case we have field tracking configured for custom fields
|
|
11
|
-
const tableEnumOrIdByObjectApiName = await this.getTableEnumOrIdByObjectApiName(definition);
|
|
12
|
-
// Now we can iterate over all history tracking configurations in the definition
|
|
13
|
-
for await (const historyTrackingConfig of definition) {
|
|
14
|
-
const historyTrackingResult = { ...historyTrackingConfig };
|
|
15
|
-
// Open the object history tracking setup page
|
|
16
|
-
const page = await this.browserforce.openPage(BASE_PATH.replace('{APINAME}', tableEnumOrIdByObjectApiName.get(historyTrackingConfig.objectApiName)));
|
|
17
|
-
// Retrieve the object history tracking
|
|
18
|
-
// If this is a custom object, this checkbox does not exist, so skip
|
|
19
|
-
if (!historyTrackingConfig.objectApiName.includes('__c')) {
|
|
20
|
-
await page.waitForSelector(ENABLE_HISTORY_SELECTOR);
|
|
21
|
-
historyTrackingResult.enableHistoryTracking = await page.$eval(ENABLE_HISTORY_SELECTOR, (el) => (el.getAttribute('checked') === 'checked' ? true : false));
|
|
22
|
-
}
|
|
23
|
-
// If we have no field history tracking, there is nothing more to do
|
|
24
|
-
if (!historyTrackingConfig.fieldHistoryTracking) {
|
|
25
|
-
historyTrackingConfigs.push(historyTrackingResult);
|
|
26
|
-
continue;
|
|
27
|
-
}
|
|
28
|
-
const fieldHistoryTrackingConfigs = [];
|
|
29
|
-
// If the object history tracking is false, then we already know all field history tracking is false
|
|
30
|
-
// Only so long as this is a standard object
|
|
31
|
-
if (!historyTrackingResult.enableHistoryTracking &&
|
|
32
|
-
!historyTrackingConfig.objectApiName.includes('__c')) {
|
|
33
|
-
for (const fieldHistoryTracking of historyTrackingConfig.fieldHistoryTracking) {
|
|
34
|
-
fieldHistoryTrackingConfigs.push({
|
|
35
|
-
...fieldHistoryTracking,
|
|
36
|
-
enableHistoryTracking: false,
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
historyTrackingResult.fieldHistoryTracking =
|
|
40
|
-
fieldHistoryTrackingConfigs;
|
|
41
|
-
historyTrackingConfigs.push(historyTrackingResult);
|
|
42
|
-
continue;
|
|
43
|
-
}
|
|
44
|
-
// We need to determine the correct html selector for each field that is configured
|
|
45
|
-
// This is because custom fields are identified using their CustomField.Id value
|
|
46
|
-
const fieldSelectorByFieldApiName = await this.getFieldSelectorByFieldApiName(tableEnumOrIdByObjectApiName.get(historyTrackingConfig.objectApiName), historyTrackingConfig.fieldHistoryTracking);
|
|
47
|
-
// We can now retrieve the field history settings for the fields specified for the object
|
|
48
|
-
for await (const fieldHistoryTracking of historyTrackingConfig.fieldHistoryTracking) {
|
|
49
|
-
const fieldHistoryTrackingResult = { ...fieldHistoryTracking };
|
|
50
|
-
const fieldApiName = fieldSelectorByFieldApiName.get(fieldHistoryTracking.fieldApiName);
|
|
51
|
-
fieldHistoryTrackingResult.enableHistoryTracking = await page.$eval(ENABLE_FIELD_HISTORY_SELECTOR.replace('{APINAME}', fieldApiName), (el) => (el.getAttribute('checked') === 'checked' ? true : false));
|
|
52
|
-
fieldHistoryTrackingConfigs.push(fieldHistoryTrackingResult);
|
|
53
|
-
}
|
|
54
|
-
historyTrackingResult.fieldHistoryTracking = fieldHistoryTrackingConfigs;
|
|
55
|
-
historyTrackingConfigs.push(historyTrackingResult);
|
|
56
|
-
}
|
|
57
|
-
return historyTrackingConfigs;
|
|
58
|
-
}
|
|
59
|
-
async apply(plan) {
|
|
60
|
-
// We first need to retrieve the corresponding CustomField.TableOrEnumId for all objects
|
|
61
|
-
// This is in case we are configuring field tracking for custom fields
|
|
62
|
-
const tableEnumOrIdByObjectApiName = await this.getTableEnumOrIdByObjectApiName(plan);
|
|
63
|
-
// Now we can iterate over all history tracking configurations in the plan
|
|
64
|
-
for await (const historyTrackingConfig of plan) {
|
|
65
|
-
// Open the object history tracking setup page
|
|
66
|
-
const page = await this.browserforce.openPage(BASE_PATH.replace('{APINAME}', tableEnumOrIdByObjectApiName.get(historyTrackingConfig.objectApiName)));
|
|
67
|
-
// Retrieve the object history tracking
|
|
68
|
-
// If this is a custom object, this checkbox does not exist, so skip
|
|
69
|
-
if (!historyTrackingConfig.objectApiName.includes('__c')) {
|
|
70
|
-
await page.waitForSelector(ENABLE_HISTORY_SELECTOR);
|
|
71
|
-
const historyTrackingEnabled = await page.$eval(ENABLE_HISTORY_SELECTOR, (el) => (el.getAttribute('checked') === 'checked' ? true : false));
|
|
72
|
-
if (historyTrackingConfig.enableHistoryTracking !== historyTrackingEnabled) {
|
|
73
|
-
// Click the checkbox
|
|
74
|
-
const enableHistoryTracking = await page.waitForSelector(ENABLE_HISTORY_SELECTOR);
|
|
75
|
-
await enableHistoryTracking.evaluate((node) => node.click());
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
if (historyTrackingConfig.fieldHistoryTracking) {
|
|
79
|
-
// We need to determine the correct html selector for each field that is configured
|
|
80
|
-
// This is because custom fields are identified using their CustomField.Id value
|
|
81
|
-
const fieldSelectorByFieldApiName = await this.getFieldSelectorByFieldApiName(tableEnumOrIdByObjectApiName.get(historyTrackingConfig.objectApiName), historyTrackingConfig.fieldHistoryTracking);
|
|
82
|
-
// We can now retrieve the field history settings for the fields specified for the object
|
|
83
|
-
for await (const fieldHistoryTracking of historyTrackingConfig.fieldHistoryTracking) {
|
|
84
|
-
const fieldApiName = fieldSelectorByFieldApiName.get(fieldHistoryTracking.fieldApiName);
|
|
85
|
-
const fieldSelector = ENABLE_FIELD_HISTORY_SELECTOR.replace('{APINAME}', fieldApiName);
|
|
86
|
-
const fieldHistoryTrackingEnabled = await page.$eval(fieldSelector, (el) => (el.getAttribute('checked') === 'checked' ? true : false));
|
|
87
|
-
if (fieldHistoryTracking.enableHistoryTracking !==
|
|
88
|
-
fieldHistoryTrackingEnabled) {
|
|
89
|
-
// Click the checkbox
|
|
90
|
-
const enableFieldHistoryTracking = await page.waitForSelector(fieldSelector);
|
|
91
|
-
await enableFieldHistoryTracking.evaluate((node) => node.click());
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
// Save the settings
|
|
96
|
-
const saveButton = await page.waitForSelector(SAVE_BUTTON_SELECTOR);
|
|
97
|
-
await saveButton.evaluate((node) => node.click());
|
|
98
|
-
// Wait for the page to refresh
|
|
99
|
-
await page.waitForNavigation();
|
|
100
|
-
// Close the page
|
|
101
|
-
await page.close();
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
async getFieldSelectorByFieldApiName(tableEnumOrId, fieldHistoryTrackingConfigs) {
|
|
105
|
-
const fieldSelectorByFieldApiName = new Map();
|
|
106
|
-
const customFieldApiNames = [];
|
|
107
|
-
const personAccountFieldApiNames = [];
|
|
108
|
-
for (const fieldHistoryTrackingConfig of fieldHistoryTrackingConfigs) {
|
|
109
|
-
// If this is a person account field, we must do special handling for this
|
|
110
|
-
if (tableEnumOrId === 'Account' &&
|
|
111
|
-
fieldHistoryTrackingConfig.fieldApiName.includes('__pc')) {
|
|
112
|
-
personAccountFieldApiNames.push(`'${fieldHistoryTrackingConfig.fieldApiName.replace('__pc', '')}'`);
|
|
113
|
-
continue;
|
|
114
|
-
}
|
|
115
|
-
// If this is a custom field, we must query for the Field Id
|
|
116
|
-
if (fieldHistoryTrackingConfig.fieldApiName.includes('__c')) {
|
|
117
|
-
customFieldApiNames.push(`'${fieldHistoryTrackingConfig.fieldApiName.replace('__c', '')}'`);
|
|
118
|
-
continue;
|
|
119
|
-
}
|
|
120
|
-
// Otherwise, if this is a standard field, the Selector is the Field API Name
|
|
121
|
-
fieldSelectorByFieldApiName.set(fieldHistoryTrackingConfig.fieldApiName, fieldHistoryTrackingConfig.fieldApiName);
|
|
122
|
-
}
|
|
123
|
-
if (customFieldApiNames.length === 0 &&
|
|
124
|
-
personAccountFieldApiNames.length === 0) {
|
|
125
|
-
return fieldSelectorByFieldApiName;
|
|
126
|
-
}
|
|
127
|
-
if (personAccountFieldApiNames.length > 0) {
|
|
128
|
-
const personAccountFieldsQuery = await this.org
|
|
129
|
-
.getConnection()
|
|
130
|
-
.tooling.query(`SELECT Id, DeveloperName FROM CustomField WHERE DeveloperName IN (${personAccountFieldApiNames.join(',')}) AND TableEnumOrId = 'Contact'`);
|
|
131
|
-
for (const personAccountField of personAccountFieldsQuery.records) {
|
|
132
|
-
fieldSelectorByFieldApiName.set(`${personAccountField.DeveloperName}__pc`, personAccountField.Id.substring(0, 15));
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
if (customFieldApiNames.length > 0) {
|
|
136
|
-
const customFieldsQuery = await this.org
|
|
137
|
-
.getConnection()
|
|
138
|
-
.tooling.query(`SELECT Id, DeveloperName FROM CustomField WHERE DeveloperName IN (${customFieldApiNames.join(',')}) AND TableEnumOrId = '${tableEnumOrId}'`);
|
|
139
|
-
for (const customField of customFieldsQuery.records) {
|
|
140
|
-
fieldSelectorByFieldApiName.set(`${customField.DeveloperName}__c`, customField.Id.substring(0, 15));
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
return fieldSelectorByFieldApiName;
|
|
144
|
-
}
|
|
145
|
-
async getTableEnumOrIdByObjectApiName(historyTrackingConfigs) {
|
|
146
|
-
const tableEnumOrIdByObjectApiName = new Map();
|
|
147
|
-
const customObjectApiNames = [];
|
|
148
|
-
for (const historyTrackingConfig of historyTrackingConfigs) {
|
|
149
|
-
// If it is a custom object, the CustomField.TableEnumOrId is the Object Id
|
|
150
|
-
if (historyTrackingConfig.objectApiName.includes('__c')) {
|
|
151
|
-
customObjectApiNames.push(`'${historyTrackingConfig.objectApiName.replace('__c', '')}'`);
|
|
152
|
-
continue;
|
|
153
|
-
}
|
|
154
|
-
// Otherwise, if this is a standard object, the CustomField.TableEnumOrId is the Object API Name
|
|
155
|
-
tableEnumOrIdByObjectApiName.set(historyTrackingConfig.objectApiName, historyTrackingConfig.objectApiName);
|
|
156
|
-
}
|
|
157
|
-
if (customObjectApiNames.length === 0) {
|
|
158
|
-
return tableEnumOrIdByObjectApiName;
|
|
159
|
-
}
|
|
160
|
-
const customObjectsQuery = await this.org
|
|
161
|
-
.getConnection()
|
|
162
|
-
.tooling.query(`SELECT Id, DeveloperName FROM CustomObject WHERE DeveloperName IN (${customObjectApiNames.join(',')})`);
|
|
163
|
-
for (const customObject of customObjectsQuery.records) {
|
|
164
|
-
tableEnumOrIdByObjectApiName.set(`${customObject.DeveloperName}__c`, customObject.Id);
|
|
165
|
-
}
|
|
166
|
-
return tableEnumOrIdByObjectApiName;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/history-tracking/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,SAAS,GAAG,wDAAwD,CAAC;AAE3E,MAAM,uBAAuB,GAC3B,oDAAoD,CAAC;AACvD,MAAM,6BAA6B,GAAG,2BAA2B,CAAC;AAClE,MAAM,oBAAoB,GACxB,8DAA8D,CAAC;AAajE,MAAM,OAAO,eAAgB,SAAQ,kBAAkB;IAC9C,KAAK,CAAC,QAAQ,CACnB,UAAoC;QAEpC,MAAM,sBAAsB,GAA4B,EAAE,CAAC;QAE3D,wFAAwF;QACxF,sEAAsE;QACtE,MAAM,4BAA4B,GAChC,M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AAkB,GAAG,MAAM,IAAI,CAAC,GAAG;aACtC,aAAa,EAAE;aACf,OAAO,CAAC,KAAK,CACZ,sEAAsE,oBAAoB,CAAC,IAAI,CAC7F,GAAG,CACJ,GAAG,CACL,CAAC;QAEJ,KAAK,MAAM,YAAY,IAAI,kBAAkB,CAAC,OAAO,EAAE,CAAC;YACtD,4BAA4B,CAAC,GAAG,CAC9B,GAAG,YAAY,CAAC,aAAa,KAAK,EAClC,YAAY,CAAC,EAAE,CAChB,CAAC;QACJ,CAAC;QAED,OAAO,4BAA4B,CAAC;IACtC,CAAC;CACF"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BrowserforcePlugin } from '../../plugin.js';
|
|
2
|
-
type Config = {
|
|
3
|
-
homePageLayoutAssignments: HomePageLayoutAssignment[];
|
|
4
|
-
};
|
|
5
|
-
type HomePageLayoutAssignment = {
|
|
6
|
-
profile: string;
|
|
7
|
-
layout: string;
|
|
8
|
-
};
|
|
9
|
-
export declare class HomePageLayouts extends BrowserforcePlugin {
|
|
10
|
-
retrieve(): Promise<Config>;
|
|
11
|
-
diff(source: Config, target: Config): Config | undefined;
|
|
12
|
-
apply(config: Config): Promise<void>;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import assert from 'assert';
|
|
2
|
-
import { HomePageLayouts } from './index.js';
|
|
3
|
-
describe(HomePageLayouts.name, function () {
|
|
4
|
-
let plugin;
|
|
5
|
-
before(() => {
|
|
6
|
-
plugin = new HomePageLayouts(global.bf);
|
|
7
|
-
});
|
|
8
|
-
const configPageDefault = {
|
|
9
|
-
homePageLayoutAssignments: [
|
|
10
|
-
{
|
|
11
|
-
profile: 'Standard User',
|
|
12
|
-
layout: '',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
profile: 'System Administrator',
|
|
16
|
-
layout: '',
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
};
|
|
20
|
-
const configOrgDefault = {
|
|
21
|
-
homePageLayoutAssignments: [
|
|
22
|
-
{
|
|
23
|
-
profile: 'Standard User',
|
|
24
|
-
layout: 'DE Default',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
profile: 'System Administrator',
|
|
28
|
-
layout: 'DE Default',
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
};
|
|
32
|
-
it('should assign some layouts', async () => {
|
|
33
|
-
await plugin.run(configPageDefault);
|
|
34
|
-
});
|
|
35
|
-
it('should be assigned', async () => {
|
|
36
|
-
const res = await plugin.run(configPageDefault);
|
|
37
|
-
assert.deepStrictEqual(res, { message: 'no action necessary' });
|
|
38
|
-
});
|
|
39
|
-
it('should unassign some layouts', async () => {
|
|
40
|
-
await plugin.apply(configOrgDefault);
|
|
41
|
-
});
|
|
42
|
-
it('should be unassigned', async () => {
|
|
43
|
-
const res = await plugin.run(configOrgDefault);
|
|
44
|
-
assert.deepStrictEqual(res, { message: 'no action necessary' });
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
//# sourceMappingURL=index.e2e-spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.e2e-spec.js","sourceRoot":"","sources":["../../../src/plugins/home-page-layouts/index.e2e-spec.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE;IAC7B,IAAI,MAAuB,CAAC;IAC5B,MAAM,CAAC,GAAG,EAAE;QACV,MAAM,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAG;QACxB,yBAAyB,EAAE;YACzB;gBACE,OAAO,EAAE,eAAe;gBACxB,MAAM,EAAE,EAAE;aACX;YACD;gBACE,OAAO,EAAE,sBAAsB;gBAC/B,MAAM,EAAE,EAAE;aACX;SACF;KACF,CAAC;IACF,MAAM,gBAAgB,GAAG;QACvB,yBAAyB,EAAE;YACzB;gBACE,OAAO,EAAE,eAAe;gBACxB,MAAM,EAAE,YAAY;aACrB;YACD;gBACE,OAAO,EAAE,sBAAsB;gBAC/B,MAAM,EAAE,YAAY;aACrB;SACF;KACF,CAAC;IACF,EAAE,CAAC,4BAA4B,EAAE,KAAK,IAAI,EAAE;QAC1C,MAAM,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;QAClC,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QAChD,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE,CAAC,CAAC;IAClE,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,8BAA8B,EAAE,KAAK,IAAI,EAAE;QAC5C,MAAM,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;QACpC,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAC/C,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE,CAAC,CAAC;IAClE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { BrowserforcePlugin } from '../../plugin.js';
|
|
2
|
-
const BASE_PATH = 'setup/ui/assignhomelayoutedit.jsp';
|
|
3
|
-
const BASE_SELECTOR = 'table.detailList';
|
|
4
|
-
const SAVE_BUTTON_SELECTOR = 'input[name="save"]';
|
|
5
|
-
export class HomePageLayouts extends BrowserforcePlugin {
|
|
6
|
-
async retrieve() {
|
|
7
|
-
const page = await this.browserforce.openPage(BASE_PATH);
|
|
8
|
-
await page.waitForSelector(BASE_SELECTOR);
|
|
9
|
-
const profiles = await page.$$eval('table.detailList tbody tr td label', (labels) => {
|
|
10
|
-
return labels.map((label) => {
|
|
11
|
-
for (let i = 0; label.childNodes.length; i++) {
|
|
12
|
-
if (label.childNodes[i].nodeType === label.TEXT_NODE) {
|
|
13
|
-
return label.childNodes[i].nodeValue ?? '';
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
throw new Error('retrieving HomePageLayouts failed');
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
const layouts = await page.$$eval('table.detailList tbody tr td select', (selects) => {
|
|
20
|
-
return selects
|
|
21
|
-
.map((select) => select.selectedOptions[0].text)
|
|
22
|
-
.map((text) => (text === 'Home Page Default' ? '' : text));
|
|
23
|
-
});
|
|
24
|
-
const homePageLayoutAssignments = [];
|
|
25
|
-
for (let i = 0; i < profiles.length; i++) {
|
|
26
|
-
homePageLayoutAssignments.push({
|
|
27
|
-
profile: profiles[i],
|
|
28
|
-
layout: layouts[i],
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
await page.close();
|
|
32
|
-
return {
|
|
33
|
-
homePageLayoutAssignments,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
diff(source, target) {
|
|
37
|
-
target.homePageLayoutAssignments.sort(compareAssignment);
|
|
38
|
-
const profileNames = target.homePageLayoutAssignments.map((assignment) => assignment.profile);
|
|
39
|
-
source.homePageLayoutAssignments = source.homePageLayoutAssignments
|
|
40
|
-
.filter((assignment) => profileNames.includes(assignment.profile))
|
|
41
|
-
.sort(compareAssignment);
|
|
42
|
-
return super.diff(source, target);
|
|
43
|
-
}
|
|
44
|
-
async apply(config) {
|
|
45
|
-
const profilesList = config.homePageLayoutAssignments
|
|
46
|
-
.map((assignment) => {
|
|
47
|
-
return `'${assignment.profile}'`;
|
|
48
|
-
})
|
|
49
|
-
.join(',');
|
|
50
|
-
const layoutsList = config.homePageLayoutAssignments
|
|
51
|
-
.map((assignment) => {
|
|
52
|
-
return `'${assignment.layout}'`;
|
|
53
|
-
})
|
|
54
|
-
.join(',');
|
|
55
|
-
const profiles = await this.org
|
|
56
|
-
.getConnection()
|
|
57
|
-
.tooling.query(`SELECT Id, Name FROM Profile WHERE Name IN (${profilesList})`);
|
|
58
|
-
const homePageLayouts = await this.org
|
|
59
|
-
.getConnection()
|
|
60
|
-
.tooling.query(`SELECT Id, Name FROM HomePageLayout WHERE Name IN (${layoutsList})`);
|
|
61
|
-
const page = await this.browserforce.openPage(BASE_PATH);
|
|
62
|
-
await page.waitForSelector(BASE_SELECTOR);
|
|
63
|
-
for (const assignment of config.homePageLayoutAssignments) {
|
|
64
|
-
const homePageLayoutName = assignment.layout;
|
|
65
|
-
const profile = profiles.records.find((p) => p.Name === assignment.profile);
|
|
66
|
-
if (!profile) {
|
|
67
|
-
throw new Error(`could not find profile '${assignment.profile}'`);
|
|
68
|
-
}
|
|
69
|
-
let homePageLayout = homePageLayouts.records.find((l) => l.Name === homePageLayoutName);
|
|
70
|
-
if (homePageLayoutName === '') {
|
|
71
|
-
homePageLayout = { Id: 'default', Name: 'default' };
|
|
72
|
-
}
|
|
73
|
-
if (homePageLayout === undefined) {
|
|
74
|
-
throw new Error(`Could not find home page layout "${homePageLayoutName}" in list of home page layouts: ${homePageLayouts.records.map((l) => l.Name)}`);
|
|
75
|
-
}
|
|
76
|
-
const profileSelector = `select[id='${profile.Id.substring(0, 15)}']`;
|
|
77
|
-
await page.waitForSelector(profileSelector);
|
|
78
|
-
await page.select(profileSelector, homePageLayout.Id.substring(0, 15));
|
|
79
|
-
}
|
|
80
|
-
await Promise.all([
|
|
81
|
-
page.waitForNavigation(),
|
|
82
|
-
page.click(SAVE_BUTTON_SELECTOR),
|
|
83
|
-
]);
|
|
84
|
-
await page.close();
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
function compareAssignment(a, b) {
|
|
88
|
-
return `${a.profile}:${a.layout}`.localeCompare(`${b.profile}:${b.layout}`, 'en', { numeric: true });
|
|
89
|
-
}
|
|
90
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/home-page-layouts/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,SAAS,GAAG,mCAAmC,CAAC;AAEtD,MAAM,aAAa,GAAG,kBAAkB,CAAC;AACzC,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AAmBlD,MAAM,OAAO,eAAgB,SAAQ,kBAAkB;IAC9C,KAAK,CAAC,QAAQ;QACnB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACzD,MAAM,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;QAC1C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAChC,oCAAoC,EACpC,CAAC,MAA0B,EAAE,EAAE;YAC7B,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;gBAC1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;oBAC7C,IAAI,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,KAAK,KAAK,CAAC,SAAS,EAAE,CAAC;wBACrD,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,EAAE,CAAC;oBAC7C,CAAC;gBACH,CAAC;gBACD,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;YACvD,CAAC,CAAC,CAAC;QACL,CAAC,CACF,CAAC;QACF,MAAM,OAAO,GAAG,M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-
export {};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import assert from 'assert';
|
|
2
|
-
import { HomePageLayouts } from './index.js';
|
|
3
|
-
const tests = [
|
|
4
|
-
{
|
|
5
|
-
description: 'should return no change',
|
|
6
|
-
source: {
|
|
7
|
-
homePageLayoutAssignments: [
|
|
8
|
-
{
|
|
9
|
-
profile: 'Standard User',
|
|
10
|
-
layout: '',
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
profile: 'System Administrator',
|
|
14
|
-
layout: '',
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
},
|
|
18
|
-
target: {
|
|
19
|
-
homePageLayoutAssignments: [
|
|
20
|
-
{
|
|
21
|
-
profile: 'Standard User',
|
|
22
|
-
layout: '',
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
profile: 'System Administrator',
|
|
26
|
-
layout: '',
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
expected: undefined,
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
description: 'should filter irrelevant assignments',
|
|
34
|
-
source: {
|
|
35
|
-
homePageLayoutAssignments: [
|
|
36
|
-
{
|
|
37
|
-
profile: 'Foo User',
|
|
38
|
-
layout: '',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
profile: 'Standard User',
|
|
42
|
-
layout: '',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
profile: 'System Administrator',
|
|
46
|
-
layout: '',
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
},
|
|
50
|
-
target: {
|
|
51
|
-
homePageLayoutAssignments: [
|
|
52
|
-
{
|
|
53
|
-
profile: 'Standard User',
|
|
54
|
-
layout: '',
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
profile: 'System Administrator',
|
|
58
|
-
layout: '',
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
},
|
|
62
|
-
expected: undefined,
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
description: 'should match when unsorted',
|
|
66
|
-
source: {
|
|
67
|
-
homePageLayoutAssignments: [
|
|
68
|
-
{
|
|
69
|
-
profile: 'System Administrator',
|
|
70
|
-
layout: '',
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
profile: 'Standard User',
|
|
74
|
-
layout: '',
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
target: {
|
|
79
|
-
homePageLayoutAssignments: [
|
|
80
|
-
{
|
|
81
|
-
profile: 'Standard User',
|
|
82
|
-
layout: '',
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
profile: 'System Administrator',
|
|
86
|
-
layout: '',
|
|
87
|
-
},
|
|
88
|
-
],
|
|
89
|
-
},
|
|
90
|
-
expected: undefined,
|
|
91
|
-
},
|
|
92
|
-
];
|
|
93
|
-
describe('HomePageLayouts', () => {
|
|
94
|
-
describe('diff()', () => {
|
|
95
|
-
const p = new HomePageLayouts(global.bf);
|
|
96
|
-
for (const t of tests) {
|
|
97
|
-
it(t.description, () => {
|
|
98
|
-
const actual = p.diff(t.source, t.target);
|
|
99
|
-
assert.deepStrictEqual(actual, t.expected);
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
//# sourceMappingURL=index.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../../src/plugins/home-page-layouts/index.test.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,KAAK,GAAG;IACZ;QACE,WAAW,EAAE,yBAAyB;QACtC,MAAM,EAAE;YACN,yBAAyB,EAAE;gBACzB;oBACE,OAAO,EAAE,eAAe;oBACxB,MAAM,EAAE,EAAE;iBACX;gBACD;oBACE,OAAO,EAAE,sBAAsB;o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AM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACzC,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;YACtB,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,EAAE;gBACrB,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;gBAC1C,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;YAC7C,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/lib/plugins/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ActivitySettings as activitySettings } from './activity-settings/index.js';
|
|
2
|
-
import { CompanyInformation as companyInformation } from './company-information/index.js';
|
|
3
|
-
import { CustomerPortal as customerPortal } from './customer-portal/index.js';
|
|
4
|
-
import { DensitySettings as densitySettings } from './density-settings/index.js';
|
|
5
|
-
import { EmailDeliverability as emailDeliverability } from './email-deliverability/index.js';
|
|
6
|
-
import { HighVelocitySalesSettings as highVelocitySalesSettings } from './high-velocity-sales-settings/index.js';
|
|
7
|
-
import { HistoryTracking as historyTracking } from './history-tracking/index.js';
|
|
8
|
-
import { HomePageLayouts as homePageLayouts } from './home-page-layouts/index.js';
|
|
9
|
-
import { LightningExperienceSettings as lightningExperienceSettings } from './lightning-experience-settings/index.js';
|
|
10
|
-
import { LinkedInSalesNavigatorSettings as linkedInSalesNavigatorSettings } from './linkedin-sales-navigator-settings/index.js';
|
|
11
|
-
import { OmniChannelSettings as omniChannelSettings } from './omni-channel-settings/index.js';
|
|
12
|
-
import { OpportunitySplits as opportunitySplits } from './opportunity-splits/index.js';
|
|
13
|
-
import { PermissionSets as permissionSets } from './permission-sets/index.js';
|
|
14
|
-
import { Picklists as picklists } from './picklists/index.js';
|
|
15
|
-
import { RecordTypes as recordTypes } from './record-types/index.js';
|
|
16
|
-
import { RelateContactToMultipleAccounts as relateContactToMultipleAccounts } from './relate-contact-to-multiple-accounts/index.js';
|
|
17
|
-
import { ReportsAndDashboards as reportsAndDashboards } from './reports-and-dashboards/index.js';
|
|
18
|
-
import { SalesforceCpqConfig as salesforceCpqConfig } from './salesforce-cpq-config/index.js';
|
|
19
|
-
import { SalesforceToSalesforce as salesforceToSalesforce } from './salesforce-to-salesforce/index.js';
|
|
20
|
-
import { Security as security } from './security/index.js';
|
|
21
|
-
import { ServiceChannels as serviceChannels } from './service-channels/index.js';
|
|
22
|
-
import { Slack as slack } from './slack/index.js';
|
|
23
|
-
export { activitySettings, companyInformation, customerPortal, densitySettings, emailDeliverability, highVelocitySalesSettings, historyTracking, homePageLayouts, lightningExperienceSettings, linkedInSalesNavigatorSettings, omniChannelSettings, opportunitySplits, permissionSets, picklists, recordTypes, relateContactToMultipleAccounts, reportsAndDashboards, salesforceCpqConfig, salesforceToSalesforce, security, serviceChannels, slack, };
|
package/lib/plugins/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ActivitySettings as activitySettings } from './activity-settings/index.js';
|
|
2
|
-
import { CompanyInformation as companyInformation } from './company-information/index.js';
|
|
3
|
-
import { CustomerPortal as customerPortal } from './customer-portal/index.js';
|
|
4
|
-
import { DensitySettings as densitySettings } from './density-settings/index.js';
|
|
5
|
-
import { EmailDeliverability as emailDeliverability } from './email-deliverability/index.js';
|
|
6
|
-
import { HighVelocitySalesSettings as highVelocitySalesSettings } from './high-velocity-sales-settings/index.js';
|
|
7
|
-
import { HistoryTracking as historyTracking } from './history-tracking/index.js';
|
|
8
|
-
import { HomePageLayouts as homePageLayouts } from './home-page-layouts/index.js';
|
|
9
|
-
import { LightningExperienceSettings as lightningExperienceSettings } from './lightning-experience-settings/index.js';
|
|
10
|
-
import { LinkedInSalesNavigatorSettings as linkedInSalesNavigatorSettings } from './linkedin-sales-navigator-settings/index.js';
|
|
11
|
-
import { OmniChannelSettings as omniChannelSettings } from './omni-channel-settings/index.js';
|
|
12
|
-
import { OpportunitySplits as opportunitySplits } from './opportunity-splits/index.js';
|
|
13
|
-
import { PermissionSets as permissionSets } from './permission-sets/index.js';
|
|
14
|
-
import { Picklists as picklists } from './picklists/index.js';
|
|
15
|
-
import { RecordTypes as recordTypes } from './record-types/index.js';
|
|
16
|
-
import { RelateContactToMultipleAccounts as relateContactToMultipleAccounts } from './relate-contact-to-multiple-accounts/index.js';
|
|
17
|
-
import { ReportsAndDashboards as reportsAndDashboards } from './reports-and-dashboards/index.js';
|
|
18
|
-
import { SalesforceCpqConfig as salesforceCpqConfig } from './salesforce-cpq-config/index.js';
|
|
19
|
-
import { SalesforceToSalesforce as salesforceToSalesforce } from './salesforce-to-salesforce/index.js';
|
|
20
|
-
import { Security as security } from './security/index.js';
|
|
21
|
-
import { ServiceChannels as serviceChannels } from './service-channels/index.js';
|
|
22
|
-
import { Slack as slack } from './slack/index.js';
|
|
23
|
-
export { activitySettings, companyInformation, customerPortal, densitySettings, emailDeliverability, highVelocitySalesSettings, historyTracking, homePageLayouts, lightningExperienceSettings, linkedInSalesNavigatorSettings, omniChannelSettings, opportunitySplits, permissionSets, picklists, recordTypes, relateContactToMultipleAccounts, reportsAndDashboards, salesforceCpqConfig, salesforceToSalesforce, security, serviceChannels, slack, };
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
package/lib/plugins/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACpF,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAAE,cAAc,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,eAAe,IAAI,eAAe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