sfdx-browserforce-plugin 2.6.2 → 2.8.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/{browserforceCommand.d.ts → browserforce-command.d.ts} +4 -4
- package/lib/{browserforceCommand.js → browserforce-command.js} +15 -5
- package/lib/browserforce-command.js.map +1 -0
- package/lib/browserforce.d.ts +17 -9
- package/lib/browserforce.js +7 -4
- package/lib/browserforce.js.map +1 -1
- package/lib/commands/browserforce/apply.d.ts +2 -2
- package/lib/commands/browserforce/apply.js +3 -3
- package/lib/commands/browserforce/apply.js.map +1 -1
- package/lib/commands/browserforce/plan.d.ts +2 -2
- package/lib/commands/browserforce/plan.js +3 -3
- package/lib/commands/browserforce/plan.js.map +1 -1
- package/lib/config-parser.d.ts +15 -2
- package/lib/config-parser.js +2 -1
- package/lib/config-parser.js.map +1 -1
- package/lib/index.d.ts +1 -2
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/jsforce-utils.d.ts +1 -1
- package/lib/jsforce-utils.js.map +1 -1
- package/lib/plugin.d.ts +4 -4
- package/lib/plugin.js.map +1 -1
- package/lib/plugins/activity-settings/index.d.ts +7 -5
- package/lib/plugins/activity-settings/index.js +2 -1
- package/lib/plugins/activity-settings/index.js.map +1 -1
- package/lib/plugins/communities/index.d.ts +8 -3
- package/lib/plugins/communities/index.js +6 -7
- package/lib/plugins/communities/index.js.map +1 -1
- package/lib/plugins/customer-portal/available-custom-objects/index.d.ts +14 -0
- package/lib/plugins/customer-portal/{availableCustomObjects → available-custom-objects}/index.js +9 -8
- package/lib/plugins/customer-portal/available-custom-objects/index.js.map +1 -0
- package/lib/plugins/customer-portal/enabled/index.d.ts +5 -4
- package/lib/plugins/customer-portal/enabled/index.js +3 -1
- package/lib/plugins/customer-portal/enabled/index.js.map +1 -1
- package/lib/plugins/customer-portal/index.d.ts +13 -8
- package/lib/plugins/customer-portal/index.js +12 -11
- package/lib/plugins/customer-portal/index.js.map +1 -1
- package/lib/plugins/customer-portal/portals/index.d.ts +23 -4
- package/lib/plugins/customer-portal/portals/index.js +29 -27
- package/lib/plugins/customer-portal/portals/index.js.map +1 -1
- package/lib/plugins/defer-sharing-calculation/index.d.ts +7 -5
- package/lib/plugins/defer-sharing-calculation/index.js +3 -1
- package/lib/plugins/defer-sharing-calculation/index.js.map +1 -1
- package/lib/plugins/density-settings/index.d.ts +15 -7
- package/lib/plugins/density-settings/index.js +3 -2
- package/lib/plugins/density-settings/index.js.map +1 -1
- package/lib/plugins/high-velocity-sales-settings/index.d.ts +9 -6
- package/lib/plugins/high-velocity-sales-settings/index.js +3 -2
- package/lib/plugins/high-velocity-sales-settings/index.js.map +1 -1
- package/lib/plugins/high-velocity-sales-settings/page.d.ts +2 -1
- package/lib/plugins/high-velocity-sales-settings/page.js.map +1 -1
- package/lib/plugins/home-page-layouts/index.d.ts +12 -6
- package/lib/plugins/home-page-layouts/index.js +3 -1
- package/lib/plugins/home-page-layouts/index.js.map +1 -1
- package/lib/plugins/index.d.ts +15 -14
- package/lib/plugins/index.js +29 -27
- package/lib/plugins/index.js.map +1 -1
- package/lib/plugins/lightning-experience-settings/index.d.ts +15 -7
- package/lib/plugins/lightning-experience-settings/index.js +3 -2
- package/lib/plugins/lightning-experience-settings/index.js.map +1 -1
- package/lib/plugins/picklists/field-dependencies/index.d.ts +9 -3
- package/lib/plugins/picklists/field-dependencies/index.js +2 -1
- package/lib/plugins/picklists/field-dependencies/index.js.map +1 -1
- package/lib/plugins/picklists/field-dependencies/pages.d.ts +4 -3
- package/lib/plugins/picklists/field-dependencies/pages.js.map +1 -1
- package/lib/plugins/picklists/index.d.ts +21 -7
- package/lib/plugins/picklists/index.js +11 -9
- package/lib/plugins/picklists/index.js.map +1 -1
- package/lib/plugins/picklists/pages.d.ts +13 -12
- package/lib/plugins/picklists/pages.js +4 -4
- package/lib/plugins/picklists/pages.js.map +1 -1
- package/lib/plugins/picklists/standard-value-set.js +1 -0
- package/lib/plugins/picklists/standard-value-set.js.map +1 -1
- package/lib/plugins/record-types/index.d.ts +11 -5
- package/lib/plugins/record-types/index.js +2 -1
- package/lib/plugins/record-types/index.js.map +1 -1
- package/lib/plugins/record-types/pages.d.ts +4 -3
- package/lib/plugins/record-types/pages.js.map +1 -1
- package/lib/plugins/relate-contact-to-multiple-accounts/index.d.ts +9 -0
- package/lib/plugins/relate-contact-to-multiple-accounts/index.js +40 -0
- package/lib/plugins/relate-contact-to-multiple-accounts/index.js.map +1 -0
- package/lib/plugins/reports-and-dashboards/folder-sharing/index.d.ts +8 -0
- package/lib/plugins/reports-and-dashboards/{folderSharing → folder-sharing}/index.js +3 -1
- package/lib/plugins/reports-and-dashboards/folder-sharing/index.js.map +1 -0
- package/lib/plugins/reports-and-dashboards/index.d.ts +9 -6
- package/lib/plugins/reports-and-dashboards/index.js +7 -8
- package/lib/plugins/reports-and-dashboards/index.js.map +1 -1
- package/lib/plugins/salesforce-to-salesforce/index.d.ts +7 -3
- package/lib/plugins/salesforce-to-salesforce/index.js +7 -8
- package/lib/plugins/salesforce-to-salesforce/index.js.map +1 -1
- package/lib/plugins/security/certificate-and-key-management/index.d.ts +21 -7
- package/lib/plugins/security/certificate-and-key-management/index.js +40 -19
- package/lib/plugins/security/certificate-and-key-management/index.js.map +1 -1
- package/lib/plugins/security/identity-provider/index.d.ts +8 -6
- package/lib/plugins/security/identity-provider/index.js +5 -3
- package/lib/plugins/security/identity-provider/index.js.map +1 -1
- package/lib/plugins/security/index.d.ts +15 -9
- package/lib/plugins/security/index.js +15 -19
- package/lib/plugins/security/index.js.map +1 -1
- package/lib/plugins/security/login-access-policies/index.d.ts +6 -5
- package/lib/plugins/security/login-access-policies/index.js +3 -1
- package/lib/plugins/security/login-access-policies/index.js.map +1 -1
- package/lib/plugins/security/sharing/index.d.ts +6 -5
- package/lib/plugins/security/sharing/index.js +3 -1
- package/lib/plugins/security/sharing/index.js.map +1 -1
- package/lib/plugins/utils.d.ts +1 -1
- package/lib/plugins/utils.js +2 -0
- package/lib/plugins/utils.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +8 -8
- package/yarn.lock +291 -210
- package/lib/browserforceCommand.js.map +0 -1
- package/lib/plugins/customer-portal/availableCustomObjects/index.d.ts +0 -6
- package/lib/plugins/customer-portal/availableCustomObjects/index.js.map +0 -1
- package/lib/plugins/reports-and-dashboards/folderSharing/index.d.ts +0 -7
- package/lib/plugins/reports-and-dashboards/folderSharing/index.js.map +0 -1
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { BrowserforcePlugin } from '../../plugin';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { Config as CustomerPortalAvailableCustomObjectsConfig } from './available-custom-objects';
|
|
3
|
+
import { Config as CustomerPortalEnableConfig } from './enabled';
|
|
4
|
+
import { Config as CustomerPortalSetupConfig } from './portals';
|
|
5
|
+
declare type Config = {
|
|
6
|
+
enabled?: CustomerPortalEnableConfig;
|
|
7
|
+
portals?: CustomerPortalSetupConfig;
|
|
8
|
+
availableCustomObjects?: CustomerPortalAvailableCustomObjectsConfig;
|
|
9
|
+
};
|
|
10
|
+
export declare class CustomerPortal extends BrowserforcePlugin {
|
|
11
|
+
retrieve(definition?: Config): Promise<Config>;
|
|
12
|
+
diff(state: Config, definition: Config): Config;
|
|
13
|
+
apply(config: Config): Promise<void>;
|
|
10
14
|
}
|
|
15
|
+
export {};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomerPortal = void 0;
|
|
3
4
|
const plugin_1 = require("../../plugin");
|
|
4
5
|
const utils_1 = require("../utils");
|
|
5
|
-
const
|
|
6
|
+
const available_custom_objects_1 = require("./available-custom-objects");
|
|
6
7
|
const enabled_1 = require("./enabled");
|
|
7
8
|
const portals_1 = require("./portals");
|
|
8
9
|
class CustomerPortal extends plugin_1.BrowserforcePlugin {
|
|
9
10
|
async retrieve(definition) {
|
|
10
|
-
const pluginEnable = new enabled_1.
|
|
11
|
+
const pluginEnable = new enabled_1.CustomerPortalEnable(this.browserforce, this.org);
|
|
11
12
|
const response = {
|
|
12
13
|
enabled: false,
|
|
13
14
|
portals: [],
|
|
@@ -16,20 +17,20 @@ class CustomerPortal extends plugin_1.BrowserforcePlugin {
|
|
|
16
17
|
response.enabled = await pluginEnable.retrieve(definition.enabled);
|
|
17
18
|
if (response.enabled) {
|
|
18
19
|
if (definition.portals) {
|
|
19
|
-
const pluginSetup = new portals_1.
|
|
20
|
+
const pluginSetup = new portals_1.CustomerPortalSetup(this.browserforce, this.org);
|
|
20
21
|
response.portals = await pluginSetup.retrieve(definition.portals);
|
|
21
22
|
}
|
|
22
23
|
if (definition.availableCustomObjects) {
|
|
23
|
-
const pluginAvailableCustomObjects = new
|
|
24
|
+
const pluginAvailableCustomObjects = new available_custom_objects_1.CustomerPortalAvailableCustomObjects(this.browserforce, this.org);
|
|
24
25
|
response.availableCustomObjects = await pluginAvailableCustomObjects.retrieve(definition.availableCustomObjects);
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
return response;
|
|
28
29
|
}
|
|
29
30
|
diff(state, definition) {
|
|
30
|
-
const pluginEnable = new enabled_1.
|
|
31
|
-
const pluginSetup = new portals_1.
|
|
32
|
-
const pluginAvailableCustomObjects = new
|
|
31
|
+
const pluginEnable = new enabled_1.CustomerPortalEnable(null, null);
|
|
32
|
+
const pluginSetup = new portals_1.CustomerPortalSetup(null, null);
|
|
33
|
+
const pluginAvailableCustomObjects = new available_custom_objects_1.CustomerPortalAvailableCustomObjects(null, null);
|
|
33
34
|
const response = {
|
|
34
35
|
enabled: pluginEnable.diff(state.enabled, definition.enabled),
|
|
35
36
|
portals: pluginSetup.diff(state.portals, definition.portals),
|
|
@@ -39,18 +40,18 @@ class CustomerPortal extends plugin_1.BrowserforcePlugin {
|
|
|
39
40
|
}
|
|
40
41
|
async apply(config) {
|
|
41
42
|
if (config.enabled !== undefined) {
|
|
42
|
-
const pluginEnable = new enabled_1.
|
|
43
|
+
const pluginEnable = new enabled_1.CustomerPortalEnable(this.browserforce, this.org);
|
|
43
44
|
await pluginEnable.apply(config.enabled);
|
|
44
45
|
}
|
|
45
46
|
if (config.portals && config.portals.length) {
|
|
46
|
-
const pluginSetup = new portals_1.
|
|
47
|
+
const pluginSetup = new portals_1.CustomerPortalSetup(this.browserforce, this.org);
|
|
47
48
|
await pluginSetup.apply(config.portals);
|
|
48
49
|
}
|
|
49
50
|
if (config.availableCustomObjects) {
|
|
50
|
-
const pluginAvailableCustomObjects = new
|
|
51
|
+
const pluginAvailableCustomObjects = new available_custom_objects_1.CustomerPortalAvailableCustomObjects(this.browserforce, this.org);
|
|
51
52
|
await pluginAvailableCustomObjects.apply(config.availableCustomObjects);
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
|
-
exports.
|
|
56
|
+
exports.CustomerPortal = CustomerPortal;
|
|
56
57
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/customer-portal/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/customer-portal/index.ts"],"names":[],"mappings":";;;AAAA,yCAAkD;AAClD,oCAA6C;AAC7C,yEAGoC;AACpC,uCAGmB;AACnB,uCAGmB;AAQnB,MAAa,cAAe,SAAQ,2BAAkB;IAC7C,KAAK,CAAC,QAAQ,CAAC,UAAmB;QACvC,MAAM,YAAY,GAAG,IAAI,8BAAoB,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QAC3E,MAAM,QAAQ,GAAG;YACf,OAAO,EAAE,KAAK;YACd,OAAO,EAAE,EAAE;YACX,sBAAsB,EAAE,EAAE;SAC3B,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CAAC;QACF,OAAO,yBAAiB,CAAC,QAAQ,CAAC,CAAC;IACrC,CAAC;IAEM,KAAK,CAAC,KAAK,CAAC,MAAc;QAC/B,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE;YAChC,MAAM,YAAY,GAAG,IAAI,8BAAoB,CAC3C,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,GAAG,CACT,CAAC;YACF,MAAM,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;SAC1C;QACD,IAAI,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE;YAC3C,MAAM,WAAW,GAAG,IAAI,6BAAmB,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;YACzE,MAAM,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;SACzC;QACD,IAAI,MAAM,CAAC,sBAAsB,EAAE;YACjC,MAAM,4BAA4B,GAAG,IAAI,+DAAoC,CAC3E,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,GAAG,CACT,CAAC;YACF,MAAM,4BAA4B,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;SACzE;IACH,CAAC;CACF;AApED,wCAoEC"}
|
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
import { BrowserforcePlugin } from '../../../plugin';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export declare type Config = PortalConfig[];
|
|
3
|
+
declare type PortalConfig = {
|
|
4
|
+
adminUser?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
isSelfRegistrationActivated?: boolean;
|
|
7
|
+
name: string;
|
|
8
|
+
oldName?: string;
|
|
9
|
+
selfRegUserDefaultLicense?: string;
|
|
10
|
+
selfRegUserDefaultProfile?: string;
|
|
11
|
+
selfRegUserDefaultRole?: string;
|
|
12
|
+
portalProfileMemberships?: PortalProfileMembership[];
|
|
13
|
+
_id?: string;
|
|
14
|
+
};
|
|
15
|
+
declare type PortalProfileMembership = {
|
|
16
|
+
name: string;
|
|
17
|
+
active: boolean;
|
|
18
|
+
_id?: string;
|
|
19
|
+
};
|
|
20
|
+
export declare class CustomerPortalSetup extends BrowserforcePlugin {
|
|
21
|
+
retrieve(definition?: Config): Promise<Config>;
|
|
22
|
+
diff(source: Config, target: Config): Config;
|
|
23
|
+
apply(config: Config): Promise<void>;
|
|
6
24
|
}
|
|
25
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomerPortalSetup = void 0;
|
|
3
4
|
const jsonMergePatch = require("json-merge-patch");
|
|
4
5
|
const queryString = require("querystring");
|
|
5
6
|
const plugin_1 = require("../../../plugin");
|
|
@@ -22,6 +23,7 @@ const SELECTORS = {
|
|
|
22
23
|
PORTAL_PROFILE_MEMBERSHIP_CHECKBOXES: 'td.dataCell input'
|
|
23
24
|
};
|
|
24
25
|
class CustomerPortalSetup extends plugin_1.BrowserforcePlugin {
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
25
27
|
async retrieve(definition) {
|
|
26
28
|
const page = await this.browserforce.openPage(PATHS.LIST_VIEW);
|
|
27
29
|
await page.waitForXPath(SELECTORS.LIST_VIEW_PORTAL_LINKS_XPATH);
|
|
@@ -29,23 +31,23 @@ class CustomerPortalSetup extends plugin_1.BrowserforcePlugin {
|
|
|
29
31
|
const response = await page.evaluate((...links) => {
|
|
30
32
|
return links.map((a) => {
|
|
31
33
|
return {
|
|
32
|
-
|
|
34
|
+
_id: a.pathname.split('/')[1],
|
|
33
35
|
name: a.text,
|
|
34
36
|
portalProfileMemberships: []
|
|
35
37
|
};
|
|
36
38
|
});
|
|
37
39
|
}, ...customerPortalLinks);
|
|
38
40
|
for (const portal of response) {
|
|
39
|
-
const portalPage = await this.browserforce.openPage(`${portal.
|
|
41
|
+
const portalPage = await this.browserforce.openPage(`${portal._id}/e`);
|
|
40
42
|
await portalPage.waitForSelector(SELECTORS.PORTAL_DESCRIPTION);
|
|
41
|
-
portal
|
|
42
|
-
portal
|
|
43
|
-
portal
|
|
44
|
-
portal
|
|
45
|
-
portal
|
|
46
|
-
portal
|
|
43
|
+
portal.description = await portalPage.$eval(SELECTORS.PORTAL_DESCRIPTION, (el) => el.value);
|
|
44
|
+
portal.adminUser = await portalPage.$eval(`#${SELECTORS.PORTAL_ADMIN_ID}`, (el) => el.value);
|
|
45
|
+
portal.isSelfRegistrationActivated = await portalPage.$eval(`#${SELECTORS.PORTAL_IS_SELF_REGISTRATION_ACTIVATED_ID}`, (el) => el.checked);
|
|
46
|
+
portal.selfRegUserDefaultLicense = await portalPage.$eval(`#${SELECTORS.PORTAL_SELF_REG_USER_DEFAULT_LICENSE_ID}`, (el) => el.selectedOptions[0].text);
|
|
47
|
+
portal.selfRegUserDefaultRole = await portalPage.$eval(`#${SELECTORS.PORTAL_SELF_REG_USER_DEFAULT_ROLE_ID}`, (el) => el.selectedOptions[0].text);
|
|
48
|
+
portal.selfRegUserDefaultProfile = await portalPage.$eval(`#${SELECTORS.PORTAL_SELF_REG_USER_DEFAULT_PROFILE_ID}`, (el) => el.selectedOptions[0].text);
|
|
47
49
|
// portalProfileMemberships
|
|
48
|
-
const portalProfilePage = await this.browserforce.openPage(`${PATHS.PORTAL_PROFILE_MEMBERSHIP}?portalId=${portal.
|
|
50
|
+
const portalProfilePage = await this.browserforce.openPage(`${PATHS.PORTAL_PROFILE_MEMBERSHIP}?portalId=${portal._id}&setupid=CustomerSuccessPortalSettings`);
|
|
49
51
|
await portalProfilePage.waitForSelector(SELECTORS.PORTAL_ID);
|
|
50
52
|
const profiles = await portalProfilePage.$$eval(SELECTORS.PORTAL_PROFILE_MEMBERSHIP_PROFILES, (ths) => {
|
|
51
53
|
return ths.map(th => th.innerText.trim());
|
|
@@ -54,7 +56,7 @@ class CustomerPortalSetup extends plugin_1.BrowserforcePlugin {
|
|
|
54
56
|
return inputs.map(input => {
|
|
55
57
|
return {
|
|
56
58
|
active: input.checked,
|
|
57
|
-
|
|
59
|
+
_id: input.id
|
|
58
60
|
};
|
|
59
61
|
});
|
|
60
62
|
});
|
|
@@ -63,10 +65,10 @@ class CustomerPortalSetup extends plugin_1.BrowserforcePlugin {
|
|
|
63
65
|
portalProfileMemberships.push({
|
|
64
66
|
name: profiles[i],
|
|
65
67
|
active: checkboxes[i].active,
|
|
66
|
-
|
|
68
|
+
_id: checkboxes[i]._id
|
|
67
69
|
});
|
|
68
70
|
}
|
|
69
|
-
portal
|
|
71
|
+
portal.portalProfileMemberships = portalProfileMemberships;
|
|
70
72
|
}
|
|
71
73
|
return response;
|
|
72
74
|
}
|
|
@@ -82,11 +84,11 @@ class CustomerPortalSetup extends plugin_1.BrowserforcePlugin {
|
|
|
82
84
|
if (!sourcePortal) {
|
|
83
85
|
throw new Error(`Portal with name '${portal.name} (oldName: ${portal.oldName})' not found. Setting up new Portals is not yet supported.`);
|
|
84
86
|
}
|
|
85
|
-
delete portal
|
|
87
|
+
delete portal.oldName;
|
|
86
88
|
if (sourcePortal) {
|
|
87
89
|
// move id of existing portal to new portal to be retained and used
|
|
88
|
-
portal.
|
|
89
|
-
delete sourcePortal.
|
|
90
|
+
portal._id = sourcePortal._id;
|
|
91
|
+
delete sourcePortal._id;
|
|
90
92
|
}
|
|
91
93
|
if (sourcePortal.portalProfileMemberships &&
|
|
92
94
|
portal.portalProfileMemberships) {
|
|
@@ -95,13 +97,13 @@ class CustomerPortalSetup extends plugin_1.BrowserforcePlugin {
|
|
|
95
97
|
// move id of existing member to new member to be retained and used
|
|
96
98
|
const sourceMember = sourcePortal.portalProfileMemberships.find(m => m.name === member.name);
|
|
97
99
|
if (sourceMember) {
|
|
98
|
-
member.
|
|
99
|
-
delete sourceMember.
|
|
100
|
+
member._id = sourceMember._id;
|
|
101
|
+
delete sourceMember._id;
|
|
100
102
|
}
|
|
101
103
|
else {
|
|
102
104
|
throw new Error(`Could not find portal profile membership for '${member.name}'`);
|
|
103
105
|
}
|
|
104
|
-
const membershipDiff = utils_1.semanticallyCleanObject(utils_1.removeNullValues(jsonMergePatch.generate(sourceMember, member)));
|
|
106
|
+
const membershipDiff = utils_1.semanticallyCleanObject(utils_1.removeNullValues(jsonMergePatch.generate(sourceMember, member)), '_id');
|
|
105
107
|
if (membershipDiff) {
|
|
106
108
|
membershipResponse.push(membershipDiff);
|
|
107
109
|
}
|
|
@@ -109,10 +111,10 @@ class CustomerPortalSetup extends plugin_1.BrowserforcePlugin {
|
|
|
109
111
|
delete sourcePortal.portalProfileMemberships;
|
|
110
112
|
delete portal.portalProfileMemberships;
|
|
111
113
|
if (membershipResponse.length) {
|
|
112
|
-
portal
|
|
114
|
+
portal.portalProfileMemberships = membershipResponse;
|
|
113
115
|
}
|
|
114
116
|
}
|
|
115
|
-
const diff = utils_1.semanticallyCleanObject(utils_1.removeNullValues(jsonMergePatch.generate(sourcePortal, portal)));
|
|
117
|
+
const diff = utils_1.semanticallyCleanObject(utils_1.removeNullValues(jsonMergePatch.generate(sourcePortal, portal)), '_id');
|
|
116
118
|
if (diff) {
|
|
117
119
|
response.push(diff);
|
|
118
120
|
}
|
|
@@ -122,7 +124,7 @@ class CustomerPortalSetup extends plugin_1.BrowserforcePlugin {
|
|
|
122
124
|
}
|
|
123
125
|
async apply(config) {
|
|
124
126
|
for (const portal of config) {
|
|
125
|
-
if (portal.
|
|
127
|
+
if (portal._id) {
|
|
126
128
|
// everything that can be changed using the url
|
|
127
129
|
const urlAttributes = {};
|
|
128
130
|
if (portal.name) {
|
|
@@ -137,7 +139,7 @@ class CustomerPortalSetup extends plugin_1.BrowserforcePlugin {
|
|
|
137
139
|
if (portal.isSelfRegistrationActivated !== undefined) {
|
|
138
140
|
urlAttributes[SELECTORS.PORTAL_IS_SELF_REGISTRATION_ACTIVATED_ID] = portal.isSelfRegistrationActivated ? 1 : 0;
|
|
139
141
|
}
|
|
140
|
-
const page = await this.browserforce.openPage(`${portal.
|
|
142
|
+
const page = await this.browserforce.openPage(`${portal._id}/e?${queryString.stringify(urlAttributes)}`);
|
|
141
143
|
await page.waitForSelector(SELECTORS.PORTAL_DESCRIPTION);
|
|
142
144
|
if (portal.selfRegUserDefaultLicense) {
|
|
143
145
|
const licenseValue = await page.evaluate((option) => option.value, (await page.$x(`//select[@id="${SELECTORS.PORTAL_SELF_REG_USER_DEFAULT_LICENSE_ID}"]//option[text()="${portal.selfRegUserDefaultLicense}"]`))[0]);
|
|
@@ -158,19 +160,19 @@ class CustomerPortalSetup extends plugin_1.BrowserforcePlugin {
|
|
|
158
160
|
}),
|
|
159
161
|
page.click(SELECTORS.SAVE_BUTTON)
|
|
160
162
|
]);
|
|
161
|
-
if ((await page.url()).includes(portal.
|
|
163
|
+
if ((await page.url()).includes(portal._id)) {
|
|
162
164
|
// error handling
|
|
163
165
|
await page.waitForSelector(SELECTORS.PORTAL_DESCRIPTION);
|
|
164
166
|
await this.browserforce.throwPageErrors(page);
|
|
165
|
-
throw new Error(`saving customer portal '${portal.
|
|
167
|
+
throw new Error(`saving customer portal '${portal._id}' failed`);
|
|
166
168
|
}
|
|
167
169
|
// portalProfileMemberships
|
|
168
170
|
if (portal.portalProfileMemberships) {
|
|
169
171
|
const membershipUrlAttributes = {};
|
|
170
172
|
for (const member of portal.portalProfileMemberships) {
|
|
171
|
-
membershipUrlAttributes[member.
|
|
173
|
+
membershipUrlAttributes[member._id] = member.active ? 1 : 0;
|
|
172
174
|
}
|
|
173
|
-
const portalProfilePage = await this.browserforce.openPage(`${PATHS.PORTAL_PROFILE_MEMBERSHIP}?portalId=${portal.
|
|
175
|
+
const portalProfilePage = await this.browserforce.openPage(`${PATHS.PORTAL_PROFILE_MEMBERSHIP}?portalId=${portal._id}&setupid=CustomerSuccessPortalSettings&${queryString.stringify(membershipUrlAttributes)}`);
|
|
174
176
|
await portalProfilePage.waitForSelector(SELECTORS.SAVE_BUTTON);
|
|
175
177
|
await Promise.all([
|
|
176
178
|
portalProfilePage.waitForNavigation(),
|
|
@@ -181,5 +183,5 @@ class CustomerPortalSetup extends plugin_1.BrowserforcePlugin {
|
|
|
181
183
|
}
|
|
182
184
|
}
|
|
183
185
|
}
|
|
184
|
-
exports.
|
|
186
|
+
exports.CustomerPortalSetup = CustomerPortalSetup;
|
|
185
187
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/customer-portal/portals/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/customer-portal/portals/index.ts"],"names":[],"mappings":";;;AAAA,mDAAmD;AACnD,2CAA2C;AAC3C,4CAAqD;AACrD,uCAAwE;AAExE,MAAM,KAAK,GAAG;IACZ,SAAS,EAAE,8CAA8C;IACzD,yBAAyB,EAAE,+CAA+C;CAC3E,CAAC;AACF,MAAM,SAAS,GAAG;IAChB,WAAW,EAAE,oBAAoB;IACjC,4BAA4B,EAC1B,kGAAkG;IACpG,kBAAkB,EAAE,cAAc;IAClC,SAAS,EAAE,WAAW;IACtB,eAAe,EAAE,OAAO;IACxB,wCAAwC,EAAE,6BAA6B;IACvE,uCAAuC,EAAE,2BAA2B;IACpE,oCAAoC,EAAE,wBAAwB;IAC9D,uCAAuC,EAAE,2BAA2B;IACpE,kCAAkC,EAAE,aAAa;IACjD,oCAAoC,EAAE,mBAAmB;CAC1D,CAAC;AAuBF,MAAa,mBAAoB,SAAQ,2BAAkB;IACzD,6DAA6D;IACtD,KAAK,CAAC,QAAQ,CAAC,UAAmB;QACvC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAC/D,MAAM,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,4BAA4B,CAAC,CAAC;QAChE,MAAM,mBAAmB,GA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AE;oBAC3C,iBAAiB;oBACjB,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;oBACzD,MAAM,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;oBAC9C,MAAM,IAAI,KAAK,CAAC,2BAA2B,MAAM,CAAC,GAAG,UAAU,CAAC,CAAC;iBAClE;gBACD,2BAA2B;gBAC3B,IAAI,MAAM,CAAC,wBAAwB,EAAE;oBACnC,MAAM,uBAAuB,GAAG,EAAE,CAAC;oBACnC,KAAK,MAAM,MAAM,IAAI,MAAM,CAAC,wBAAwB,EAAE;wBACpD,uBAAuB,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;qBAC7D;oBACD,MAAM,iBAAiB,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CACxD,GAAG,KAAK,CAAC,yBAAyB,aAChC,MAAM,CAAC,GACT,0CAA0C,WAAW,CAAC,SAAS,CAC7D,uBAAuB,CACxB,EAAE,CACJ,CAAC;oBACF,MAAM,iBAAiB,CAAC,eAAe,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;oBAC/D,MAAM,OAAO,CAAC,GAAG,CAAC;wBAChB,iBAAiB,CAAC,iBAAiB,EAAE;wBACrC,iBAAiB,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC;qBAC/C,CAAC,CAAC;iBACJ;aACF;SACF;IACH,CAAC;CACF;AAnPD,kDAmPC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { BrowserforcePlugin } from '../../plugin';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
declare type Config = {
|
|
3
|
+
suspend: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare class DeferSharingCalculation extends BrowserforcePlugin {
|
|
6
|
+
retrieve(definition?: Config): Promise<Config>;
|
|
7
|
+
apply(config: Config): Promise<void>;
|
|
7
8
|
}
|
|
9
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeferSharingCalculation = void 0;
|
|
3
4
|
const plugin_1 = require("../../plugin");
|
|
4
5
|
const PATHS = {
|
|
5
6
|
BASE: 'p/own/DeferSharingSetupPage'
|
|
@@ -10,6 +11,7 @@ const SELECTORS = {
|
|
|
10
11
|
RECALCULATE_BUTTON: 'input[name="rule_recalc"]'
|
|
11
12
|
};
|
|
12
13
|
class DeferSharingCalculation extends plugin_1.BrowserforcePlugin {
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13
15
|
async retrieve(definition) {
|
|
14
16
|
const page = await this.browserforce.openPage(PATHS.BASE);
|
|
15
17
|
await page.waitForSelector(SELECTORS.SUSPEND_BUTTON);
|
|
@@ -36,5 +38,5 @@ class DeferSharingCalculation extends plugin_1.BrowserforcePlugin {
|
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
}
|
|
39
|
-
exports.
|
|
41
|
+
exports.DeferSharingCalculation = DeferSharingCalculation;
|
|
40
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/defer-sharing-calculation/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/defer-sharing-calculation/index.ts"],"names":[],"mappings":";;;AAAA,yCAAkD;AAElD,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,6BAA6B;CACpC,CAAC;AACF,MAAM,SAAS,GAAG;IAChB,cAAc,EAAE,4BAA4B;IAC5C,aAAa,EAAE,2BAA2B;IAC1C,kBAAkB,EAAE,2BAA2B;CAChD,CAAC;AAMF,MAAa,uBAAwB,SA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AAI,CAAC,CAAC;YACnE,MAAM,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;SACzD;IACH,CAAC;CACF;AArCD,0DAqCC"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
+
import { ElementHandle, Page } from 'puppeteer';
|
|
1
2
|
import { BrowserforcePlugin } from '../../plugin';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
declare type Config = {
|
|
4
|
+
density: string;
|
|
5
|
+
};
|
|
6
|
+
declare type Density = {
|
|
7
|
+
value: string;
|
|
8
|
+
checked: boolean;
|
|
9
|
+
elementHandle: ElementHandle;
|
|
10
|
+
};
|
|
11
|
+
export declare class DensitySettings extends BrowserforcePlugin {
|
|
12
|
+
retrieve(): Promise<Config>;
|
|
13
|
+
apply(config: Config): Promise<void>;
|
|
14
|
+
getDensities(page: Page): Promise<Density[]>;
|
|
15
|
+
setDensity(page: Page, name: string): Promise<void>;
|
|
9
16
|
}
|
|
17
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DensitySettings = void 0;
|
|
3
4
|
const plugin_1 = require("../../plugin");
|
|
4
5
|
const PATHS = {
|
|
5
6
|
BASE: 'lightning/setup/DensitySetup/home'
|
|
@@ -44,9 +45,9 @@ class DensitySettings extends plugin_1.BrowserforcePlugin {
|
|
|
44
45
|
page.waitForResponse(response => response
|
|
45
46
|
.url()
|
|
46
47
|
.includes('UserSettings.DensityUserSettings.setDefaultDensitySetting=1') && response.status() === 200),
|
|
47
|
-
densityToSelect.elementHandle.evaluate(input => input.click())
|
|
48
|
+
densityToSelect.elementHandle.evaluate((input) => input.click())
|
|
48
49
|
]);
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
|
-
exports.
|
|
52
|
+
exports.DensitySettings = DensitySettings;
|
|
52
53
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/density-settings/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/density-settings/index.ts"],"names":[],"mappings":";;;AACA,yCAAkD;AAElD,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,mCAAmC;CAC1C,CAAC;AAEF,MAAM,SAAS,GAAG;IAChB,YAAY,EACV,uEAAuE;CAC1E,CAAC;AAYF,MAAa,eAAgB,SAAQ,2BAAkB;IAC9C,KAAK,CAAC,QAAQ;QACnB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE;YACxD,SAAS,EAAE,CAAC,MAAM,EAAE,kBAAkB,EAAE,cAAc,CAAC;SACxD,CAAC,CAAC;QACH,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QAChD,MAAM,QAAQ,GAAG,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACxD,OAAO;YACL,OAAO,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,KAAK;SACzB,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,KAAK,CAAC,MAAc;QAC/B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE;YACxD,SAAS,EAAE,CAAC,MAAM,EAAE,kBAAkB,EAAE,cAAc,CAAC;SACxD,CAAC,CAAC;QACH,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,IAAU;QAC3B,MAAM,IAAI,CAA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from 'jsforce';
|
|
1
2
|
import { BrowserforcePlugin } from '../../plugin';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
declare type Config = {
|
|
4
|
+
setUpAndEnable: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare class HighVelocitySalesSettings extends BrowserforcePlugin {
|
|
7
|
+
retrieve(definition?: Config): Promise<Config>;
|
|
8
|
+
apply(config: Config): Promise<void>;
|
|
7
9
|
}
|
|
8
|
-
export declare function disableHighVelocitySalesUsingMetadata(conn:
|
|
10
|
+
export declare function disableHighVelocitySalesUsingMetadata(conn: Connection): Promise<void>;
|
|
11
|
+
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.disableHighVelocitySalesUsingMetadata = void 0;
|
|
3
|
+
exports.disableHighVelocitySalesUsingMetadata = exports.HighVelocitySalesSettings = void 0;
|
|
4
4
|
const plugin_1 = require("../../plugin");
|
|
5
5
|
const page_1 = require("./page");
|
|
6
6
|
const MSG_NOT_AVAILABLE = `HighVelocitySales is not available in this organization.
|
|
7
7
|
Please add 'HighVelocitySales' to your Scratch Org Features or purchase a license.`;
|
|
8
8
|
class HighVelocitySalesSettings extends plugin_1.BrowserforcePlugin {
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9
10
|
async retrieve(definition) {
|
|
10
11
|
const conn = this.org.getConnection();
|
|
11
12
|
const result = { setUpAndEnable: false };
|
|
@@ -35,7 +36,7 @@ class HighVelocitySalesSettings extends plugin_1.BrowserforcePlugin {
|
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
|
-
exports.
|
|
39
|
+
exports.HighVelocitySalesSettings = HighVelocitySalesSettings;
|
|
39
40
|
async function disableHighVelocitySalesUsingMetadata(conn) {
|
|
40
41
|
const settings = {
|
|
41
42
|
fullName: 'HighVelocitySales',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/high-velocity-sales-settings/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/high-velocity-sales-settings/index.ts"],"names":[],"mappings":";;;AACA,yCAAkD;AAClD,iCAAoD;AAEpD,MAAM,iBAAiB,GAAG;mFACyD,CAAC;AAMpF,MAAa,yBAA0B,SAAQ,2BAAkB;IAC/D,6DAA6D;IACtD,KAAK,CAAC,QAAQ,CAAC,UAAmB;QACvC,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;QACtC,MAAM,MAAM,GAAG,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC;QACzC,IAAI;YACF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CACvC,2BAA2B,EAC3B,mBAAmB,CACpB,CAAC;YACF,MAAM,CAAC,cAAc;gBACnB,QAAQ,CAAC,8BAA8B,CAAC,KAAK,MAAM,CAAC;SACvD;QAAC,OAAO,CAAC,EAAE;YACV,IACE,4EAA4E,CAAC,IAAI,CAC/E,CAAC,CACF,EACD;gBACA,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;aACpC;iBAAM;gBACL,MAAM,CAAC,CAAC;aACT;SACF;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAEM,KAAK,CAAC,KAAK,CAAC,MAAc;QAC/B,IAAI,MAAM,CAAC,cAAc,EAAE;YACzB,MAAM,IAAI,GAAG,IAAI,iCAA0B,CACzC,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,iCAA0B,CAAC,MAAM,EAAE,CAAC,CACtE,CAAC;YACF,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;SAC7B;aAAM;YACL,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;YACtC,MAAM,qCAAqC,CAAC,IAAI,CAAC,CAAC;SACnD;IACH,CAAC;CACF;AArCD,8DAqCC;AAEM,KAAK,UAAU,qCAAqC,CACzD,IAAgB;IAEhB,MAAM,QAAQ,GAAG;QACf,QAAQ,EAAE,mBAAmB;QAC7B,4BAA4B,EAAE,OAAO;QACrC,uBAAuB,EAAE,OAAO;KACjC,CAAC;IACF,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,2BAA2B,EAAE,QAAQ,CAAC,CAAC;AACpE,CAAC;AATD,sFASC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../../src/plugins/high-velocity-sales-settings/page.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../../src/plugins/high-velocity-sales-settings/page.ts"],"names":[],"mappings":";;;AACA,qDAAqD;AAErD,MAAM,4BAA4B,GAAG,6BAA6B,CAAC;AACnE,MAAM,aAAa,GAAG,8BAA8B,CAAC;AAErD,MAAa,0BAA0B;IAGrC,YAAY,IAAU;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAEM,MAAM,CAAC,MAAM;QAClB,OAAO,wCAAwC,CAAC;IAClD,CAAC;IAEM,KAAK,CAAC,cAAc;QACzB,MAAM,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC;QAC9D,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;QACpD,MAAM,8BAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,MAAM,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;IACjD,CAAC;CACF;AAjBD,gEAiBC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { BrowserforcePlugin } from '../../plugin';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
declare type Config = {
|
|
3
|
+
homePageLayoutAssignments: HomePageLayoutAssignment[];
|
|
4
|
+
};
|
|
5
|
+
declare type HomePageLayoutAssignment = {
|
|
6
|
+
profile: string;
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
export declare class HomePageLayouts extends BrowserforcePlugin {
|
|
10
|
+
retrieve(definition?: Config): Promise<Config>;
|
|
11
|
+
diff(source: Config, target: Config): Config;
|
|
12
|
+
apply(config: Config): Promise<void>;
|
|
8
13
|
}
|
|
14
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HomePageLayouts = void 0;
|
|
3
4
|
const jsonMergePatch = require("json-merge-patch");
|
|
4
5
|
const plugin_1 = require("../../plugin");
|
|
5
6
|
const PATHS = {
|
|
@@ -10,6 +11,7 @@ const SELECTORS = {
|
|
|
10
11
|
SAVE_BUTTON: 'input[name="save"]'
|
|
11
12
|
};
|
|
12
13
|
class HomePageLayouts extends plugin_1.BrowserforcePlugin {
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13
15
|
async retrieve(definition) {
|
|
14
16
|
const page = await this.browserforce.openPage(PATHS.BASE);
|
|
15
17
|
await page.waitForSelector(SELECTORS.BASE);
|
|
@@ -83,5 +85,5 @@ class HomePageLayouts extends plugin_1.BrowserforcePlugin {
|
|
|
83
85
|
]);
|
|
84
86
|
}
|
|
85
87
|
}
|
|
86
|
-
exports.
|
|
88
|
+
exports.HomePageLayouts = HomePageLayouts;
|
|
87
89
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/home-page-layouts/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/home-page-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,eAAe,EAAE,cAAc,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;SACxE;QACD,MAAM,OAAO,CAAC,GAAG,CAAC;YAChB,IAAI,CAAC,iBAAiB,EAAE;YACxB,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC;SAClC,CAAC,CAAC;IACL,CAAC;CACF;AA7FD,0CA6FC"}
|
package/lib/plugins/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
1
|
+
import { ActivitySettings as activitySettings } from './activity-settings';
|
|
2
|
+
import { Communities as communities } from './communities';
|
|
3
|
+
import { CustomerPortal as customerPortal } from './customer-portal';
|
|
4
|
+
import { DeferSharingCalculation as deferSharingCalculation } from './defer-sharing-calculation';
|
|
5
|
+
import { DensitySettings as densitySettings } from './density-settings';
|
|
6
|
+
import { HighVelocitySalesSettings as highVelocitySalesSettings } from './high-velocity-sales-settings';
|
|
7
|
+
import { HomePageLayouts as homePageLayouts } from './home-page-layouts';
|
|
8
|
+
import { LightningExperienceSettings as lightningExperienceSettings } from './lightning-experience-settings';
|
|
9
|
+
import { Picklists as picklists } from './picklists';
|
|
10
|
+
import { RecordTypes as recordTypes } from './record-types';
|
|
11
|
+
import { ReportsAndDashboards as reportsAndDashboards } from './reports-and-dashboards';
|
|
12
|
+
import { SalesforceToSalesforce as salesforceToSalesforce } from './salesforce-to-salesforce';
|
|
13
|
+
import { Security as security } from './security';
|
|
14
|
+
import { RelateContactToMultipleAccounts as relateContactToMultipleAccounts } from './relate-contact-to-multiple-accounts';
|
|
15
|
+
export { relateContactToMultipleAccounts, activitySettings, communities, customerPortal, deferSharingCalculation, densitySettings, highVelocitySalesSettings, homePageLayouts, lightningExperienceSettings, picklists, recordTypes, reportsAndDashboards, salesforceToSalesforce, security };
|