sfdx-browserforce-plugin 5.0.1 → 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 +2 -5
- 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 -17
- package/lib/plugins/lightning-experience-settings/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/lightning-experience-settings/index.e2e-spec.js +0 -39
- package/lib/plugins/lightning-experience-settings/index.e2e-spec.js.map +0 -1
- package/lib/plugins/lightning-experience-settings/index.js +0 -61
- 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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.e2e-spec.js","sourceRoot":"","sources":["../../../src/plugins/relate-contact-to-multiple-accounts/index.e2e-spec.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,+BAA+B,EAAE,MAAM,YAAY,CAAC;AAE7D,QAAQ,CAAC,+BAA+B,CAAC,IAAI,EAAE;IAC7C,IAAI,MAAuC,CAAC;IAC5C,MAAM,CAAC,GAAG,EAAE;QACV,MAAM,GAAG,IAAI,+BAA+B,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;IAEH,MAAM,aAAa,GAAG;QACpB,OAAO,EAAE,IAAI;KACd,CAAC;IACF,MAAM,cAAc,GAAG;QACrB,OAAO,EAAE,KAAK;KACf,CAAC;IAEF,EAAE,CAAC,eAAe,EAAE,KAAK,IAAI,EAAE;QAC7B,MAAM,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,mBAAmB,EAAE,KAAK,IAAI,EAAE;QACjC,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAC5C,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE,CAAC,CAAC;IAClE,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE;QAC9B,MAAM,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;QAClC,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAC7C,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE,CAAC,CAAC;IAClE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { retry, throwPageErrors } from '../../browserforce.js';
|
|
2
|
-
import { BrowserforcePlugin } from '../../plugin.js';
|
|
3
|
-
const BASE_PATH = 'accounts/accountSetup.apexp';
|
|
4
|
-
const ENABLED_SELECTOR = 'input[id$=":sharedContactsCheckBox"]';
|
|
5
|
-
const EDIT_BUTTON_SELECTOR = 'input[id$=":edit"]';
|
|
6
|
-
const SAVE_BUTTON_SELECTOR = 'input[id$=":save"]';
|
|
7
|
-
const DISABLE_CONFIRM_CHECKBOX_SELECTOR = 'input#disable_confirm';
|
|
8
|
-
const DISABLE_CONFIRM_BUTTON_SELECTOR = 'input#sharedContactsDisableConfirmButton';
|
|
9
|
-
const ENABLING_IN_PROGRESS_SELECTOR = '#enablingInProgress';
|
|
10
|
-
const DISABLING_IN_PROGRESS_SELECTOR = '#disablingInProgress';
|
|
11
|
-
export class RelateContactToMultipleAccounts extends BrowserforcePlugin {
|
|
12
|
-
async retrieve(definition) {
|
|
13
|
-
const page = await this.browserforce.openPage(BASE_PATH);
|
|
14
|
-
await page.waitForSelector(ENABLED_SELECTOR, { visible: true });
|
|
15
|
-
const response = {
|
|
16
|
-
enabled: await page.$eval(ENABLED_SELECTOR, (el) => el.checked),
|
|
17
|
-
};
|
|
18
|
-
await page.close();
|
|
19
|
-
return response;
|
|
20
|
-
}
|
|
21
|
-
async apply(config) {
|
|
22
|
-
const page = await this.browserforce.openPage(BASE_PATH);
|
|
23
|
-
await this.waitForProcessFinished(page);
|
|
24
|
-
// First we have to click the 'Edit' button, to make the checkbox editable
|
|
25
|
-
await page.waitForSelector(EDIT_BUTTON_SELECTOR);
|
|
26
|
-
await Promise.all([
|
|
27
|
-
page.waitForNavigation(),
|
|
28
|
-
page.click(EDIT_BUTTON_SELECTOR),
|
|
29
|
-
]);
|
|
30
|
-
// Change the value of the checkbox
|
|
31
|
-
await page.waitForSelector(ENABLED_SELECTOR, { visible: true });
|
|
32
|
-
await page.click(ENABLED_SELECTOR);
|
|
33
|
-
// Save
|
|
34
|
-
if (config.enabled) {
|
|
35
|
-
await page.waitForSelector(SAVE_BUTTON_SELECTOR);
|
|
36
|
-
await Promise.all([
|
|
37
|
-
page.waitForNavigation(),
|
|
38
|
-
page.click(SAVE_BUTTON_SELECTOR),
|
|
39
|
-
]);
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
await page.waitForSelector(SAVE_BUTTON_SELECTOR);
|
|
43
|
-
await page.click(SAVE_BUTTON_SELECTOR);
|
|
44
|
-
await page.waitForSelector(DISABLE_CONFIRM_CHECKBOX_SELECTOR, {
|
|
45
|
-
visible: true,
|
|
46
|
-
});
|
|
47
|
-
await page.click(DISABLE_CONFIRM_CHECKBOX_SELECTOR);
|
|
48
|
-
await page.waitForSelector(DISABLE_CONFIRM_BUTTON_SELECTOR);
|
|
49
|
-
await Promise.all([
|
|
50
|
-
page.waitForNavigation(),
|
|
51
|
-
page.click(DISABLE_CONFIRM_BUTTON_SELECTOR),
|
|
52
|
-
]);
|
|
53
|
-
}
|
|
54
|
-
await throwPageErrors(page);
|
|
55
|
-
await page.close();
|
|
56
|
-
}
|
|
57
|
-
async waitForProcessFinished(page) {
|
|
58
|
-
await retry(async () => {
|
|
59
|
-
const enabling = await page.$(ENABLING_IN_PROGRESS_SELECTOR);
|
|
60
|
-
if (enabling) {
|
|
61
|
-
const message = await enabling.evaluate((div) => div.innerText);
|
|
62
|
-
throw new Error(message);
|
|
63
|
-
}
|
|
64
|
-
const disabling = await page.$(DISABLING_IN_PROGRESS_SELECTOR);
|
|
65
|
-
if (disabling) {
|
|
66
|
-
const message = await disabling.evaluate((div) => div.innerText);
|
|
67
|
-
throw new Error(message);
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/relate-contact-to-multiple-accounts/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,SAAS,GAAG,6BAA6B,CAAC;AAEhD,MAAM,gBAAgB,GAAG,sCAAsC,CAAC;AAChE,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AAClD,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AA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AC;YAC/D,IAAI,SAAS,EAAE,CAAC;gBACd,MAAM,OAAO,GAAG,MAAM,SAAS,CAAC,QAAQ,CACtC,CAAC,GAAmB,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS,CACvC,CAAC;gBACF,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;YAC3B,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BrowserforcePlugin } from '../../../plugin.js';
|
|
2
|
-
export type Config = {
|
|
3
|
-
enableEnhancedFolderSharing: boolean;
|
|
4
|
-
};
|
|
5
|
-
export declare class FolderSharing extends BrowserforcePlugin {
|
|
6
|
-
retrieve(definition?: Config): Promise<Config>;
|
|
7
|
-
apply(config: Config): Promise<void>;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.e2e-spec.js","sourceRoot":"","sources":["../../../../src/plugins/reports-and-dashboards/folder-sharing/index.e2e-spec.ts"],"names":[],"mappings":";AAAA,8DAA8D"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { BrowserforcePlugin } from '../../../plugin.js';
|
|
2
|
-
const BASE_PATH = 'ui/rpt/AnalyticsSharingSettingsPage/e';
|
|
3
|
-
const BASE_SELECTOR = 'div.pbBody';
|
|
4
|
-
const ENABLE_CHECKBOX_SELECTOR = 'input[id="0"]';
|
|
5
|
-
const SAVE_BUTTON_SELECTOR = 'input[id="saveButton"]';
|
|
6
|
-
export class FolderSharing extends BrowserforcePlugin {
|
|
7
|
-
async retrieve(definition) {
|
|
8
|
-
const response = {
|
|
9
|
-
enableEnhancedFolderSharing: true,
|
|
10
|
-
};
|
|
11
|
-
let page;
|
|
12
|
-
try {
|
|
13
|
-
page = await this.browserforce.openPage(BASE_PATH);
|
|
14
|
-
const frameOrPage = await this.browserforce.waitForSelectorInFrameOrPage(page, BASE_SELECTOR);
|
|
15
|
-
const inputEnable = await frameOrPage.$(ENABLE_CHECKBOX_SELECTOR);
|
|
16
|
-
if (inputEnable) {
|
|
17
|
-
response.enableEnhancedFolderSharing = await frameOrPage.$eval(ENABLE_CHECKBOX_SELECTOR, (el) => el.checked);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
// already enabled
|
|
21
|
-
response.enableEnhancedFolderSharing = true;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
catch (e) {
|
|
25
|
-
if (e.message.match('Insufficient Privileges')) {
|
|
26
|
-
return response;
|
|
27
|
-
}
|
|
28
|
-
throw e;
|
|
29
|
-
}
|
|
30
|
-
await page.close();
|
|
31
|
-
return response;
|
|
32
|
-
}
|
|
33
|
-
async apply(config) {
|
|
34
|
-
if (config.enableEnhancedFolderSharing === false) {
|
|
35
|
-
throw new Error('`enableEnhancedFolderSharing` cannot be disabled once enabled');
|
|
36
|
-
}
|
|
37
|
-
const page = await this.browserforce.openPage(BASE_PATH);
|
|
38
|
-
await page.waitForSelector(ENABLE_CHECKBOX_SELECTOR);
|
|
39
|
-
await page.$eval(ENABLE_CHECKBOX_SELECTOR, (e, v) => {
|
|
40
|
-
e.checked = v;
|
|
41
|
-
}, config.enableEnhancedFolderSharing);
|
|
42
|
-
await page.waitForSelector(SAVE_BUTTON_SELECTOR);
|
|
43
|
-
await Promise.all([
|
|
44
|
-
page.waitForNavigation(),
|
|
45
|
-
page.click(SAVE_BUTTON_SELECTOR),
|
|
46
|
-
]);
|
|
47
|
-
await page.close();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/reports-and-dashboards/folder-sharing/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,SAAS,GAAG,uCAAu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CAAC;QACJ,CAAC;QACD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACzD,MAAM,IAAI,CAAC,eAAe,CAAC,wBAAwB,CAAC,CAAC;QACrD,MAAM,IAAI,CAAC,KAAK,CACd,wBAAwB,EACxB,CAAC,CAAmB,EAAE,CAAU,EAAE,EAAE;YAClC,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC;QAChB,CAAC,EACD,MAAM,CAAC,2BAA2B,CACnC,CAAC;QACF,MAAM,IAAI,CAAC,eAAe,CAAC,oBAAoB,CAAC,CAAC;QACjD,MAAM,OAAO,CAAC,GAAG,CAAC;YAChB,IAAI,CAAC,iBAAiB,EAAE;YACxB,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC;SACjC,CAAC,CAAC;QACH,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;CACF"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BrowserforcePlugin } from '../../plugin.js';
|
|
2
|
-
import { Config as FolderSharingConfig } from './folder-sharing/index.js';
|
|
3
|
-
type Config = {
|
|
4
|
-
folderSharing?: FolderSharingConfig;
|
|
5
|
-
};
|
|
6
|
-
export declare class ReportsAndDashboards extends BrowserforcePlugin {
|
|
7
|
-
retrieve(definition?: Config): Promise<Config>;
|
|
8
|
-
diff(state: Config, definition: Config): Config | undefined;
|
|
9
|
-
apply(plan: Config): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.e2e-spec.js","sourceRoot":"","sources":["../../../src/plugins/reports-and-dashboards/index.e2e-spec.ts"],"names":[],"mappings":";AAAA,4EAA4E"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { BrowserforcePlugin } from '../../plugin.js';
|
|
2
|
-
import { FolderSharing, } from './folder-sharing/index.js';
|
|
3
|
-
export class ReportsAndDashboards extends BrowserforcePlugin {
|
|
4
|
-
async retrieve(definition) {
|
|
5
|
-
const response = {};
|
|
6
|
-
if (definition) {
|
|
7
|
-
if (definition.folderSharing) {
|
|
8
|
-
const pluginFolderSharing = new FolderSharing(this.browserforce);
|
|
9
|
-
response.folderSharing = await pluginFolderSharing.retrieve(definition.folderSharing);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return response;
|
|
13
|
-
}
|
|
14
|
-
diff(state, definition) {
|
|
15
|
-
const response = {};
|
|
16
|
-
const folderSharing = new FolderSharing(this.browserforce).diff(state.folderSharing, definition.folderSharing);
|
|
17
|
-
if (folderSharing !== undefined) {
|
|
18
|
-
response.folderSharing = folderSharing;
|
|
19
|
-
}
|
|
20
|
-
return Object.keys(response).length ? response : undefined;
|
|
21
|
-
}
|
|
22
|
-
async apply(plan) {
|
|
23
|
-
if (plan.folderSharing) {
|
|
24
|
-
const pluginFolderSharing = new FolderSharing(this.browserforce);
|
|
25
|
-
await pluginFolderSharing.apply(plan.folderSharing);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/reports-and-dashboards/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EACL,aAAa,GAEd,MAAM,2BAA2B,CAAC;AAMnC,MAAM,OAAO,oBAAqB,SAAQ,kBAAkB;IACnD,KAAK,CAAC,QAAQ,CAAC,UAAmB;QACvC,MAAM,QAAQ,GAAW,EAAE,CAAC;QAC5B,IAAI,UAAU,EAAE,CAAC;YACf,IAAI,UAAU,CAAC,aAAa,EAAE,CAAC;gBAC7B,MAAM,mBAAmB,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;gBACjE,QAAQ,CAAC,aAAa,GAAG,MAAM,mBAAmB,CAAC,QAAQ,CACzD,UAAU,CAAC,aAAa,CACzB,CAAC;YACJ,CAAC;QACH,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAEM,IAAI,CAAC,KAAa,EAAE,UAAkB;QAC3C,MAAM,QAAQ,GAAW,EAAE,CAAC;QAC5B,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAC7D,KAAK,CAAC,aAAa,EACnB,UAAU,CAAC,aAAa,CACU,CAAC;QACrC,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;YAChC,QAAQ,CAAC,aAAa,GAAG,aAAa,CAAC;QACzC,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;IAC7D,CAAC;IAEM,KAAK,CAAC,KAAK,CAAC,IAAY;QAC7B,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;YACvB,MAAM,mBAAmB,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YACjE,MAAM,mBAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type FormConfig = {
|
|
2
|
-
[key: string]: {
|
|
3
|
-
label: string;
|
|
4
|
-
component: string;
|
|
5
|
-
id: string;
|
|
6
|
-
properties: {
|
|
7
|
-
[key: string]: {
|
|
8
|
-
label: string;
|
|
9
|
-
component: string;
|
|
10
|
-
type: string;
|
|
11
|
-
name: string;
|
|
12
|
-
immediatelySave?: boolean;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare const formConfig: FormConfig;
|