sfdx-hardis 5.43.5 → 5.44.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/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  Note: Can be used with `sfdx plugins:install sfdx-hardis@beta` and docker image `hardisgroupcom/sfdx-hardis@beta`
6
6
 
7
+ ## [5.44.0] 2025-06-29
8
+
9
+ - [hardis:project:generate:bypass](https://sfdx-hardis.cloudity.com/hardis/project/generate/bypass/): Code rework + removed global flag + Added ability to apply the bypass to VRs and Triggers
10
+ - Refactored logic to ensure preprod branches are only added if they exist, preventing null pointer exceptions.
11
+ - Upgrade npm dependencies
12
+
7
13
  ## [5.43.5] 2025-06-27
8
14
 
9
15
  - Filter WorkflowFlowAutomation from org-generated package.xml (workaround attempt for <https://github.com/forcedotcom/cli/issues/3324>)
@@ -1,19 +1,42 @@
1
- import { SfCommand } from '@salesforce/sf-plugins-core';
2
- import { Connection } from '@salesforce/core';
3
- import { AnyJson } from '@salesforce/ts-types';
1
+ import { SfCommand } from "@salesforce/sf-plugins-core";
2
+ import { Connection } from "@salesforce/core";
3
+ import { AnyJson } from "@salesforce/ts-types";
4
4
  export default class HardisProjectGenerateBypass extends SfCommand<any> {
5
+ private skipCredits;
6
+ private retrieveFromOrg;
5
7
  static flags: any;
6
8
  static description: string;
7
9
  static examples: string[];
10
+ run(): Promise<AnyJson>;
8
11
  querySObjects(connection: Connection): Promise<any>;
9
12
  getFilteredSObjects(connection: Connection): Promise<{
10
13
  [key: string]: string;
11
14
  }>;
12
- generateCustomPermissionXML(sObject: string, automation: string, skipCredits?: boolean): string;
13
- generatePermissionSetXML(sObject: string, automation: string, skipCredits?: boolean): string;
15
+ queryTriggers(connection: Connection): Promise<any>;
16
+ filterTriggerResults(triggerResults: any, sObjects: any): any;
17
+ queryValidationRules(connection: Connection, sObjects: {
18
+ [key: string]: string;
19
+ }): Promise<any>;
20
+ generateXML(type: "customPermission" | "permissionSet", sObject: string, automation: string): string;
14
21
  private generateXMLFiles;
15
22
  generateFiles(targetSObjects: {
16
23
  [key: string]: string;
17
- }, targetAutomations: string[], skipCredits: boolean): void;
18
- run(): Promise<AnyJson>;
24
+ }, targetAutomations: string[]): void;
25
+ retrieveMetadataFiles(records: any[], metadataType: "ValidationRule" | "ApexTrigger"): Promise<any[]>;
26
+ chunkArray<T>(array: T[], chunkSize?: number): T[][];
27
+ handleValidationRuleFile(filePath: string, sObject: string, name: string): Promise<{
28
+ sObject: string;
29
+ name: string;
30
+ action: string;
31
+ comment: string;
32
+ }>;
33
+ applyBypassToValidationRules(connection: Connection, sObjects: {
34
+ [key: string]: string;
35
+ }): Promise<void>;
36
+ handleTriggerFile(filePath: string, name: string): Promise<{
37
+ [key: string]: string | null;
38
+ }>;
39
+ applyBypassToTriggers(connection: Connection, sObjects: {
40
+ [key: string]: string;
41
+ }): Promise<void>;
19
42
  }