@provartesting/provardx-cli 0.0.5 → 0.0.6-beta

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.
Files changed (32) hide show
  1. package/lib/Utility/errorCode.d.ts +1 -1
  2. package/lib/Utility/fileSupport.d.ts +5 -0
  3. package/lib/Utility/fileSupport.js +40 -0
  4. package/lib/Utility/fileSupport.js.map +1 -1
  5. package/lib/Utility/sfProvarCommandResult.js +1 -1
  6. package/lib/commands/provar/automation/metadata/download.js +4 -2
  7. package/lib/commands/provar/automation/metadata/download.js.map +1 -1
  8. package/lib/commands/provar/automation/project/compile.d.ts +9 -0
  9. package/lib/commands/provar/automation/project/compile.js +69 -0
  10. package/lib/commands/provar/automation/project/compile.js.map +1 -0
  11. package/lib/commands/provar/automation/setup.d.ts +12 -0
  12. package/lib/commands/provar/automation/setup.js +65 -0
  13. package/lib/commands/provar/automation/setup.js.map +1 -0
  14. package/lib/constants/commandConstants.d.ts +3 -1
  15. package/lib/constants/commandConstants.js +2 -0
  16. package/lib/constants/commandConstants.js.map +1 -1
  17. package/lib/constants/errorMessages.d.ts +3 -1
  18. package/lib/constants/errorMessages.js +2 -0
  19. package/lib/constants/errorMessages.js.map +1 -1
  20. package/lib/constants/sfCommandConstants.d.ts +2 -1
  21. package/lib/constants/sfCommandConstants.js +1 -0
  22. package/lib/constants/sfCommandConstants.js.map +1 -1
  23. package/messages/provar.automation.project.compile.md +21 -0
  24. package/messages/provar.automation.setup.md +23 -0
  25. package/messages/provar.metadata.download.md +1 -1
  26. package/messages/sf.provar.config.generate.md +1 -1
  27. package/messages/sf.provar.config.get.md +1 -1
  28. package/messages/sf.provar.config.load.md +1 -1
  29. package/messages/sf.provar.config.set.md +1 -1
  30. package/messages/sf.provar.config.validate.md +1 -1
  31. package/oclif.manifest.json +114 -1
  32. package/package.json +10 -3
@@ -1 +1 @@
1
- export type ErrorCode = 'MISSING_FILE' | 'MALFORMED_FILE' | 'MISSING_PROPERTY' | 'MISSING_PROPERTIES' | 'INVALID_VALUES' | 'INVALID_VALUE' | 'MISSING_VALUE' | 'INVALID_FILE_EXTENSION' | 'GENERATE_OPERATION_DENIED' | 'INVALID_PATH' | 'INSUFFICIENT_PERMISSIONS' | 'INVALID_ARGUMENT' | 'INVALID_PROPERTY' | 'UNKNOWN_PROPERTY' | 'DOWNLOAD_ERROR';
1
+ export type ErrorCode = 'MISSING_FILE' | 'MALFORMED_FILE' | 'MISSING_PROPERTY' | 'MISSING_PROPERTIES' | 'INVALID_VALUES' | 'INVALID_VALUE' | 'MISSING_VALUE' | 'INVALID_FILE_EXTENSION' | 'GENERATE_OPERATION_DENIED' | 'INVALID_PATH' | 'INSUFFICIENT_PERMISSIONS' | 'INVALID_ARGUMENT' | 'INVALID_PROPERTY' | 'UNKNOWN_PROPERTY' | 'DOWNLOAD_ERROR' | 'COMPILATION_ERROR' | 'SETUP_ERROR';
@@ -1,7 +1,12 @@
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ import * as fs from 'node:fs';
1
3
  /**
2
4
  * Contains all the methods that deals with generic file related operations.
3
5
  *
4
6
  */
5
7
  export declare function generateFile(filePath: string): void;
6
8
  export declare function getExtension(filename: string): string;
9
+ export declare function unzipFile(srcDirectory: string, targetDirectory: string, onComplete: () => void): void;
10
+ export declare function unlinkFileIfExist(filePath: string): void;
7
11
  export declare function fileContainsString(fileContent: string, searchString: string): boolean;
12
+ export declare function unzipFileSynchronously(filestream: fs.WriteStream, filePath: string): Promise<void>;
@@ -4,7 +4,9 @@
4
4
  * Licensed under the BSD 3-Clause license.
5
5
  * For full license text, see LICENSE.md file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
6
  */
7
+ /* eslint-disable */
7
8
  import * as fs from 'node:fs';
9
+ import StreamZip from 'node-stream-zip';
8
10
  import { propertyFileContent } from '../constants/propertyFileContent.js';
