sfdx-hardis 6.0.7-beta202508172156.0 → 6.0.7-beta202508202323.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.
@@ -1 +1 @@
1
- {"version":3,"file":"after-refresh.js","sourceRoot":"","sources":["../../../../../src/commands/hardis/org/refresh/after-refresh.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,CAAC,MAAM,OAAO,CAAC;AACtB,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,gCAAgC,EAChC,iCAAiC,EACjC,uBAAuB,EACxB,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAE9D,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;AAS7D,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,SAAkB;IAC7D,MAAM,CAAC,KAAK,GAAG,0CAA0C,CAAC;IAE1D,MAAM,CAAC,WAAW,GAAG;;;;;;;;;;;;;;;;;;;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3
  import { AnyJson } from '@salesforce/ts-types';
4
4
  export default class OrgRefreshBeforeRefresh extends SfCommand<AnyJson> {
5
- static title: string;
6
5
  static description: string;
7
6
  static examples: string[];
8
7
  static flags: {
@@ -16,9 +15,16 @@ export default class OrgRefreshBeforeRefresh extends SfCommand<AnyJson> {
16
15
  static requiresProject: boolean;
17
16
  protected conn: Connection;
18
17
  protected saveProjectPath: string;
18
+ protected orgUsername: string;
19
+ protected instanceUrl: string;
19
20
  protected refreshSandboxConfig: any;
21
+ protected result: any;
22
+ protected processAll: boolean;
23
+ protected nameFilter: string | undefined;
24
+ protected deleteApps: boolean;
20
25
  run(): Promise<AnyJson>;
21
26
  private createSaveProject;
27
+ private retrieveDeleteConnectedApps;
22
28
  private getConnectedApps;
23
29
  private selectConnectedApps;
24
30
  private processConnectedApps;
@@ -31,4 +37,10 @@ export default class OrgRefreshBeforeRefresh extends SfCommand<AnyJson> {
31
37
  private extractConsumerSecret;
32
38
  private updateConnectedAppWithSecret;
33
39
  private saveConfig;
40
+ private saveMetadatas;
41
+ private createSavePackageXml;
42
+ private retrieveMetadatasToSave;
43
+ private generatePackageXmlToRestore;
44
+ private retrieveCertificates;
45
+ private saveCustomSettings;
34
46
  }
@@ -8,53 +8,57 @@ import path from 'path';
8
8
  import puppeteer from 'puppeteer-core';
9
9
  import { execCommand, execSfdxJson, isCI, uxLog } from '../../../../common/utils/index.js';
10
10
  import { prompts } from '../../../../common/utils/prompts.js';
11
- import { parseXmlFile } from '../../../../common/utils/xmlUtils.js';
11
+ import { parsePackageXmlFile, parseXmlFile, writePackageXmlFile } from '../../../../common/utils/xmlUtils.js';
12
12
  import { getChromeExecutablePath } from '../../../../common/utils/orgConfigUtils.js';
13
13
  import { deleteConnectedApps, retrieveConnectedApps, validateConnectedApps, findConnectedAppFile, selectConnectedAppsForProcessing, createConnectedAppSuccessResponse, handleConnectedAppError } from '../../../../common/utils/refresh/connectedAppUtils.js';
14
14
  import { getConfig, setConfig } from '../../../../config/index.js';
15
15
  import { soqlQuery } from '../../../../common/utils/apiUtils.js';
16
16
  import { WebSocketClient } from '../../../../common/websocketClient.js';
17
+ import { PACKAGE_ROOT_DIR } from '../../../../settings.js';
17
18
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
18
19
  const messages = Messages.loadMessages('sfdx-hardis', 'org');
19
20
  export default class OrgRefreshBeforeRefresh extends SfCommand {
20
- static title = 'Save info to restore before org refresh';
21
21
  static description = `
22
22
  ## Command Behavior
23
23
 
24
- **Backs up all Connected Apps and their secrets from a Salesforce org before a sandbox refresh, enabling full restoration after the refresh.**
24
+ **Backs up all Connected Apps, their secrets, certificates, and custom settings from a Salesforce org before a sandbox refresh, enabling full restoration after the refresh.**
25
25
 
26
- This command is essential for Salesforce sandbox refresh operations where Connected Apps (and their Consumer Secrets) would otherwise be lost. It automates the extraction, secure storage, and (optionally) deletion of Connected Apps, ensuring that all credentials and configuration can be restored post-refresh.
26
+ This command is essential for Salesforce sandbox refresh operations where Connected Apps (and their Consumer Secrets), certificates, and custom settings would otherwise be lost. It automates the extraction, secure storage, and (optionally) deletion of Connected Apps, ensuring that all credentials and configuration can be restored post-refresh.
27
27
 
28
28
  Key functionalities:
29
29
 
30
- - **Connected App Discovery:** Lists all Connected Apps in the org, with options to filter by name or process all.
30
+ - **Connected App Discovery:** Lists all Connected Apps in the org, with options to filter by name, process all, or interactively select.
31
31
  - **User Selection:** Allows interactive or flag-based selection of which Connected Apps to back up.
32
32
  - **Metadata Retrieval:** Retrieves Connected App metadata and saves it in a dedicated project folder for the sandbox instance.
33
33
  - **Consumer Secret Extraction:** Attempts to extract Consumer Secrets automatically using browser automation (Puppeteer), or prompts for manual entry if automation fails.
34
34
  - **Config Persistence:** Stores the list of selected apps in the project config for use during restoration.
35
35
  - **Optional Deletion:** Can delete the Connected Apps from the org after backup, as required for re-upload after refresh.
36
- - **Summary and Reporting:** Provides a summary of actions, including which apps were saved and whether secrets were captured.
36
+ - **Certificate Backup:** Retrieves all org certificates and their definitions, saving them for later restoration.
37
+ - **Custom Settings Backup:** Lists all custom settings in the org, allows user selection, and exports their data to JSON files for backup.
38
+ - **Summary and Reporting:** Provides a summary of actions, including which apps, certificates, and custom settings were saved and whether secrets were captured.
37
39
 
38
- This command is part of [sfdx-hardis Sandbox Refresh](https://sfdx-hardis.cloudity.com/salesforce-sandbox-refresh/) and is designed to be run before a sandbox refresh. It ensures that all Connected Apps and their secrets are safely stored for later restoration.
40
+ This command is part of [sfdx-hardis Sandbox Refresh](https://sfdx-hardis.cloudity.com/salesforce-sandbox-refresh/) and is designed to be run before a sandbox refresh. It ensures that all Connected Apps, secrets, certificates, and custom settings are safely stored for later restoration.
39
41
 
40
42
  <details markdown="1">
41
43
  <summary>Technical explanations</summary>
42
44
 
43
- - **Salesforce CLI Integration:** Uses \`sf org list metadata\` and other CLI commands to discover and retrieve Connected Apps.
44
- - **Metadata Handling:** Saves Connected App XML files in a dedicated folder under \`scripts / sandbox - refresh / <sandbox-folder > \`.
45
+ - **Salesforce CLI Integration:** Uses \`sf org list metadata\`, \`sf project retrieve start\`, and other CLI commands to discover and retrieve Connected Apps, certificates, and custom settings.
46
+ - **Metadata Handling:** Saves Connected App XML files and certificate files in a dedicated folder under \`scripts/sandbox-refresh/<sandbox-folder>\`.
45
47
  - **Consumer Secret Handling:** Uses Puppeteer to automate browser login and extraction of Consumer Secrets, falling back to manual prompts if needed.
46
- - **Config Management:** Updates \`config /.sfdx - hardis.yml\` with the list of selected apps for later use.
47
- - **Deletion Logic:** Optionally deletes Connected Apps from the org (required for re-upload after refresh), with user confirmation unless running in CI or with \`--delete \` flag.
48
+ - **Custom Settings Handling:** Lists all custom settings, allows user selection, and exports their data using \`sf data tree export\` to JSON files.
49
+ - **Config Management:** Updates \`config/.sfdx-hardis.yml\` with the list of selected apps for later use.
50
+ - **Deletion Logic:** Optionally deletes Connected Apps from the org (required for re-upload after refresh), with user confirmation unless running in CI or with \`--delete\` flag.
48
51
  - **Error Handling:** Provides detailed error messages and guidance if retrieval or extraction fails.
52
+ - **Reporting:** Sends summary and configuration files to the WebSocket client for reporting and traceability.
49
53
 
50
54
  </details>
51
55
  `;
52
56
  static examples = [
53
- `$ sf hardis:org:refresh:before-refresh`,
54
- `$ sf hardis:org:refresh:before-refresh --name "MyConnectedApp"`,
55
- `$ sf hardis:org:refresh:before-refresh --name "App1,App2,App3"`,
56
- `$ sf hardis:org:refresh:before-refresh --all`,
57
- `$ sf hardis:org:refresh:before-refresh --delete`,
57
+ "$ sf hardis:org:refresh:before-refresh",
58
+ "$ sf hardis:org:refresh:before-refresh --name \"MyConnectedApp\"",
59
+ "$ sf hardis:org:refresh:before-refresh --name \"App1,App2,App3\"",
60
+ "$ sf hardis:org:refresh:before-refresh --all",
61
+ "$ sf hardis:org:refresh:before-refresh --delete",
58
62
  ];
59
63
  static flags = {
60
64
  "target-org": Flags.requiredOrg(),
@@ -84,82 +88,51 @@ This command is part of [sfdx-hardis Sandbox Refresh](https://sfdx-hardis.cloudi
84
88
  static requiresProject = true;
85
89
  conn;
86
90
  saveProjectPath = '';
91
+ orgUsername = '';
92
+ instanceUrl = '';
87
93
  refreshSandboxConfig = {};
94
+ result;
95
+ processAll;
96
+ nameFilter;
97
+ deleteApps;
88
98
  async run() {
89
99
  const { flags } = await this.parse(OrgRefreshBeforeRefresh);
90
100
  this.conn = flags["target-org"].getConnection();
91
- const orgUsername = flags["target-org"].getUsername(); // Cast to string to avoid TypeScript error
92
- const instanceUrl = this.conn.instanceUrl;
101
+ this.orgUsername = flags["target-org"].getUsername(); // Cast to string to avoid TypeScript error
102
+ this.instanceUrl = this.conn.instanceUrl;
103
+ this.deleteApps = flags.delete || false;
93
104
  const accessToken = this.conn.accessToken; // Ensure accessToken is a string
94
- const processAll = flags.all || false;
95
- const nameFilter = processAll ? undefined : flags.name; // If --all is set, ignore --name
105
+ this.processAll = flags.all || false;
106
+ this.nameFilter = this.processAll ? undefined : flags.name; // If --all is set, ignore --name
96
107
  const config = await getConfig("user");
97
108
  this.refreshSandboxConfig = config?.refreshSandboxConfig || {};
98
- uxLog("action", this, c.cyan(`This command with save information that will need to be restored after org refresh`));
109
+ this.result = { success: true, message: 'before-refresh command performed successfully' };
110
+ uxLog("action", this, c.cyan(`This command will save information that must be restored after org refresh, in the following order:
111
+ - Connected Apps
112
+ - Certificates
113
+ - Other Metadatas
114
+ - Custom Settings
115
+ `));
99
116
  // Check org is connected
100
117
  if (!accessToken) {
101
118
  throw new SfError(c.red('Access token is required to retrieve Connected Apps from the org. Please authenticate to a default org.'));
102
119
  }
103
120
  this.saveProjectPath = await this.createSaveProject();
104
- try {
105
- // Step 1: Get Connected Apps from org or based on provided name filter
106
- const connectedApps = await this.getConnectedApps(orgUsername, nameFilter, processAll);
107
- if (connectedApps.length === 0) {
108
- uxLog("warning", this, c.yellow('No Connected Apps found'));
109
- return { success: false, message: 'No Connected Apps found' };
110
- }
111
- // Step 2: Determine which apps to process (all, filtered, or user-selected)
112
- const selectedApps = await this.selectConnectedApps(connectedApps, processAll, nameFilter);
113
- if (selectedApps.length === 0) {
114
- uxLog("warning", this, c.yellow('No Connected Apps selected'));
115
- return { success: false, message: 'No Connected Apps selected' };
116
- }
117
- this.refreshSandboxConfig.connectedApps = selectedApps.map(app => app.fullName).sort();
118
- await this.saveConfig();
119
- // Step 3: Process the selected Connected Apps
120
- const updatedApps = await this.processConnectedApps(orgUsername, selectedApps, instanceUrl, accessToken);
121
- // Step 4: Delete Connected Apps from org if required (default behavior)
122
- let deleteApps = flags.delete || false;
123
- if (!isCI && !deleteApps) {
124
- const connectedAppNames = updatedApps.map(app => app.fullName).join(', ');
125
- const deletePrompt = await prompts({
126
- type: 'confirm',
127
- name: 'delete',
128
- message: `Do you want to delete the Connected Apps from the org after saving? ${connectedAppNames}`,
129
- description: 'If you do not delete them, they will remain in the org and can be re-uploaded after refreshing the org.',
130
- initial: false
131
- });
132
- deleteApps = deletePrompt.delete;
133
- }
134
- if (deleteApps) {
135
- uxLog("action", this, c.cyan(`Deleting ${updatedApps.length} Connected Apps from ${this.conn.instanceUrl} ...`));
136
- await deleteConnectedApps(orgUsername, updatedApps, this, this.saveProjectPath);
137
- uxLog("success", this, c.green('Connected Apps were successfully deleted from the org.'));
138
- }
139
- const summaryMessage = deleteApps
140
- ? `You are now ready to refresh your sandbox org, as you will be able to re-upload the Connected Apps after the refresh.`
141
- : `Dry-run successful, run again the command with Connected Apps deletion to be able to refresh your org and re-upload the Connected Apps after the refresh.`;
142
- uxLog("action", this, c.cyan(summaryMessage));
143
- // Add a summary message at the end
144
- if (updatedApps.length > 0) {
145
- uxLog("success", this, c.green(`Successfully saved locally ${updatedApps.length} Connected App(s) with their Consumer Secrets`));
146
- }
147
- uxLog("success", this, c.cyan('Saved refresh sandbox configuration in config/.sfdx-hardis.yml'));
148
- WebSocketClient.sendReportFileMessage(path.join(process.cwd(), 'config', '.sfdx-hardis.yml#refreshSandboxConfig'), "Sandbox refresh configuration", 'report');
149
- return createConnectedAppSuccessResponse(`Successfully processed ${updatedApps.length} Connected App(s)`, updatedApps.map(app => app.fullName), {
150
- consumerSecretsAdded: updatedApps.map(app => app.consumerSecret ? app.fullName : null).filter(Boolean)
151
- });
152
- }
153
- catch (error) {
154
- return handleConnectedAppError(error, this);
155
- }
121
+ await this.saveMetadatas();
122
+ await this.saveCustomSettings();
123
+ await this.retrieveDeleteConnectedApps(accessToken);
124
+ return this.result;
156
125
  }
157
126
  async createSaveProject() {
158
127
  const folderName = this.conn.instanceUrl.replace(/https?:\/\//, '').replace("my.salesforce.com", "").replace(/\//g, '-').replace(/[^a-zA-Z0-9-]/g, '');
159
128
  const sandboxRefreshRootFolder = path.join(process.cwd(), 'scripts', 'sandbox-refresh');
160
129
  const projectPath = path.join(sandboxRefreshRootFolder, folderName);
130
+ if (fs.existsSync(projectPath)) {
131
+ uxLog("log", this, c.cyan(`Project folder ${projectPath} already exists. Reusing it.\n(Delete it and run again this command if you want to start fresh)`));
132
+ return projectPath;
133
+ }
161
134
  await fs.ensureDir(projectPath);
162
- uxLog("action", this, c.cyan(`Creating sfdx-project for sandbox info storage in ${projectPath}`));
135
+ uxLog("action", this, c.cyan(`Creating sfdx-project for sandbox info storage`));
163
136
  const createCommand = `sf project generate --name "${folderName}"`;
164
137
  await execCommand(createCommand, this, {
165
138
  output: true,
@@ -168,8 +141,82 @@ This command is part of [sfdx-hardis Sandbox Refresh](https://sfdx-hardis.cloudi
168
141
  uxLog("log", this, c.grey('Moving sfdx-project to root...'));
169
142
  await fs.copy(folderName, projectPath, { overwrite: true });
170
143
  await fs.remove(folderName);
144
+ uxLog("log", this, c.grey(`Save Project created in folder ${projectPath}`));
171
145
  return projectPath;
172
146
  }
147
+ async retrieveDeleteConnectedApps(accessToken) {
148
+ // If metadatas folder is not empty, ask if we want to retrieve them again
149
+ let retrieveConnectedApps = true;
150
+ const connectedAppsFolder = path.join(this.saveProjectPath, 'force-app', 'main', 'default', 'connectedApps');
151
+ if (fs.existsSync(connectedAppsFolder) && fs.readdirSync(connectedAppsFolder).length > 0) {
152
+ const confirmRetrieval = await prompts({
153
+ type: 'confirm',
154
+ name: 'retrieveAgain',
155
+ message: `Connected Apps folder is not empty. Do you want to retrieve Connected Apps again?`,
156
+ description: `If you do not retrieve them again, the Connected Apps will not be updated with the latest changes from the org.`,
157
+ initial: false
158
+ });
159
+ if (!confirmRetrieval.retrieveAgain) {
160
+ retrieveConnectedApps = false;
161
+ }
162
+ }
163
+ if (retrieveConnectedApps) {
164
+ try {
165
+ // Step 1: Get Connected Apps from org or based on provided name filter
166
+ const connectedApps = await this.getConnectedApps(this.orgUsername, this.nameFilter, this.processAll);
167
+ if (connectedApps.length === 0) {
168
+ uxLog("warning", this, c.yellow('No Connected Apps found'));
169
+ this.result = Object.assign(this.result, { success: false, message: 'No Connected Apps found' });
170
+ return;
171
+ }
172
+ // Step 2: Determine which apps to process (all, filtered, or user-selected)
173
+ const selectedApps = await this.selectConnectedApps(connectedApps, this.processAll, this.nameFilter);
174
+ if (selectedApps.length === 0) {
175
+ uxLog("warning", this, c.yellow('No Connected Apps selected'));
176
+ this.result = Object.assign(this.result, { success: false, message: 'No Connected Apps selected' });
177
+ return;
178
+ }
179
+ this.refreshSandboxConfig.connectedApps = selectedApps.map(app => app.fullName).sort();
180
+ await this.saveConfig();
181
+ // Step 3: Process the selected Connected Apps
182
+ const updatedApps = await this.processConnectedApps(this.orgUsername, selectedApps, this.instanceUrl, accessToken);
183
+ // Step 4: Delete Connected Apps from org if required (default behavior)
184
+ if (!isCI && !this.deleteApps) {
185
+ const connectedAppNames = updatedApps.map(app => app.fullName).join(', ');
186
+ const deletePrompt = await prompts({
187
+ type: 'confirm',
188
+ name: 'delete',
189
+ message: `Do you want to delete the Connected Apps from the org after saving? ${connectedAppNames}`,
190
+ description: 'If you do not delete them, they will remain in the org and can be re-uploaded after refreshing the org.',
191
+ initial: false
192
+ });
193
+ this.deleteApps = deletePrompt.delete;
194
+ }
195
+ if (this.deleteApps) {
196
+ uxLog("action", this, c.cyan(`Deleting ${updatedApps.length} Connected Apps from ${this.conn.instanceUrl} ...`));
197
+ await deleteConnectedApps(this.orgUsername, updatedApps, this, this.saveProjectPath);
198
+ uxLog("success", this, c.green('Connected Apps were successfully deleted from the org.'));
199
+ }
200
+ const summaryMessage = this.deleteApps
201
+ ? `You are now ready to refresh your sandbox org, as you will be able to re-upload the Connected Apps after the refresh.`
202
+ : `Dry-run successful, run again the command with Connected Apps deletion to be able to refresh your org and re-upload the Connected Apps after the refresh.`;
203
+ uxLog("action", this, c.cyan(summaryMessage));
204
+ // Add a summary message at the end
205
+ if (updatedApps.length > 0) {
206
+ uxLog("success", this, c.green(`Successfully saved locally ${updatedApps.length} Connected App(s) with their Consumer Secrets`));
207
+ }
208
+ uxLog("success", this, c.cyan('Saved refresh sandbox configuration in config/.sfdx-hardis.yml'));
209
+ WebSocketClient.sendReportFileMessage(path.join(process.cwd(), 'config', '.sfdx-hardis.yml#refreshSandboxConfig'), "Sandbox refresh configuration", 'report');
210
+ const connectedAppRes = createConnectedAppSuccessResponse(`Successfully processed ${updatedApps.length} Connected App(s)`, updatedApps.map(app => app.fullName), {
211
+ consumerSecretsAdded: updatedApps.map(app => app.consumerSecret ? app.fullName : null).filter(Boolean)
212
+ });
213
+ this.result = Object.assign(this.result || {}, connectedAppRes);
214
+ }
215
+ catch (error) {
216
+ this.result = Object.assign(this.result || {}, handleConnectedAppError(error, this));
217
+ }
218
+ }
219
+ }
173
220
  async getConnectedApps(orgUsername, nameFilter, processAll) {
174
221
  // Set appropriate log message based on flags
175
222
  if (processAll) {
@@ -498,5 +545,201 @@ You might need to set variable PUPPETEER_EXECUTABLE_PATH with the target of a Ch
498
545
  uxLog("log", this, c.cyan('Refresh sandbox configuration has been saved successfully.'));
499
546
  }
500
547
  }
548
+ async saveMetadatas() {
549
+ const metadataToSave = path.join(this.saveProjectPath, "manifest", 'package-metadatas-to-save.xml');
550
+ if (fs.existsSync(metadataToSave)) {
551
+ const promptResponse = await prompts({
552
+ type: 'confirm',
553
+ name: 'retrieveAgain',
554
+ message: `It seems you already have metadatas saved from a previous run.\nDo you want to retrieve certificates and metadata again ?`,
555
+ description: 'This will overwrite the existing package-metadatas-to-save.xml file and related certificates and metadatas.',
556
+ initial: false
557
+ });
558
+ if (!promptResponse.retrieveAgain) {
559
+ uxLog("log", this, c.grey(`Skipping metadata retrieval as it already exists at ${this.saveProjectPath}`));
560
+ return;
561
+ }
562
+ }
563
+ // Retrieve certificates
564
+ await this.retrieveCertificates();
565
+ // Metadata package.Xml for backup
566
+ uxLog("action", this, c.cyan('Saving metadata files before sandbox refresh...'));
567
+ const savePackageXml = await this.createSavePackageXml();
568
+ // Retrieve metadata from org using the package XML
569
+ await this.retrieveMetadatasToSave(savePackageXml);
570
+ // Generate new package.xml from saveProjectPath, and remove ConnectedApps from it
571
+ await this.generatePackageXmlToRestore();
572
+ }
573
+ async createSavePackageXml() {
574
+ uxLog("log", this, c.cyan(`Managing "package-metadatas-to-save.xml" file, that will be used to retrieve the metadatas before refreshing the org.`));
575
+ // Copy default package xml to the save project path
576
+ const sourceFile = path.join(PACKAGE_ROOT_DIR, 'defaults/refresh-sandbox', 'package-metadatas-to-save.xml');
577
+ const targetFile = path.join(this.saveProjectPath, "manifest", 'package-metadatas-to-save.xml');
578
+ await fs.ensureDir(path.dirname(targetFile));
579
+ if (fs.existsSync(targetFile)) {
580
+ const promptResponse = await prompts({
581
+ type: 'confirm',
582
+ name: 'overwrite',
583
+ message: `The file ${targetFile} already exists. Do you want to overwrite it?`,
584
+ description: 'This file is used to save the metadata that will be restored after org refresh.',
585
+ initial: false
586
+ });
587
+ if (promptResponse.overwrite) {
588
+ uxLog("log", this, c.grey(`Overwriting default save package xml to ${targetFile}`));
589
+ await fs.copy(sourceFile, targetFile, { overwrite: true });
590
+ }
591
+ }
592
+ else {
593
+ uxLog("log", this, c.grey(`Copying default package xml to ${targetFile}`));
594
+ await fs.copy(sourceFile, targetFile, { overwrite: true });
595
+ }
596
+ uxLog("log", this, c.grey(`Save package XML is located at ${targetFile}`));
597
+ WebSocketClient.sendReportFileMessage(targetFile, "Save package XML", 'report');
598
+ return targetFile;
599
+ }
600
+ async retrieveMetadatasToSave(savePackageXml) {
601
+ uxLog("action", this, c.cyan(`Retrieving metadatas to save...`));
602
+ await execCommand(`sf project retrieve start --manifest ${savePackageXml} --target-org ${this.orgUsername} --ignore-conflicts --json`, this, { output: true, fail: true, cwd: this.saveProjectPath });
603
+ }
604
+ async generatePackageXmlToRestore() {
605
+ uxLog("action", this, c.cyan(`Generating new package.xml from saved project path ${this.saveProjectPath}...`));
606
+ const restorePackageXmlFileName = 'package-metadata-to-restore.xml';
607
+ const restorePackageXmlFile = path.join(this.saveProjectPath, 'manifest', restorePackageXmlFileName);
608
+ await execCommand(`sf project generate manifest --source-dir force-app --output-dir manifest --name ${restorePackageXmlFileName} --json`, this, { output: true, fail: true, cwd: this.saveProjectPath });
609
+ uxLog("success", this, c.grey(`Generated package.xml for restore at ${restorePackageXmlFile}`));
610
+ const restorePackage = await parsePackageXmlFile(restorePackageXmlFile);
611
+ if (restorePackage?.["ConnectedApp"]) {
612
+ delete restorePackage["ConnectedApp"];
613
+ await writePackageXmlFile(restorePackageXmlFile, restorePackage);
614
+ uxLog("log", this, c.grey(`Removed ConnectedApps from ${restorePackageXmlFileName} as they will be handled separately`));
615
+ }
616
+ if (restorePackage?.["Certificate"]) {
617
+ delete restorePackage["Certificate"];
618
+ await writePackageXmlFile(restorePackageXmlFile, restorePackage);
619
+ uxLog("log", this, c.grey(`Removed Certificates from ${restorePackageXmlFileName} as they will be handled separately`));
620
+ }
621
+ if (restorePackage?.["SamlSsoConfig"]) {
622
+ delete restorePackage["SamlSsoConfig"];
623
+ await writePackageXmlFile(restorePackageXmlFile, restorePackage);
624
+ uxLog("log", this, c.grey(`Removed SamlSsoConfig from ${restorePackageXmlFileName} as they will be handled separately`));
625
+ }
626
+ }
627
+ async retrieveCertificates() {
628
+ uxLog("action", this, c.cyan('Retrieving certificates (.crt) from org...'));
629
+ // Retrieve certificates using metadata api coz with source api it does not work
630
+ const certificatesPackageXml = path.join(PACKAGE_ROOT_DIR, 'defaults/refresh-sandbox', 'package-certificates-to-save.xml');
631
+ const packageCertsXml = path.join(this.saveProjectPath, 'manifest', 'package-certificates-to-save.xml');
632
+ uxLog("log", this, c.grey(`Copying default package XML for certificates to ${packageCertsXml}`));
633
+ await fs.copy(certificatesPackageXml, packageCertsXml, { overwrite: true });
634
+ uxLog("log", this, c.grey(`Retrieving certificates from org ${this.instanceUrl} using Metadata API (Source APi does not support it)...`));
635
+ await execSfdxJson(`sf project retrieve start --manifest ${packageCertsXml} --target-org ${this.orgUsername} --target-metadata-dir ./mdapi_certs --unzip`, this, { output: true, fail: true, cwd: this.saveProjectPath });
636
+ // Copy the extracted certificates to the main directory
637
+ const mdapiCertsDir = path.join(this.saveProjectPath, 'mdapi_certs', 'unpackaged', 'unpackaged', 'certs');
638
+ const certsDir = path.join(this.saveProjectPath, 'force-app', 'main', 'default', 'certs');
639
+ uxLog("log", this, c.grey(`Copying certificates from ${mdapiCertsDir} to ${certsDir}`));
640
+ await fs.ensureDir(certsDir);
641
+ await fs.copy(mdapiCertsDir, certsDir, { overwrite: true });
642
+ await fs.remove(path.join(this.saveProjectPath, 'mdapi_certs'));
643
+ uxLog("success", this, c.green(`Successfully retrieved certificates from org and saved them to ${certsDir}`));
644
+ uxLog("action", this, c.cyan('Retrieving certificates definitions (.crt-meta.xml) from org...'));
645
+ // Retrieve certificates definitions using source api
646
+ await execCommand(`sf project retrieve start -m Certificate --target-org ${this.orgUsername} --ignore-conflicts --json`, this, { output: true, fail: true, cwd: this.saveProjectPath });
647
+ }
648
+ async saveCustomSettings() {
649
+ const customSettingsFolder = path.join(this.saveProjectPath, 'savedCustomSettings');
650
+ // If savedCustomSettings is not empty, ask if we want to retrieve them again
651
+ if (fs.existsSync(customSettingsFolder) && fs.readdirSync(customSettingsFolder).length > 0) {
652
+ const confirmRetrieval = await prompts({
653
+ type: 'confirm',
654
+ name: 'retrieveAgain',
655
+ message: `Custom Settings folder is not empty. Do you want to retrieve Custom Settings again?`,
656
+ description: `If you do not retrieve them again, the Custom Settings will not be updated with the latest changes from the org.`,
657
+ initial: false
658
+ });
659
+ if (!confirmRetrieval.retrieveAgain) {
660
+ uxLog("log", this, c.grey(`Skipping Custom Settings retrieval as it already exists at ${customSettingsFolder}`));
661
+ return;
662
+ }
663
+ }
664
+ // List custom settings in the org
665
+ uxLog("action", this, c.cyan(`Listing Custom Settings in the org...`));
666
+ const globalDesc = await this.conn.describeGlobal();
667
+ const customSettings = globalDesc.sobjects.filter(sobject => sobject.customSetting);
668
+ if (customSettings.length === 0) {
669
+ uxLog("warning", this, c.yellow('No Custom Settings found in the org.'));
670
+ return;
671
+ }
672
+ const customSettingsNames = customSettings.map(cs => `- ${cs.name}`).sort().join('\n');
673
+ uxLog("log", this, c.grey(`Found ${customSettings.length} Custom Setting(s) in the org:\n${customSettingsNames}`));
674
+ // Ask user to select which Custom Settings to retrieve
675
+ const selectedSettings = await prompts({
676
+ type: 'multiselect',
677
+ name: 'settings',
678
+ message: 'Select Custom Settings to retrieve',
679
+ description: 'You can select multiple Custom Settings to retrieve.',
680
+ choices: customSettings.map(cs => ({ title: cs.name, value: cs.name })),
681
+ initial: customSettings.map(cs => cs.name),
682
+ });
683
+ if (selectedSettings.settings.length === 0) {
684
+ uxLog("warning", this, c.yellow('No Custom Settings selected for retrieval'));
685
+ return;
686
+ }
687
+ uxLog("action", this, c.cyan(`Retrieving ${selectedSettings.settings.length} selected Custom Settings`));
688
+ const successCs = [];
689
+ const errorCs = [];
690
+ // Retrieve each selected Custom Setting
691
+ for (const settingName of selectedSettings.settings) {
692
+ try {
693
+ uxLog("action", this, c.cyan(`Retrieving Custom Setting: ${settingName}`));
694
+ // List all fields of the Custom Setting using globalDesc
695
+ const customSettingDesc = globalDesc.sobjects.find(sobject => sobject.name === settingName);
696
+ if (!customSettingDesc) {
697
+ uxLog("error", this, c.red(`Custom Setting ${settingName} not found in the org.`));
698
+ errorCs.push(settingName);
699
+ continue;
700
+ }
701
+ const csDescribe = await this.conn.sobject(settingName).describe();
702
+ const fieldList = csDescribe.fields.map(field => field.name).join(', ');
703
+ uxLog("log", this, c.grey(`Fields in Custom Setting ${settingName}: ${fieldList}`));
704
+ // Use data tree export to retrieve the Custom Setting
705
+ uxLog("log", this, c.cyan(`Running tree export for Custom Setting ${settingName}...`));
706
+ const retrieveCommand = `sf data tree export --query "SELECT ${fieldList} FROM ${settingName}" --target-org ${this.orgUsername} --json`;
707
+ const csFolder = path.join(customSettingsFolder, settingName);
708
+ await fs.ensureDir(csFolder);
709
+ const result = await execSfdxJson(retrieveCommand, this, {
710
+ output: true,
711
+ fail: true,
712
+ cwd: csFolder
713
+ });
714
+ if (!(result?.status === 0)) {
715
+ uxLog("error", this, c.red(`Failed to retrieve Custom Setting ${settingName}: ${JSON.stringify(result)}`));
716
+ continue;
717
+ }
718
+ const resultFile = path.join(csFolder, `${settingName}.json`);
719
+ if (fs.existsSync(resultFile)) {
720
+ uxLog("log", this, c.grey(`Custom Setting ${settingName} has been downloaded to ${resultFile}`));
721
+ successCs.push(settingName);
722
+ }
723
+ else {
724
+ uxLog("warning", this, c.red(`Custom Setting ${settingName} was not retrieved correctly, or has no values. No file found at ${resultFile}`));
725
+ errorCs.push(settingName);
726
+ continue;
727
+ }
728
+ }
729
+ catch (error) {
730
+ errorCs.push(settingName);
731
+ uxLog("error", this, c.red(`Error retrieving Custom Setting ${settingName}: ${error.message || error}`));
732
+ }
733
+ }
734
+ uxLog("action", this, c.cyan(`Custom Settings retrieval completed (${successCs.length} successful, ${errorCs.length} failed)`));
735
+ if (successCs.length > 0) {
736
+ const successCsNames = successCs.map(cs => "- " + cs).join('\n');
737
+ uxLog("success", this, c.green(`Successfully retrieved Custom Settings:\n${successCsNames}`));
738
+ }
739
+ if (errorCs.length > 0) {
740
+ const errorCsNames = errorCs.map(cs => "- " + cs).join('\n');
741
+ uxLog("error", this, c.red(`Failed to retrieve Custom Settings:\n${errorCsNames}`));
742
+ }
743
+ }
501
744
  }
502
745
  //# sourceMappingURL=before-refresh.js.map