9
11
  /**
10
12
  * Contains all the methods that deals with generic file related operations.
@@ -17,7 +19,45 @@ export function getExtension(filename) {
17
19
  const i = filename.lastIndexOf('.');
18
20
  return i < 0 ? '' : filename.substr(i);
19
21
  }
22
+ export function unzipFile(srcDirectory, targetDirectory, onComplete) {
23
+ const zip = new StreamZip({
24
+ file: srcDirectory,
25
+ storeEntries: true,
26
+ });
27
+ zip.on('ready', () => {
28
+ zip.extract(null, targetDirectory, () => {
29
+ zip.close();
30
+ onComplete();
31
+ });
32
+ });
33
+ }
34
+ export function unlinkFileIfExist(filePath) {
35
+ if (fs.existsSync(filePath)) {
36
+ fs.unlinkSync(filePath);
37
+ }
38
+ }
20
39
  export function fileContainsString(fileContent, searchString) {
21
40
  return fileContent.includes(searchString);
22
41
  }
42
+ export async function unzipFileSynchronously(filestream, filePath) {
43
+ const resolvers = {
44
+ done: null,
45
+ error: null,
46
+ };
47
+ const promise = new Promise((resolve, error) => {
48
+ resolvers.done = resolve;
49
+ resolvers.error = error;
50
+ });
51
+ filestream.on('finish', () => {
52
+ unzipFile(`${filePath}.zip`, `${filePath}`, () => {
53
+ resolvers.done();
54
+ });
55
+ });
56
+ filestream.on('error', (error) => {
57
+ unzipFile(`${filePath}.zip`, `${filePath}`, () => {
58
+ resolvers.error(error);
59
+ });
60
+ });
61
+ return promise;
62
+ }
23
63
  //# sourceMappingURL=fileSupport.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fileSupport.js","sourceRoot":"","sources":["../../src/Utility/fileSupport.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E;;;GAGG;AAEH,MAAM,UAAU,YAAY,CAAC,QAAgB;IAC3C,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,mBAAmB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,QAAgB;IAC3C,MAAM,CAAC,GAAG,QA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O,OAAO,CAAC;AACjB,CAAC"}
@@ -10,7 +10,7 @@ export function populateResult(flags, errorHandler, messages, log, value) {
10
10
  if (errorHandler.getErrors().length > 0) {
11
11
  const errorObjects = errorHandler.getErrors();
12
12
  if (!flags['json']) {
13
- throw messages.createError('error.MULTIPLE_ERRORS', errorHandler.errorsToStringArray());
13
+ throw messages.createError('error.MultipleFailure', errorHandler.errorsToStringArray());
14
14
  }
15
15
  result = {
16
16
  success: false,
@@ -9,6 +9,7 @@ import { populateResult } from '../../../../Utility/sfProvarCommandResult.js';
9
9
  import UserSupport from '../../../../Utility/userSupport.js';
10
10
  import { fileContainsString } from '../../../../Utility/fileSupport.js';
11
11
  import { removeSpaces, getStringAfterSubstring } from '../../../../Utility/stringSupport.js';
12
+ import { sfCommandConstants } from '../../../../constants/sfCommandConstants.js';
12
13
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
13
14
  const messages = Messages.loadMessages('@provartesting/provardx-cli', 'provar.metadata.download');
14
15
  export default class ProvarMetadataDownload extends SfCommand {
@@ -50,7 +51,8 @@ export default class ProvarMetadataDownload extends SfCommand {
50
51
  const provarDxJarPath = propertiesInstance.provarHome + '/provardx/provardx.jar';
51
52
  const downloadMetadatacommand = 'java -cp "' +
52
53
  provarDxJarPath +
53
- '" com.provar.provardx.DxCommandExecuter ' +
54
+ '"' +
55
+ sfCommandConstants.DX_COMMAND_EXECUTER +
54
56
  updateProperties +
55
57
  ' ' +
56
58
  userInfoString +
@@ -66,7 +68,7 @@ export default class ProvarMetadataDownload extends SfCommand {
66
68
  if (error.name === 'SyntaxError') {
67
69
  this.errorHandler.addErrorsToList('MALFORMED_FILE', errorMessages.MALFORMEDFILEERROR);
68
70
  }
69
- else if (error.name === 'MULTIPLE_ERRORSError') {
71
+ else if (error.name === 'MultipleFailureError') {
70
72
  return populateResult(flags, this.errorHandler, messages, this.log.bind(this));
71
73
  }
72
74
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"download.js","sourceRoot":"","sources":["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,CAAC,kBAAkB,CAAC,CAAC;YACxF,CAAC;iBAAM,IAAI,KAAK,CAAC,IAAI,KAAK,sBAAsB,EAAE,CAAC;gBACjD,OAAO,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YACjF,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,gBAAgB,EAAE,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC;YAC/E,CAAC;QACH,CAAC;QAED,OAAO,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACjF,CAAC;IAEO,qBAAqB,CAAC,UAAe;QAC3C,IAAI,CAAC,UAAU,CAAC,kBAAkB,IAAI,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC;YACjE,OAAO;QACT,CAAC;QAED,IAAI,UAAU,CAAC,cAAc,IAAI,UAAU,CAAC,kBAAkB,EAAE,CAAC;YAC/D,MAAM,WAAW,GAAG,UAAU,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACzD,MAAM,kBAAkB,GAAG,EAAE,CAAC;YAC9B,KAAK,MAAM,QAAQ,IAAI,UAAU,CAAC,kBAAkB,EAAE,CAAC;gBACrD,IAAI,WAAW,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;oBACpD,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBACpC,CAAC;YACH,CAAC;YACD,UAAU,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QACrD,CAAC;IACH,CAAC"}
1
+ {"version":3,"file":"download.js","sourceRoot":"","sources":["../../../../../src/commands/provar/automation/metadata/download.ts"],"names":[],"mappings":"AAA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
2
+ import { SfProvarCommandResult } from '../../../../Utility/sfProvarCommandResult.js';
3
+ export default class ProvarAutomationProjectCompile extends SfCommand<SfProvarCommandResult> {
4
+ static readonly summary: string;
5
+ static readonly description: string;
6
+ static readonly examples: string[];
7
+ private errorHandler;
8
+ run(): Promise<SfProvarCommandResult>;
9
+ }
@@ -0,0 +1,69 @@
1
+ import * as fileSystem from 'node:fs';
2
+ import { spawnSync } from 'node:child_process';
3
+ import { SfCommand } from '@salesforce/sf-plugins-core';
4
+ import { Messages } from '@salesforce/core';
5
+ import { populateResult } from '../../../../Utility/sfProvarCommandResult.js';
6
+ import ErrorHandler from '../../../../Utility/errorHandler.js';
7
+ import { ProvarConfig } from '../../../../Utility/provarConfig.js';
8
+ import { errorMessages } from '../../../../constants/errorMessages.js';
9
+ import UserSupport from '../../../../Utility/userSupport.js';
10
+ import { fileContainsString } from '../../../../Utility/fileSupport.js';
11
+ import { getStringAfterSubstring } from '../../../../Utility/stringSupport.js';
12
+ import { sfCommandConstants } from '../../../../constants/sfCommandConstants.js';
13
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
14
+ const messages = Messages.loadMessages('@provartesting/provardx-cli', 'provar.automation.project.compile');
15
+ export default class ProvarAutomationProjectCompile extends SfCommand {
16
+ static summary = messages.getMessage('summary');
17
+ static description = messages.getMessage('description');
18
+ static examples = messages.getMessages('examples');
19
+ errorHandler = new ErrorHandler();
20
+ async run() {
21
+ const { flags } = await this.parse(ProvarAutomationProjectCompile);
22
+ const config = await ProvarConfig.loadConfig(this.errorHandler);
23
+ const propertiesFilePath = config.get('PROVARDX_PROPERTIES_FILE_PATH')?.toString();
24
+ if (propertiesFilePath === undefined || !fileSystem.existsSync(propertiesFilePath)) {
25
+ this.errorHandler.addErrorsToList('MISSING_FILE', errorMessages.MISSINGFILEERROR);
26
+ return populateResult(flags, this.errorHandler, messages, this.log.bind(this));
27
+ }
28
+ try {
29
+ /* eslint-disable */
30
+ const propertiesdata = fileSystem.readFileSync(propertiesFilePath, { encoding: 'utf8' });
31
+ const propertiesInstance = JSON.parse(propertiesdata);
32
+ const rawProperties = JSON.stringify(propertiesInstance);
33
+ const userSupport = new UserSupport();
34
+ const updateProperties = userSupport.prepareRawProperties(rawProperties);
35
+ const provarDxJarPath = propertiesInstance.provarHome + '/provardx/provardx.jar';
36
+ const projectCompilecommand = 'java -cp "' +
37
+ provarDxJarPath +
38
+ '"' +
39
+ sfCommandConstants.DX_COMMAND_EXECUTER +
40
+ updateProperties +
41
+ ' ' +
42
+ 'NA' +
43
+ ' ' +
44
+ 'Compile';
45
+ const javaProcessOutput = spawnSync(projectCompilecommand, { shell: true });
46
+ const compileSuccessMessage = 'Compile task finished sucessfully.';
47
+ if (!fileContainsString(javaProcessOutput.stderr.toString(), compileSuccessMessage)) {
48
+ let errorMessage = getStringAfterSubstring(javaProcessOutput.stderr.toString(), 'ERROR');
49
+ if (!errorMessage) {
50
+ errorMessage = getStringAfterSubstring(javaProcessOutput.stderr.toString(), 'Compilation task failed.');
51
+ }
52
+ this.errorHandler.addErrorsToList('COMPILATION_ERROR', `${errorMessage}`);
53
+ }
54
+ }
55
+ catch (error) {
56
+ if (error.name === 'SyntaxError') {
57
+ this.errorHandler.addErrorsToList('MALFORMED_FILE', errorMessages.MALFORMEDFILEERROR);
58
+ }
59
+ else if (error.name === 'MultipleFailureError') {
60
+ return populateResult(flags, this.errorHandler, messages, this.log.bind(this));
61
+ }
62
+ else {
63
+ this.errorHandler.addErrorsToList('COMPILATION_ERROR', `${error.errorMessage}`);
64
+ }
65
+ }
66
+ return populateResult(flags, this.errorHandler, messages, this.log.bind(this));
67
+ }
68
+ }
69
+ //# sourceMappingURL=compile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compile.js","sourceRoot":"","sources":["../../../../../src/commands/provar/automation/project/compile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAA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IAAI,YAAY,GAAG,uBAAuB,CAAC,iBAAiB,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;gBACzF,IAAI,CAAC,YAAY,EAAE,CAAC;oBAClB,YAAY,GAAG,uBAAuB,CAAC,iBAAiB,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,0BAA0B,CAAC,CAAC;gBAC1G,CAAC;gBACD,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,mBAAmB,EAAE,GAAG,YAAY,EAAE,CAAC,CAAC;YAC5E,CAAC;QACH,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YACpB,IAAI,KAAK,CAAC,IAAI,KAAK,aAAa,EAAE,CAAC;gBACjC,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,gBAAgB,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;YACxF,CAAC;iBAAM,IAAI,KAAK,CAAC,IAAI,KAAK,sBAAsB,EAAE,CAAC;gBACjD,OAAO,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YACjF,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,mBAAmB,EAAE,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC;YAClF,CAAC;QACH,CAAC;QAED,OAAO,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACjF,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ import { SfProvarCommandResult } from '../../../Utility/sfProvarCommandResult.js';
3
+ export default class ProvarAutomationSetup extends SfCommand<SfProvarCommandResult> {
4
+ static readonly summary: string;
5
+ static readonly description: string;
6
+ static readonly examples: string[];
7
+ static readonly flags: {
8
+ version: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
9
+ };
10
+ private errorHandler;
11
+ run(): Promise<SfProvarCommandResult>;
12
+ }
@@ -0,0 +1,65 @@
1
+ import * as fileSystem from 'node:fs';
2
+ import axios from 'axios';
3
+ import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
4
+ import { Messages } from '@salesforce/core';
5
+ import { populateResult } from '../../../Utility/sfProvarCommandResult.js';
6
+ import ErrorHandler from '../../../Utility/errorHandler.js';
7
+ import { unzipFileSynchronously, unlinkFileIfExist } from '../../../Utility/fileSupport.js';
8
+ import { errorMessages } from '../../../constants/errorMessages.js';
9
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
10
+ const messages = Messages.loadMessages('@provartesting/provardx-cli', 'provar.automation.setup');
11
+ export default class ProvarAutomationSetup extends SfCommand {
12
+ static summary = messages.getMessage('summary');
13
+ static description = messages.getMessage('description');
14
+ static examples = messages.getMessages('examples');
15
+ static flags = {
16
+ version: Flags.string({
17
+ summary: messages.getMessage('flags.version.summary'),
18
+ char: 'v',
19
+ }),
20
+ };
21
+ errorHandler = new ErrorHandler();
22
+ async run() {
23
+ const { flags } = await this.parse(ProvarAutomationSetup);
24
+ const provarHomePath = './ProvarHome';
25
+ const fileStream = fileSystem.createWriteStream(`${provarHomePath}.zip`);
26
+ let url = 'https://download.provartesting.com/latest/Provar_ANT_latest.zip';
27
+ if (flags.version) {
28
+ url = `https://download.provartesting.com/${flags.version}/Provar_ANT_${flags.version}.zip`;
29
+ }
30
+ /* eslint-disable */
31
+ try {
32
+ unlinkFileIfExist(`${provarHomePath}.zip`);
33
+ unlinkFileIfExist(`${provarHomePath}`);
34
+ }
35
+ catch (error) {
36
+ if (error.code === 'EPERM' || error.code === 'EACCES') {
37
+ this.errorHandler.addErrorsToList('INSUFFICIENT_PERMISSIONS', 'The user does not have permissions to delete the existing folder.');
38
+ }
39
+ return populateResult(flags, this.errorHandler, messages, this.log.bind(this));
40
+ }
41
+ try {
42
+ const response = await axios.get(url, { responseType: 'stream' });
43
+ response.data.pipe(fileStream);
44
+ await unzipFileSynchronously(fileStream, provarHomePath);
45
+ unlinkFileIfExist(`${provarHomePath}.zip`);
46
+ }
47
+ catch (error) {
48
+ if (error.code === 'ENOENT') {
49
+ this.errorHandler.addErrorsToList('INVALID_PATH', errorMessages.INVALID_PATH);
50
+ }
51
+ else if (error.code === 'EPERM' || error.code === 'EACCES') {
52
+ this.errorHandler.addErrorsToList('INSUFFICIENT_PERMISSIONS', errorMessages.INSUFFICIENT_PERMISSIONS);
53
+ }
54
+ else if (error.code === 'ERR_BAD_REQUEST') {
55
+ this.errorHandler.addErrorsToList('SETUP_ERROR', `${errorMessages.SETUP_ERROR}Provided version is not a valid version.`);
56
+ unlinkFileIfExist(`${provarHomePath}.zip`);
57
+ }
58
+ else {
59
+ this.errorHandler.addErrorsToList('SETUP_ERROR', `${errorMessages.SETUP_ERROR} ${error.message}`);
60
+ }
61
+ }
62
+ return populateResult(flags, this.errorHandler, messages, this.log.bind(this));
63
+ }
64
+ }
65
+ //# sourceMappingURL=setup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../../src/commands/provar/automation/setup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAyB,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAClG,OAAO,YAAY,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAC5F,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC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AAC,CAAC;YAC7C,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,aAAa,EAAE,GAAG,aAAa,CAAC,WAAW,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;YACpG,CAAC;QACH,CAAC;QAED,OAAO,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACjF,CAAC"}
@@ -4,5 +4,7 @@ export declare enum commandConstants {
4
4
  SF_PROVAR_AUTOMATION_CONFIG_VALIDATE_COMMAND = "provar automation config validate",
5
5
  SF_PROVAR_AUTOMATION_CONFIG_SET_COMMAND = "provar automation config set",
6
6
  SF_PROVAR_AUTOMATION_CONFIG_GET_COMMAND = "provar automation config get",
7
- SF_PROVAR_AUTOMATION_METADATA_DOWNLOAD_COMMAND = "provar automation metadata download"
7
+ SF_PROVAR_AUTOMATION_METADATA_DOWNLOAD_COMMAND = "provar automation metadata download",
8
+ SF_PROVAR_AUTOMATION_PROJECT_COMPILE_COMMAND = "provar automation project compile",
9
+ SF_PROVAR_AUTOMATION_SETUP_COMMAND = "provar automation setup"
8
10
  }
@@ -6,5 +6,7 @@ export var commandConstants;
6
6
  commandConstants["SF_PROVAR_AUTOMATION_CONFIG_SET_COMMAND"] = "provar automation config set";
7
7
  commandConstants["SF_PROVAR_AUTOMATION_CONFIG_GET_COMMAND"] = "provar automation config get";
8
8
  commandConstants["SF_PROVAR_AUTOMATION_METADATA_DOWNLOAD_COMMAND"] = "provar automation metadata download";
9
+ commandConstants["SF_PROVAR_AUTOMATION_PROJECT_COMPILE_COMMAND"] = "provar automation project compile";
10
+ commandConstants["SF_PROVAR_AUTOMATION_SETUP_COMMAND"] = "provar automation setup";
9
11
  })(commandConstants || (commandConstants = {}));
10
12
  //# sourceMappingURL=commandConstants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"commandConstants.js","sourceRoot":"","sources":["../../src/constants/commandConstants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,sGAAkF,CAAA;IAClF,8FAA0E,CAAA;IAC1E,sGAAkF,CAAA;IAClF,4FAAwE,CAAA;IACxE,4FAAwE,CAAA;IACxE,0GAAsF,CAAA;AACxF,CAAC,EAPW,gBAAgB,KAAhB,gBAAgB,QAO3B"}
1
+ {"version":3,"file":"commandConstants.js","sourceRoot":"","sources":["../../src/constants/commandConstants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B,sGAAkF,CAAA;IAClF,8FAA0E,CAAA;IAC1E,sGAAkF,CAAA;IAClF,4FAAwE,CAAA;IACxE,4FAAwE,CAAA;IACxE,0GAAsF,CAAA;IACtF,sGAAkF,CAAA;IAClF,kFAA8D,CAAA;AAChE,CAAC,EATW,gBAAgB,KAAhB,gBAAgB,QAS3B"}
@@ -1,5 +1,6 @@
1
1
  export declare enum errorMessages {
2
2
  INVALID_PATH = "The provided path does not exist or is invalid.",
3
+ INSUFFICIENT_PERMISSIONS = "The user does not have permissions to create the file.",
3
4
  GENERATE_OPERATION_DENIED = "The operation was cancelled.",
4
5
  MISSINGFILEERROR = "The properties file has not been loaded or cannot be accessed.",
5
6
  MALFORMEDFILEERROR = "The properties file is not a valid JSON.",
@@ -9,5 +10,6 @@ export declare enum errorMessages {
9
10
  INVALID_VALUE = "The value cannot be parsed.",
10
11
  INVALID_PROPERTY = "The property cannot be parsed.",
11
12
  MISSING_PROPERTY_GET = "Please, specify a property to get from the properties file.",
12
- UNKNOWN_PROPERTY = "The property is not present in the file."
13
+ UNKNOWN_PROPERTY = "The property is not present in the file.",
14
+ SETUP_ERROR = "Provar Automation could not be set up because: "
13
15
  }
@@ -7,6 +7,7 @@
7
7
  export var errorMessages;
8
8
  (function (errorMessages) {
9
9
  errorMessages["INVALID_PATH"] = "The provided path does not exist or is invalid.";
10
+ errorMessages["INSUFFICIENT_PERMISSIONS"] = "The user does not have permissions to create the file.";
10
11
  errorMessages["GENERATE_OPERATION_DENIED"] = "The operation was cancelled.";
11
12
  errorMessages["MISSINGFILEERROR"] = "The properties file has not been loaded or cannot be accessed.";
12
13
  errorMessages["MALFORMEDFILEERROR"] = "The properties file is not a valid JSON.";
@@ -17,5 +18,6 @@ export var errorMessages;
17
18
  errorMessages["INVALID_PROPERTY"] = "The property cannot be parsed.";
18
19
  errorMessages["MISSING_PROPERTY_GET"] = "Please, specify a property to get from the properties file.";
19
20
  errorMessages["UNKNOWN_PROPERTY"] = "The property is not present in the file.";
21
+ errorMessages["SETUP_ERROR"] = "Provar Automation could not be set up because: ";
20
22
  })(errorMessages || (errorMessages = {}));
21
23
  //# sourceMappingURL=errorMessages.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"errorMessages.js","sourceRoot":"","sources":["../../src/constants/errorMessages.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,aAYX;AAZD,WAAY,aAAa;IACvB,iFAAgE,CAAA;IAChE,2EAA0D,CAAA;IAC1D,oGAAmF,CAAA;IACnF,gFAA+D,CAAA;IAC/D,wDAAuC,CAAA;IACvC,8DAA6C,CAAA;IAC7C,0EAAyD,CAAA;IACzD,8DAA6C,CAAA;IAC7C,oEAAmD,CAAA;IACnD,qGAAoF,CAAA;IACpF,8EAA6D,CAAA;AAC/D,CAAC,EAZW,aAAa,KAAb,aAAa,QAYxB"}
1
+ {"version":3,"file":"errorMessages.js","sourceRoot":"","sources":["../../src/constants/errorMessages.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,aAcX;AAdD,WAAY,aAAa;IACvB,iFAAgE,CAAA;IAChE,oGAAmF,CAAA;IACnF,2EAA0D,CAAA;IAC1D,oGAAmF,CAAA;IACnF,gFAA+D,CAAA;IAC/D,wDAAuC,CAAA;IACvC,8DAA6C,CAAA;IAC7C,0EAAyD,CAAA;IACzD,8DAA6C,CAAA;IAC7C,oEAAmD,CAAA;IACnD,qGAAoF,CAAA;IACpF,8EAA6D,CAAA;IAC7D,gFAA+D,CAAA;AACjE,CAAC,EAdW,aAAa,KAAb,aAAa,QAcxB"}
@@ -1,4 +1,5 @@
1
1
  export declare enum sfCommandConstants {
2
2
  DISPLAY_USER_INFO = "sf org display user --json --target-org ",
3
- GENERATE_PASSWORD = "sf org generate password --target-org "
3
+ GENERATE_PASSWORD = "sf org generate password --target-org ",
4
+ DX_COMMAND_EXECUTER = " com.provar.provardx.DxCommandExecuter "
4
5
  }
@@ -2,5 +2,6 @@ export var sfCommandConstants;
2
2
  (function (sfCommandConstants) {
3
3
  sfCommandConstants["DISPLAY_USER_INFO"] = "sf org display user --json --target-org ";
4
4
  sfCommandConstants["GENERATE_PASSWORD"] = "sf org generate password --target-org ";
5
+ sfCommandConstants["DX_COMMAND_EXECUTER"] = " com.provar.provardx.DxCommandExecuter ";
5
6
  })(sfCommandConstants || (sfCommandConstants = {}));
6
7
  //# sourceMappingURL=sfCommandConstants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sfCommandConstants.js","sourceRoot":"","sources":["../../src/constants/sfCommandConstants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,oFAA8D,CAAA;IAC9D,kFAA4D,CAAA;AAC9D,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B"}
1
+ {"version":3,"file":"sfCommandConstants.js","sourceRoot":"","sources":["../../src/constants/sfCommandConstants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,oFAA8D,CAAA;IAC9D,kFAA4D,CAAA;IAC5D,qFAA+D,CAAA;AACjE,CAAC,EAJW,kBAAkB,KAAlB,kBAAkB,QAI7B"}
@@ -0,0 +1,21 @@
1
+ # summary
2
+
3
+ Compile PageObject and PageControl Java source files into object code.
4
+
5
+ # description
6
+
7
+ Compile PageObject and PageControl Java source files into object code.
8
+
9
+ # examples
10
+
11
+ Compile the project using the configuration set in the properties file.
12
+
13
+ - <%= config.bin %> <%= command.id %>
14
+
15
+ # success_message
16
+
17
+ The project was compiled successfully.
18
+
19
+ # error.MultipleFailure
20
+
21
+ %s
@@ -0,0 +1,23 @@
1
+ # summary
2
+
3
+ Download and Install Provar Automation.
4
+
5
+ # description
6
+
7
+ Download and Install Provar Automation.
8
+
9
+ # examples
10
+
11
+ - <%= config.bin %> <%= command.id %>
12
+
13
+ # flags.version.summary
14
+
15
+ Provar Automation build version number.
16
+
17
+ # error.MultipleFailure
18
+
19
+ %s
20
+
21
+ # success_message
22
+
23
+ Provar Automation was set up successfully. Please, remember to set the property “provarHome” to the relative path “ProvarHome”.
@@ -14,7 +14,7 @@ Download any required metadata for a specified Provar Salesforce connection.
14
14
 
15
15
  Comma-separated list of names of Provar Salesforce connections to use, as defined in the project.
16
16
 
17
- # error.MULTIPLE_ERRORS
17
+ # error.MultipleFailure
18
18
 
19
19
  %s
20
20
 
@@ -28,6 +28,6 @@ FILE_ALREADY_EXISTS - A file with the same name already exists in that location.
28
28
 
29
29
  The properties file was generated successfully.
30
30
 
31
- # error.MULTIPLE_ERRORS
31
+ # error.MultipleFailure
32
32
 
33
33
  %s
@@ -12,6 +12,6 @@ Retrieves a value from the loaded properties file.
12
12
 
13
13
  <%= config.bin %> <%= command.id %> 'key'
14
14
 
15
- # error.MULTIPLE_ERRORS
15
+ # error.MultipleFailure
16
16
 
17
17
  %s
@@ -20,7 +20,7 @@ Path of the properties file to be loaded.
20
20
 
21
21
  [INVALID_PATH] The provided path does not exist or is invalid.
22
22
 
23
- # error.MULTIPLE_ERRORS
23
+ # error.MultipleFailure
24
24
 
25
25
  %s
26
26
 
@@ -12,6 +12,6 @@ Sets a property in the loaded properties file.
12
12
 
13
13
  <%= config.bin %> <%= command.id %> 'key'='value'
14
14
 
15
- # error.MULTIPLE_ERRORS
15
+ # error.MultipleFailure
16
16
 
17
17
  %s
@@ -16,6 +16,6 @@ Checks if the loaded properties file has all the required properties set.
16
16
 
17
17
  The properties file was validated successfully.
18
18
 
19
- # error.MULTIPLE_ERRORS
19
+ # error.MultipleFailure
20
20
 
21
21
  %s
@@ -1,5 +1,56 @@
1
1
  {
2
2
  "commands": {
3
+ "provar:automation:setup": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "Download and Install Provar Automation.",
7
+ "examples": [
8
+ "<%= config.bin %> <%= command.id %>"
9
+ ],
10
+ "flags": {
11
+ "json": {
12
+ "description": "Format output as json.",
13
+ "helpGroup": "GLOBAL",
14
+ "name": "json",
15
+ "allowNo": false,
16
+ "type": "boolean"
17
+ },
18
+ "version": {
19
+ "char": "v",
20
+ "name": "version",
21
+ "summary": "Provar Automation build version number.",
22
+ "hasDynamicHelp": false,
23
+ "multiple": false,
24
+ "type": "option"
25
+ }
26
+ },
27
+ "hasDynamicHelp": false,
28
+ "hiddenAliases": [],
29
+ "id": "provar:automation:setup",
30
+ "pluginAlias": "@provartesting/provardx-cli",
31
+ "pluginName": "@provartesting/provardx-cli",
32
+ "pluginType": "core",
33
+ "strict": true,
34
+ "summary": "Download and Install Provar Automation.",
35
+ "enableJsonFlag": true,
36
+ "isESM": true,
37
+ "relativePath": [
38
+ "lib",
39
+ "commands",
40
+ "provar",
41
+ "automation",
42
+ "setup.js"
43
+ ],
44
+ "aliasPermutations": [],
45
+ "permutations": [
46
+ "provar:automation:setup",
47
+ "automation:provar:setup",
48
+ "automation:setup:provar",
49
+ "provar:setup:automation",
50
+ "setup:provar:automation",
51
+ "setup:automation:provar"
52
+ ]
53
+ },
3
54
  "provar:automation:config:generate": {
4
55
  "aliases": [],
5
56
  "args": {},
@@ -405,7 +456,69 @@
405
456
  "download:metadata:provar:automation",
406
457
  "download:metadata:automation:provar"
407
458
  ]
459
+ },
460
+ "provar:automation:project:compile": {
461
+ "aliases": [],
462
+ "args": {},
463
+ "description": "Compile PageObject and PageControl Java source files into object code.",
464
+ "examples": [
465
+ "Compile the project using the configuration set in the properties file.\n\n- <%= config.bin %> <%= command.id %>"
466
+ ],
467
+ "flags": {
468
+ "json": {
469
+ "description": "Format output as json.",
470
+ "helpGroup": "GLOBAL",
471
+ "name": "json",
472
+ "allowNo": false,
473
+ "type": "boolean"
474
+ }
475
+ },
476
+ "hasDynamicHelp": false,
477
+ "hiddenAliases": [],
478
+ "id": "provar:automation:project:compile",
479
+ "pluginAlias": "@provartesting/provardx-cli",
480
+ "pluginName": "@provartesting/provardx-cli",
481
+ "pluginType": "core",
482
+ "strict": true,
483
+ "summary": "Compile PageObject and PageControl Java source files into object code.",
484
+ "enableJsonFlag": true,
485
+ "isESM": true,
486
+ "relativePath": [
487
+ "lib",
488
+ "commands",
489
+ "provar",
490
+ "automation",
491
+ "project",
492
+ "compile.js"
493
+ ],
494
+ "aliasPermutations": [],
495
+ "permutations": [
496
+ "provar:automation:project:compile",
497
+ "automation:provar:project:compile",
498
+ "automation:project:provar:compile",
499
+ "automation:project:compile:provar",
500
+ "provar:project:automation:compile",
501
+ "project:provar:automation:compile",
502
+ "project:automation:provar:compile",
503
+ "project:automation:compile:provar",
504
+ "provar:project:compile:automation",
505
+ "project:provar:compile:automation",
506
+ "project:compile:provar:automation",
507
+ "project:compile:automation:provar",
508
+ "provar:automation:compile:project",
509
+ "automation:provar:compile:project",
510
+ "automation:compile:provar:project",
511
+ "automation:compile:project:provar",
512
+ "provar:compile:automation:project",
513
+ "compile:provar:automation:project",
514
+ "compile:automation:provar:project",
515
+ "compile:automation:project:provar",
516
+ "provar:compile:project:automation",
517
+ "compile:provar:project:automation",
518
+ "compile:project:provar:automation",
519
+ "compile:project:automation:provar"
520
+ ]
408
521
  }
409
522
  },
410
- "version": "0.0.5"
523
+ "version": "0.0.6-beta"
411
524
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@provartesting/provardx-cli",
3
3
  "description": "A plugin for the Salesforce CLI to orchestrate testing activities and report quality metrics to Provar Manager",
4
- "version": "0.0.5",
4
+ "version": "0.0.6-beta",
5
5
  "license": "BSD-3-Clause",
6
6
  "dependencies": {
7
7
  "@oclif/core": "^3.18.1",
@@ -9,13 +9,17 @@
9
9
  "@salesforce/kit": "^3.0.15",
10
10
  "@salesforce/sf-plugins-core": "^7.1.4",
11
11
  "@salesforce/ts-types": "^2.0.9",
12
+ "axios": "^1.6.7",
12
13
  "cli-ux": "^6.0.9",
13
- "jsonschema": "^1.4.1"
14
+ "jsonschema": "^1.4.1",
15
+ "node-stream-zip": "^1.15.0",
16
+ "sync-request": "^6.1.0"
14
17
  },
15
18
  "devDependencies": {
16
19
  "@oclif/plugin-command-snapshot": "^5.0.2",
17
20
  "@salesforce/cli-plugins-testkit": "^5.1.7",
18
21
  "@salesforce/dev-scripts": "^8.3.0",
22
+ "@types/unzipper": "^0.10.9",
19
23
  "eslint-plugin-sf-plugin": "^1.17.2",
20
24
  "mochawesome": "^7.1.3",
21
25
  "oclif": "^4.3.4",
@@ -63,6 +67,9 @@
63
67
  "metadata": {
64
68
  "description": "commands to download metadata for required connections."
65
69
  }
70
+ },
71
+ "project": {
72
+ "description": "Compile the project."
66
73
  }
67
74
  }
68
75
  }
@@ -83,7 +90,7 @@
83
90
  "postpack": "shx rm -f oclif.manifest.json",
84
91
  "prepack": "sf-prepack",
85
92
  "test": "wireit",
86
- "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --reporter mochawesome",
93
+ "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --reporter mochawesome",
87
94
  "test:only": "wireit",
88
95
  "version": "oclif readme"
89
96
  },