@salesforce/plugin-deploy-retrieve 1.8.6 → 1.8.7

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 (157) hide show
  1. package/lib/commands/deploy.d.ts +5 -0
  2. package/lib/commands/deploy.js +5 -0
  3. package/lib/commands/deploy.js.map +1 -1
  4. package/lib/commands/project/convert/mdapi.d.ts +32 -0
  5. package/lib/commands/project/convert/mdapi.js +170 -0
  6. package/lib/commands/project/convert/mdapi.js.map +1 -0
  7. package/lib/commands/project/convert/source.d.ts +81 -0
  8. package/lib/commands/project/convert/source.js +141 -0
  9. package/lib/commands/project/convert/source.js.map +1 -0
  10. package/lib/commands/project/delete/source.d.ts +69 -0
  11. package/lib/commands/project/delete/source.js +424 -0
  12. package/lib/commands/project/delete/source.js.map +1 -0
  13. package/lib/commands/project/delete/tracking.d.ts +19 -0
  14. package/lib/commands/project/delete/tracking.js +49 -0
  15. package/lib/commands/project/delete/tracking.js.map +1 -0
  16. package/lib/commands/{deploy/metadata → project/deploy}/cancel.d.ts +2 -1
  17. package/lib/commands/{deploy/metadata → project/deploy}/cancel.js +20 -7
  18. package/lib/commands/project/deploy/cancel.js.map +1 -0
  19. package/lib/commands/{deploy/metadata → project/deploy}/preview.d.ts +2 -1
  20. package/lib/commands/{deploy/metadata → project/deploy}/preview.js +3 -2
  21. package/lib/commands/project/deploy/preview.js.map +1 -0
  22. package/lib/commands/{deploy/metadata → project/deploy}/quick.d.ts +3 -1
  23. package/lib/commands/{deploy/metadata → project/deploy}/quick.js +14 -7
  24. package/lib/commands/project/deploy/quick.js.map +1 -0
  25. package/lib/commands/{deploy/metadata → project/deploy}/report.d.ts +5 -1
  26. package/lib/commands/{deploy/metadata → project/deploy}/report.js +25 -7
  27. package/lib/commands/project/deploy/report.js.map +1 -0
  28. package/lib/commands/{deploy/metadata → project/deploy}/resume.d.ts +5 -1
  29. package/lib/commands/{deploy/metadata → project/deploy}/resume.js +21 -6
  30. package/lib/commands/project/deploy/resume.js.map +1 -0
  31. package/lib/commands/{deploy/metadata.d.ts → project/deploy/start.d.ts} +10 -3
  32. package/lib/commands/{deploy/metadata.js → project/deploy/start.js} +56 -17
  33. package/lib/commands/project/deploy/start.js.map +1 -0
  34. package/lib/commands/{deploy/metadata → project/deploy}/validate.d.ts +2 -1
  35. package/lib/commands/{deploy/metadata → project/deploy}/validate.js +10 -9
  36. package/lib/commands/project/deploy/validate.js.map +1 -0
  37. package/lib/commands/project/generate/manifest.d.ts +26 -0
  38. package/lib/commands/project/generate/manifest.js +132 -0
  39. package/lib/commands/project/generate/manifest.js.map +1 -0
  40. package/lib/commands/project/list/ignored.d.ts +24 -0
  41. package/lib/commands/project/list/ignored.js +85 -0
  42. package/lib/commands/project/list/ignored.js.map +1 -0
  43. package/lib/commands/project/reset/tracking.d.ts +21 -0
  44. package/lib/commands/project/reset/tracking.js +64 -0
  45. package/lib/commands/project/reset/tracking.js.map +1 -0
  46. package/lib/commands/{retrieve/metadata → project/retrieve}/preview.d.ts +2 -1
  47. package/lib/commands/{retrieve/metadata → project/retrieve}/preview.js +2 -1
  48. package/lib/commands/project/retrieve/preview.js.map +1 -0
  49. package/lib/commands/{retrieve/metadata.d.ts → project/retrieve/start.d.ts} +3 -2
  50. package/lib/commands/{retrieve/metadata.js → project/retrieve/start.js} +12 -10
  51. package/lib/commands/project/retrieve/start.js.map +1 -0
  52. package/lib/formatters/asyncDeployCancelResultFormatter.d.ts +10 -0
  53. package/lib/formatters/asyncDeployCancelResultFormatter.js +29 -0
  54. package/lib/formatters/asyncDeployCancelResultFormatter.js.map +1 -0
  55. package/lib/formatters/asyncDeployResultFormatter.d.ts +10 -0
  56. package/lib/formatters/asyncDeployResultFormatter.js +31 -0
  57. package/lib/formatters/asyncDeployResultFormatter.js.map +1 -0
  58. package/lib/formatters/deleteResultFormatter.d.ts +13 -0
  59. package/lib/formatters/deleteResultFormatter.js +72 -0
  60. package/lib/formatters/deleteResultFormatter.js.map +1 -0
  61. package/lib/formatters/deployCancelResultFormatter.d.ts +8 -0
  62. package/lib/formatters/deployCancelResultFormatter.js +29 -0
  63. package/lib/formatters/deployCancelResultFormatter.js.map +1 -0
  64. package/lib/formatters/deployReportResultFormatter.d.ts +4 -0
  65. package/lib/formatters/deployReportResultFormatter.js +52 -0
  66. package/lib/formatters/deployReportResultFormatter.js.map +1 -0
  67. package/lib/formatters/deployResultFormatter.d.ts +46 -0
  68. package/lib/formatters/deployResultFormatter.js +296 -0
  69. package/lib/formatters/deployResultFormatter.js.map +1 -0
  70. package/lib/formatters/metadataConvertResultFormatter.d.ts +9 -0
  71. package/lib/formatters/metadataConvertResultFormatter.js +59 -0
  72. package/lib/formatters/metadataConvertResultFormatter.js.map +1 -0
  73. package/lib/formatters/metadataRetrieveResultFormatter.d.ts +17 -0
  74. package/lib/formatters/metadataRetrieveResultFormatter.js +38 -0
  75. package/lib/formatters/metadataRetrieveResultFormatter.js.map +1 -0
  76. package/lib/formatters/retrieveResultFormatter.d.ts +13 -0
  77. package/lib/formatters/retrieveResultFormatter.js +66 -0
  78. package/lib/formatters/retrieveResultFormatter.js.map +1 -0
  79. package/lib/formatters/sourceConvertResultFormatter.d.ts +10 -0
  80. package/lib/formatters/sourceConvertResultFormatter.js +37 -0
  81. package/lib/formatters/sourceConvertResultFormatter.js.map +1 -0
  82. package/lib/utils/conflicts.js +1 -1
  83. package/lib/utils/conflicts.js.map +1 -1
  84. package/lib/utils/coverage.d.ts +9 -0
  85. package/lib/utils/coverage.js +109 -0
  86. package/lib/utils/coverage.js.map +1 -0
  87. package/lib/utils/deploy.d.ts +10 -6
  88. package/lib/utils/deploy.js +23 -26
  89. package/lib/utils/deploy.js.map +1 -1
  90. package/lib/utils/deployCache.d.ts +8 -2
  91. package/lib/utils/deployCache.js +11 -2
  92. package/lib/utils/deployCache.js.map +1 -1
  93. package/lib/utils/errorCodes.d.ts +3 -1
  94. package/lib/utils/errorCodes.js +4 -4
  95. package/lib/utils/errorCodes.js.map +1 -1
  96. package/lib/utils/flags.js +3 -8
  97. package/lib/utils/flags.js.map +1 -1
  98. package/lib/utils/manifestCache.d.ts +5 -0
  99. package/lib/utils/manifestCache.js +44 -0
  100. package/lib/utils/manifestCache.js.map +1 -0
  101. package/lib/utils/metadataDeployer.js +3 -2
  102. package/lib/utils/metadataDeployer.js.map +1 -1
  103. package/lib/utils/output.d.ts +6 -83
  104. package/lib/utils/output.js +3 -385
  105. package/lib/utils/output.js.map +1 -1
  106. package/lib/utils/previewOutput.d.ts +1 -0
  107. package/lib/utils/previewOutput.js +18 -21
  108. package/lib/utils/previewOutput.js.map +1 -1
  109. package/lib/utils/progressBar.d.ts +1 -0
  110. package/lib/utils/progressBar.js +21 -17
  111. package/lib/utils/progressBar.js.map +1 -1
  112. package/lib/utils/types.d.ts +39 -0
  113. package/lib/utils/types.js +3 -1
  114. package/lib/utils/types.js.map +1 -1
  115. package/messages/convert.mdapi.md +68 -0
  116. package/messages/convert.source.md +69 -0
  117. package/messages/delete.source.md +136 -0
  118. package/messages/delete.tracking.md +39 -0
  119. package/messages/deploy.async.md +3 -3
  120. package/messages/deploy.md +5 -1
  121. package/messages/deploy.metadata.cancel.md +10 -6
  122. package/messages/deploy.metadata.md +37 -5
  123. package/messages/deploy.metadata.preview.md +11 -7
  124. package/messages/deploy.metadata.quick.md +11 -3
  125. package/messages/deploy.metadata.report.md +16 -4
  126. package/messages/deploy.metadata.resume.md +17 -5
  127. package/messages/deploy.metadata.validate.md +9 -5
  128. package/messages/list.ignored.md +29 -0
  129. package/messages/manifest.generate.md +74 -0
  130. package/messages/retrieve.metadata.md +4 -4
  131. package/messages/retrieve.metadata.preview.md +7 -7
  132. package/oclif.manifest.json +1476 -463
  133. package/package.json +55 -39
  134. package/schemas/project-convert-mdapi.json +29 -0
  135. package/schemas/project-delete-source.json +609 -0
  136. package/schemas/project-delete-tracking.json +19 -0
  137. package/schemas/project-generate-manifest.json +19 -0
  138. package/schemas/project-list-ignored.json +19 -0
  139. package/schemas/project-reset-tracking.json +19 -0
  140. package/lib/commands/deploy/metadata/cancel.js.map +0 -1
  141. package/lib/commands/deploy/metadata/preview.js.map +0 -1
  142. package/lib/commands/deploy/metadata/quick.js.map +0 -1
  143. package/lib/commands/deploy/metadata/report.js.map +0 -1
  144. package/lib/commands/deploy/metadata/resume.js.map +0 -1
  145. package/lib/commands/deploy/metadata/validate.js.map +0 -1
  146. package/lib/commands/deploy/metadata.js.map +0 -1
  147. package/lib/commands/retrieve/metadata/preview.js.map +0 -1
  148. package/lib/commands/retrieve/metadata.js.map +0 -1
  149. /package/schemas/{deploy-metadata-cancel.json → project-deploy-cancel.json} +0 -0
  150. /package/schemas/{deploy-metadata-preview.json → project-deploy-preview.json} +0 -0
  151. /package/schemas/{deploy-metadata-quick.json → project-deploy-quick.json} +0 -0
  152. /package/schemas/{deploy-metadata-report.json → project-deploy-report.json} +0 -0
  153. /package/schemas/{deploy-metadata-resume.json → project-deploy-resume.json} +0 -0
  154. /package/schemas/{deploy-metadata-validate.json → project-deploy-start.json} +0 -0
  155. /package/schemas/{deploy-metadata.json → project-deploy-validate.json} +0 -0
  156. /package/schemas/{retrieve-metadata-preview.json → project-retrieve-preview.json} +0 -0
  157. /package/schemas/{retrieve-metadata.json → project-retrieve-start.json} +0 -0
@@ -0,0 +1,26 @@
1
+ import { Org } from '@salesforce/core';
2
+ import { SfCommand } from '@salesforce/sf-plugins-core';
3
+ export type ManifestGenerateCommandResult = {
4
+ name: string;
5
+ path: string;
6
+ };
7
+ export declare class ManifestGenerate extends SfCommand<ManifestGenerateCommandResult> {
8
+ static readonly summary: string;
9
+ static readonly description: string;
10
+ static readonly examples: string[];
11
+ static readonly aliases: string[];
12
+ static readonly deprecateAliases = true;
13
+ static readonly requiresProject = true;
14
+ static readonly flags: {
15
+ 'api-version': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
16
+ loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
17
+ metadata: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
18
+ 'source-dir': import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
19
+ name: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
20
+ type: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
21
+ 'include-packages': import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
22
+ 'from-org': import("@oclif/core/lib/interfaces").OptionFlag<Org | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
23
+ 'output-dir': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
24
+ };
25
+ run(): Promise<ManifestGenerateCommandResult>;
26
+ }
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ManifestGenerate = void 0;
5
+ /*
6
+ * Copyright (c) 2020, salesforce.com, inc.
7
+ * All rights reserved.
8
+ * Licensed under the BSD 3-Clause license.
9
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
10
+ */
11
+ const path_1 = require("path");
12
+ const fs = require("fs");
13
+ const core_1 = require("@salesforce/core");
14
+ const source_deploy_retrieve_1 = require("@salesforce/source-deploy-retrieve");
15
+ const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
16
+ const project_1 = require("../../../utils/project");
17
+ core_1.Messages.importMessagesDirectory(__dirname);
18
+ const messages = core_1.Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'manifest.generate');
19
+ const manifestTypes = {
20
+ pre: 'destructiveChangesPre.xml',
21
+ post: 'destructiveChangesPost.xml',
22
+ destroy: 'destructiveChanges.xml',
23
+ package: 'package.xml',
24
+ };
25
+ const packageTypes = {
26
+ managed: ['beta', 'deleted', 'deprecated', 'installed', 'released'],
27
+ unlocked: ['deprecatedEditable', 'installedEditable'],
28
+ };
29
+ const xorFlags = ['metadata', 'source-dir', 'from-org'];
30
+ class ManifestGenerate extends sf_plugins_core_1.SfCommand {
31
+ async run() {
32
+ const { flags } = await this.parse(ManifestGenerate);
33
+ // convert the manifesttype into one of the "official" manifest names
34
+ // if no manifesttype flag passed, use the manifestname?flag
35
+ // if no manifestname flag, default to 'package.xml'
36
+ const manifestTypeFromFlag = flags.type;
37
+ const manifestName = ensureFileEnding(typeof manifestTypeFromFlag === 'string' ? manifestTypes[manifestTypeFromFlag] : flags.name ?? 'package.xml', '.xml');
38
+ const componentSet = await source_deploy_retrieve_1.ComponentSetBuilder.build({
39
+ apiversion: flags['api-version'] ?? (await (0, project_1.getSourceApiVersion)()),
40
+ sourcepath: flags['source-dir'],
41
+ metadata: flags.metadata
42
+ ? {
43
+ metadataEntries: flags.metadata,
44
+ directoryPaths: await (0, project_1.getPackageDirs)(),
45
+ }
46
+ : undefined,
47
+ org: flags['from-org']
48
+ ? {
49
+ username: flags['from-org'].getUsername(),
50
+ exclude: exclude(flags['include-packages']),
51
+ }
52
+ : undefined,
53
+ });
54
+ const outputDir = flags['output-dir'];
55
+ if (outputDir) {
56
+ await fs.promises.mkdir(outputDir, { recursive: true });
57
+ }
58
+ const outputPath = outputDir ? (0, path_1.join)(outputDir, manifestName) : manifestName;
59
+ await fs.promises.writeFile(outputPath, await componentSet.getPackageXml());
60
+ this.log(outputDir
61
+ ? messages.getMessage('successOutputDir', [manifestName, outputDir])
62
+ : messages.getMessage('success', [manifestName]));
63
+ return { path: outputPath, name: manifestName };
64
+ }
65
+ }
66
+ exports.ManifestGenerate = ManifestGenerate;
67
+ _a = ManifestGenerate;
68
+ ManifestGenerate.summary = messages.getMessage('summary');
69
+ ManifestGenerate.description = messages.getMessage('description');
70
+ ManifestGenerate.examples = messages.getMessages('examples');
71
+ ManifestGenerate.aliases = ['force:source:manifest:create'];
72
+ ManifestGenerate.deprecateAliases = true;
73
+ ManifestGenerate.requiresProject = true;
74
+ ManifestGenerate.flags = {
75
+ 'api-version': sf_plugins_core_1.orgApiVersionFlagWithDeprecations,
76
+ loglevel: sf_plugins_core_1.loglevel,
77
+ metadata: (0, sf_plugins_core_1.arrayWithDeprecation)({
78
+ char: 'm',
79
+ summary: messages.getMessage('flags.metadata.summary'),
80
+ exactlyOne: xorFlags,
81
+ }),
82
+ 'source-dir': (0, sf_plugins_core_1.arrayWithDeprecation)({
83
+ char: 'p',
84
+ aliases: ['sourcepath'],
85
+ deprecateAliases: true,
86
+ summary: messages.getMessage('flags.source-dir.summary'),
87
+ exactlyOne: xorFlags,
88
+ }),
89
+ name: sf_plugins_core_1.Flags.string({
90
+ char: 'n',
91
+ aliases: ['manifestname'],
92
+ deprecateAliases: true,
93
+ summary: messages.getMessage('flags.name.summary'),
94
+ exclusive: ['type'],
95
+ }),
96
+ type: sf_plugins_core_1.Flags.string({
97
+ aliases: ['manifesttype'],
98
+ deprecateAliases: true,
99
+ summary: messages.getMessage('flags.type.summary'),
100
+ options: Object.keys(manifestTypes),
101
+ char: 't',
102
+ exclusive: ['name'],
103
+ }),
104
+ 'include-packages': (0, sf_plugins_core_1.arrayWithDeprecation)({
105
+ aliases: ['includepackages'],
106
+ deprecateAliases: true,
107
+ summary: messages.getMessage('flags.include-packages.summary'),
108
+ options: Object.keys(packageTypes),
109
+ char: 'c',
110
+ dependsOn: ['from-org'],
111
+ }),
112
+ 'from-org': sf_plugins_core_1.Flags.custom({
113
+ summary: messages.getMessage('flags.from-org.summary'),
114
+ exactlyOne: xorFlags,
115
+ aliases: ['fromorg'],
116
+ deprecateAliases: true,
117
+ parse: async (input) => (input ? core_1.Org.create({ aliasOrUsername: input }) : undefined),
118
+ })(),
119
+ 'output-dir': sf_plugins_core_1.Flags.string({
120
+ char: 'd',
121
+ aliases: ['outputdir', 'o'],
122
+ deprecateAliases: true,
123
+ summary: messages.getMessage('flags.output-dir.summary'),
124
+ }),
125
+ };
126
+ const ensureFileEnding = (fileName, fileEnding) => fileName.endsWith(fileEnding) ? fileName : `${fileName}${fileEnding}`;
127
+ const exclude = (includedPackages) => includedPackages
128
+ ? Object.entries(packageTypes)
129
+ .filter(([type]) => !includedPackages.includes(type))
130
+ .flatMap(([, types]) => types)
131
+ : Object.values(packageTypes).flat();
132
+ //# sourceMappingURL=manifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../../../src/commands/project/generate/manifest.ts"],"names":[],"mappings":";;;;AAAA;;;;;GAKG;AACH,+BAA4B;AAC5B,yBAAyB;AACzB,2CAAiD;AACjD,+EAAyE;AACzE,iEAMqC;AACrC,oDAA6E;AAE7E,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,mBAAmB,CAAC,CAAC;AAElG,MAAM,aAAa,GAAG;IACpB,GAAG,EAAE,2BAA2B;IAChC,IAAI,EAAE,4BAA4B;IAClC,OAAO,EAAE,wBAAwB;IACjC,OAAO,EAAE,aAAa;CACd,CAAC;AAEX,MAAM,YAAY,GAA6B;IAC7C,OAAO,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,CAAC;IACnE,QAAQ,EAAE,CAAC,oBAAoB,EAAE,mBAAmB,CAAC;CACtD,CAAC;AAOF,MAAM,QAAQ,GAAG,CAAC,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;AAExD,MAAa,gBAAiB,SAAQ,2BAAwC;IA4DrE,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;QACrD,q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,EAAE,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC;KACzD,CAAC;CACH,CAAC;AAgDJ,MAAM,gBAAgB,GAAG,CAAC,QAAgB,EAAE,UAAkB,EAAU,EAAE,CACxE,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,GAAG,UAAU,EAAE,CAAC;AAExE,MAAM,OAAO,GAAG,CAAC,gBAAsC,EAAY,EAAE,CACnE,gBAAgB;IACd,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC;SACzB,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACpD,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC;IAClC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,IAAI,EAAE,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ export type SourceIgnoredResults = {
3
+ ignoredFiles: string[];
4
+ };
5
+ export declare class Ignored extends SfCommand<SourceIgnoredResults> {
6
+ static readonly summary: string;
7
+ static readonly description: string;
8
+ static readonly examples: string[];
9
+ static readonly requiresProject = true;
10
+ static readonly aliases: string[];
11
+ static readonly deprecateAliases = true;
12
+ static readonly flags: {
13
+ 'source-dir': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
14
+ };
15
+ private forceIgnore;
16
+ /**
17
+ * Outputs all forceignored files from package directories of a project,
18
+ * or based on a sourcepath param that points to a specific file or directory.
19
+ */
20
+ run(): Promise<SourceIgnoredResults>;
21
+ private statIgnored;
22
+ private findIgnored;
23
+ private isIgnored;
24
+ }
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Ignored = void 0;
4
+ /*
5
+ * Copyright (c) 2022, salesforce.com, inc.
6
+ * All rights reserved.
7
+ * Licensed under the BSD 3-Clause license.
8
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
9
+ */
10
+ const path = require("path");
11
+ const fs = require("fs");
12
+ const core_1 = require("@salesforce/core");
13
+ const source_deploy_retrieve_1 = require("@salesforce/source-deploy-retrieve");
14
+ const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
15
+ core_1.Messages.importMessagesDirectory(__dirname);
16
+ const messages = core_1.Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'list.ignored');
17
+ class Ignored extends sf_plugins_core_1.SfCommand {
18
+ /**
19
+ * Outputs all forceignored files from package directories of a project,
20
+ * or based on a sourcepath param that points to a specific file or directory.
21
+ */
22
+ // eslint-disable-next-line @typescript-eslint/require-await
23
+ async run() {
24
+ const flags = (await this.parse(Ignored)).flags;
25
+ try {
26
+ this.forceIgnore = source_deploy_retrieve_1.ForceIgnore.findAndCreate(this.project.getPath());
27
+ const sourcepaths = flags['source-dir']
28
+ ? [flags['source-dir']]
29
+ : this.project.getUniquePackageDirectories().map((pDir) => pDir.path);
30
+ const ignoredFiles = (await Promise.all(sourcepaths.map((sp) => this.statIgnored(sp.trim())))).flat();
31
+ // Command output
32
+ if (ignoredFiles.length) {
33
+ this.log('Found the following ignored files:');
34
+ ignoredFiles.forEach((filepath) => this.log(filepath));
35
+ }
36
+ else {
37
+ this.log('No ignored files found in paths:');
38
+ sourcepaths.forEach((sp) => this.log(sp));
39
+ }
40
+ return { ignoredFiles };
41
+ }
42
+ catch (err) {
43
+ const error = err;
44
+ if ('code' in error && error.code === 'ENOENT') {
45
+ throw messages.createError('invalidSourceDir', [flags['source-dir']]);
46
+ }
47
+ throw core_1.SfError.wrap(error);
48
+ }
49
+ }
50
+ // Stat the filepath. Test if a file, recurse if a directory.
51
+ async statIgnored(filepath) {
52
+ const stats = await fs.promises.stat(filepath);
53
+ if (stats.isDirectory()) {
54
+ return (await Promise.all(await this.findIgnored(filepath))).flat();
55
+ }
56
+ else {
57
+ return this.isIgnored(filepath) ? [filepath] : [];
58
+ }
59
+ }
60
+ // Recursively search a directory for source files to test.
61
+ async findIgnored(dir) {
62
+ return (await fs.promises.readdir(dir)).map((filename) => this.statIgnored(path.join(dir, filename)));
63
+ }
64
+ // Test if a source file is denied, adding any ignored files to
65
+ // the ignoredFiles array for output.
66
+ isIgnored(filepath) {
67
+ return this.forceIgnore.denies(filepath);
68
+ }
69
+ }
70
+ exports.Ignored = Ignored;
71
+ Ignored.summary = messages.getMessage('summary');
72
+ Ignored.description = messages.getMessage('description');
73
+ Ignored.examples = messages.getMessages('examples');
74
+ Ignored.requiresProject = true;
75
+ Ignored.aliases = ['force:source:ignored:list'];
76
+ Ignored.deprecateAliases = true;
77
+ Ignored.flags = {
78
+ 'source-dir': sf_plugins_core_1.Flags.file({
79
+ char: 'p',
80
+ aliases: ['sourcepath'],
81
+ deprecateAliases: true,
82
+ summary: messages.getMessage('flags.source-dir.summary'),
83
+ }),
84
+ };
85
+ //# sourceMappingURL=ignored.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ignored.js","sourceRoot":"","sources":["../../../../src/commands/project/list/ignored.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,6BAA6B;AAC7B,yBAAyB;AACzB,2CAAqD;AACrD,+EAAiE;AACjE,iEAA+D;AAE/D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,cAAc,CAAC,CAAC;AAM7F,MAAa,OAAQ,SAAQ,2BAA+B;IAiB1D;;;OAGG;IACH,4DAA4D;IACrD,KAAK,CAAC,GAAG;QACd,MAAM,KAAK,GAAG,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KA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A2B,CAAC,CAAC;AACxC,wBAAgB,GAAG,IAAI,CAAC;AACxB,aAAK,GAAG;IAC7B,YAAY,EAAE,uBAAK,CAAC,IAAI,CAAC;QACvB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,CAAC,YAAY,CAAC;QACvB,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC;KACzD,CAAC;CACH,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ export type ResetTrackingResult = {
3
+ sourceMembersSynced: number;
4
+ localPathsSynced: number;
5
+ };
6
+ export declare class ResetTracking extends SfCommand<ResetTrackingResult> {
7
+ static readonly deprecateAliases = true;
8
+ static readonly aliases: string[];
9
+ static readonly summary: string;
10
+ static readonly description: string;
11
+ static readonly requiresProject = true;
12
+ static readonly examples: never[];
13
+ static readonly flags: {
14
+ 'target-org': import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
15
+ 'api-version': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
16
+ loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
17
+ revision: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
18
+ 'no-prompt': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
19
+ };
20
+ run(): Promise<ResetTrackingResult>;
21
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2020, salesforce.com, inc.
4
+ * All rights reserved.
5
+ * Licensed under the BSD 3-Clause license.
6
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.ResetTracking = void 0;
10
+ const core_1 = require("@salesforce/core");
11
+ const chalk = require("chalk");
12
+ const source_tracking_1 = require("@salesforce/source-tracking");
13
+ const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
14
+ core_1.Messages.importMessagesDirectory(__dirname);
15
+ const messages = core_1.Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'delete.tracking');
16
+ class ResetTracking extends sf_plugins_core_1.SfCommand {
17
+ async run() {
18
+ const { flags } = await this.parse(ResetTracking);
19
+ if (flags['no-prompt'] || (await this.confirm(chalk.dim(messages.getMessage('promptMessage'))))) {
20
+ const sourceTracking = await source_tracking_1.SourceTracking.create({
21
+ project: this.project,
22
+ org: flags['target-org'],
23
+ });
24
+ const [remoteResets, localResets] = await Promise.all([
25
+ sourceTracking.resetRemoteTracking(flags.revision),
26
+ sourceTracking.resetLocalTracking(),
27
+ ]);
28
+ this.logSuccess(`Reset local tracking files${flags.revision ? ` to revision ${flags.revision}` : ''}.`);
29
+ return {
30
+ sourceMembersSynced: remoteResets,
31
+ localPathsSynced: localResets.length,
32
+ };
33
+ }
34
+ return {
35
+ sourceMembersSynced: 0,
36
+ localPathsSynced: 0,
37
+ };
38
+ }
39
+ }
40
+ exports.ResetTracking = ResetTracking;
41
+ ResetTracking.deprecateAliases = true;
42
+ ResetTracking.aliases = ['force:source:tracking:reset'];
43
+ ResetTracking.summary = messages.getMessage('resetSummary');
44
+ ResetTracking.description = messages.getMessage('resetDescription');
45
+ ResetTracking.requiresProject = true;
46
+ ResetTracking.examples = [];
47
+ ResetTracking.flags = {
48
+ 'target-org': sf_plugins_core_1.requiredOrgFlagWithDeprecations,
49
+ 'api-version': sf_plugins_core_1.orgApiVersionFlagWithDeprecations,
50
+ loglevel: sf_plugins_core_1.loglevel,
51
+ // eslint-disable-next-line sf-plugin/flag-min-max-default
52
+ revision: sf_plugins_core_1.Flags.integer({
53
+ char: 'r',
54
+ summary: messages.getMessage('flags.revision.summary'),
55
+ min: 0,
56
+ }),
57
+ 'no-prompt': sf_plugins_core_1.Flags.boolean({
58
+ char: 'p',
59
+ summary: messages.getMessage('flags.no-prompt.summary'),
60
+ aliases: ['noprompt'],
61
+ deprecateAliases: true,
62
+ }),
63
+ };
64
+ //# sourceMappingURL=tracking.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tracking.js","sourceRoot":"","sources":["../../../../src/commands/project/reset/tracking.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2CAA4C;AAC5C,+BAA+B;AAC/B,iEAA6D;AAC7D,iEAMqC;AAErC,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,iBAAiB,CAAC,CAAC;AAOhG,MAAa,aAAc,SAAQ,2BAA8B;IA0BxD,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QAElD,IAAI,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE;YAC/F,MAAM,cAAc,GAAG,MAAM,gCAAc,CAAC,MAAM,CAAC;gBACjD,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC;aACzB,CAAC,CAAC;YAEH,MAAM,CAAC,YAAY,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;gBACpD,cAAc,CAAC,mBAAmB,CAAC,KAAK,CAAC,QAAQ,CAAC;gBAClD,cAAc,CAAC,kBAAkB,EAAE;aACpC,CAAC,CAAC;YAEH,IAAI,CAAC,UAAU,CAAC,6BAA6B,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;YAExG,OAAO;gBACL,mBAAmB,EAAE,YAAY;gBACjC,gBAAgB,EAAE,WAAW,CAAC,MAAM;aACrC,CAAC;SACH;QAED,OAAO;YACL,mBAAmB,EAAE,CAAC;YACtB,gBAAgB,EAAE,CAAC;SACpB,CAAC;IACJ,CAAC;;AApDH,sCAqDC;AApDwB,8BAAgB,GAAG,IAAI,CAAC;AACxB,qBAAO,GAAG,CAAC,6BAA6B,CAAC,CAAC;AAC1C,qBAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;AAC9C,yBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;AACtD,6BAAe,GAAG,IAAI,CAAC;AACvB,sBAAQ,GAAG,EAAE,CAAC;AAEd,mBAAK,GAAG;IAC7B,YAAY,EAAE,iDAA+B;IAC7C,aAAa,EAAE,mDAAiC;IAChD,QAAQ,EAAR,0BAAQ;IACR,0DAA0D;IAC1D,QAAQ,EAAE,uBAAK,CAAC,OAAO,CAAC;QACtB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;QACtD,GAAG,EAAE,CAAC;KACP,CAAC;IACF,WAAW,EAAE,uBAAK,CAAC,OAAO,CAAC;QACzB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,yBAAyB,CAAC;QACvD,OAAO,EAAE,CAAC,UAAU,CAAC;QACrB,gBAAgB,EAAE,IAAI;KACvB,CAAC;CACH,CAAC"}
@@ -5,7 +5,8 @@ export default class RetrieveMetadataPreview extends SfCommand<PreviewResult> {
5
5
  static readonly summary: string;
6
6
  static readonly examples: string[];
7
7
  static readonly requiresProject = true;
8
- static readonly state = "beta";
8
+ static readonly aliases: string[];
9
+ static readonly deprecateAliases = true;
9
10
  static readonly flags: {
10
11
  'ignore-conflicts': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
12
  'target-org': import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
@@ -46,7 +46,8 @@ RetrieveMetadataPreview.description = messages.getMessage('description');
46
46
  RetrieveMetadataPreview.summary = messages.getMessage('summary');
47
47
  RetrieveMetadataPreview.examples = messages.getMessages('examples');
48
48
  RetrieveMetadataPreview.requiresProject = true;
49
- RetrieveMetadataPreview.state = 'beta';
49
+ RetrieveMetadataPreview.aliases = ['retrieve:metadata:preview'];
50
+ RetrieveMetadataPreview.deprecateAliases = true;
50
51
  RetrieveMetadataPreview.flags = {
51
52
  'ignore-conflicts': sf_plugins_core_1.Flags.boolean({
52
53
  char: 'c',
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview.js","sourceRoot":"","sources":["../../../../src/commands/project/retrieve/preview.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,2CAA4C;AAC5C,iEAA+D;AAC/D,iEAA6D;AAC7D,+EAAiE;AACjE,gEAA4G;AAE5G,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,2BAA2B,CAAC,CAAC;AAE1G,MAAqB,uBAAwB,SAAQ,2BAAwB;IAuBpE,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAE5D,MAAM,GAAG,GAAG,MAAM,gCAAc,CAAC,MAAM,CAAC;YACtC,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC;YACxB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,eAAe,EAAE,KAAK,CAAC,kBAAkB,CAAC;SAC3C,CAAC,CAAC;QAEH,MAAM,WAAW,GAAG,oCAAW,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,CA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AK;KACf,CAAC;IACF,YAAY,EAAE,uBAAK,CAAC,WAAW,CAAC;QAC9B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,8BAA8B,CAAC;QAChE,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC;QACxD,QAAQ,EAAE,IAAI;KACf,CAAC;CACH,CAAC"}
@@ -2,13 +2,14 @@ import { SfError } from '@salesforce/core';
2
2
  import { RetrieveResult } from '@salesforce/source-deploy-retrieve';
3
3
  import { SfCommand } from '@salesforce/sf-plugins-core';
4
4
  import { Duration } from '@salesforce/kit';
5
- import { RetrieveResultJson } from '../../utils/types';
5
+ import { RetrieveResultJson } from '../../../utils/types';
6
6
  export default class RetrieveMetadata extends SfCommand<RetrieveResultJson> {
7
7
  static readonly summary: string;
8
8
  static readonly description: string;
9
9
  static readonly examples: string[];
10
10
  static readonly requiresProject = true;
11
- static readonly state = "beta";
11
+ static readonly aliases: string[];
12
+ static readonly deprecateAliases = true;
12
13
  static readonly flags: {
13
14
  'api-version': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
14
15
  'ignore-conflicts': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
@@ -14,10 +14,11 @@ const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
14
14
  const ts_types_1 = require("@salesforce/ts-types");
15
15
  const source_tracking_1 = require("@salesforce/source-tracking");
16
16
  const kit_1 = require("@salesforce/kit");
17
- const flags_1 = require("../../utils/flags");
18
- const output_1 = require("../../utils/output");
19
- const project_1 = require("../../utils/project");
20
- const conflicts_1 = require("../../utils/conflicts");
17
+ const flags_1 = require("../../../utils/flags");
18
+ const retrieveResultFormatter_1 = require("../../../formatters/retrieveResultFormatter");
19
+ const metadataRetrieveResultFormatter_1 = require("../../../formatters/metadataRetrieveResultFormatter");
20
+ const project_1 = require("../../../utils/project");
21
+ const conflicts_1 = require("../../../utils/conflicts");
21
22
  core_1.Messages.importMessagesDirectory(__dirname);
22
23
  const messages = core_1.Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'retrieve.metadata');
23
24
  const mdTransferMessages = core_1.Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'metadata.transfer');
@@ -93,14 +94,14 @@ class RetrieveMetadata extends sf_plugins_core_1.SfCommand {
93
94
  await retrieve.start();
94
95
  const result = await retrieve.pollStatus(500, flags.wait.seconds);
95
96
  this.spinner.stop();
96
- // reference the flag instead of `foramt` so we get correct type
97
+ // reference the flag instead of `format` so we get correct type
97
98
  const formatter = flags['target-metadata-dir']
98
- ? new output_1.MetadataRetrieveResultFormatter(result, {
99
+ ? new metadataRetrieveResultFormatter_1.MetadataRetrieveResultFormatter(result, {
99
100
  'target-metadata-dir': flags['target-metadata-dir'],
100
101
  'zip-file-name': zipFileName,
101
102
  unzip: flags.unzip,
102
103
  })
103
- : new output_1.RetrieveResultFormatter(result, flags['package-name'], fileResponsesFromDelete);
104
+ : new retrieveResultFormatter_1.RetrieveResultFormatter(result, flags['package-name'], fileResponsesFromDelete);
104
105
  if (!this.jsonEnabled()) {
105
106
  if (result.response.status === 'Succeeded') {
106
107
  await formatter.display();
@@ -129,7 +130,7 @@ class RetrieveMetadata extends sf_plugins_core_1.SfCommand {
129
130
  return super.catch({
130
131
  ...error,
131
132
  message: messages.getMessage('error.Conflicts'),
132
- actions: messages.getMessages('error.Conflicts.Actions'),
133
+ actions: messages.getMessages('error.Conflicts.Actions', [this.config.bin]),
133
134
  });
134
135
  }
135
136
  }
@@ -141,7 +142,8 @@ RetrieveMetadata.summary = messages.getMessage('summary');
141
142
  RetrieveMetadata.description = messages.getMessage('description');
142
143
  RetrieveMetadata.examples = messages.getMessages('examples');
143
144
  RetrieveMetadata.requiresProject = true;
144
- RetrieveMetadata.state = 'beta';
145
+ RetrieveMetadata.aliases = ['retrieve:metadata'];
146
+ RetrieveMetadata.deprecateAliases = true;
145
147
  RetrieveMetadata.flags = {
146
148
  'api-version': sf_plugins_core_1.Flags.orgApiVersion({
147
149
  char: 'a',
@@ -223,4 +225,4 @@ RetrieveMetadata.flags = {
223
225
  };
224
226
  RetrieveMetadata.configurationVariablesSection = (0, sf_plugins_core_1.toHelpSection)('CONFIGURATION VARIABLES', core_1.OrgConfigProperties.TARGET_ORG, core_1.OrgConfigProperties.ORG_API_VERSION);
225
227
  RetrieveMetadata.envVariablesSection = (0, sf_plugins_core_1.toHelpSection)('ENVIRONMENT VARIABLES', core_1.EnvironmentVariable.SF_TARGET_ORG, core_1.EnvironmentVariable.SF_USE_PROGRESS_BAR);
226
- //# sourceMappingURL=metadata.js.map
228
+ //# sourceMappingURL=start.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start.js","sourceRoot":"","sources":["../../../../src/commands/project/retrieve/start.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,0CAAiC;AACjC,+BAAqC;AAErC,2CAA+F;AAC/F,+EAA6G;AAE7G,iEAA8E;AAC9E,mDAAiD;AACjD,iEAAkF;AAClF,yCAA2C;AAC3C,gDAA0F;AAC1F,yFAAsF;AACtF,yGAAsG;AACtG,oDAAwD;AAExD,wDAA8D;AAE9D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,mBAAmB,CAAC,CAAC;AAClG,MAAM,kBAAkB,GAAG,eAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,mBAAmB,CAAC,CAAC;AAE5G,MAAqB,gBAAiB,SAAQ,2BAA6B;IAqGzE,sCAAsC;IAC/B,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;QAErD,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC;QACzD,MAAM,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SAAS;QACf,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;QAClD,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;KAC3D,CAAC;IACF,KAAK,EAAE,uBAAK,CAAC,OAAO,CAAC;QACnB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC;QACnD,SAAS,EAAE,CAAC,qBAAqB,CAAC;QAClC,SAAS,EAAE,CAAC,kBAAkB,CAAC;KAChC,CAAC;IACF,eAAe,EAAE,IAAA,mBAAW,EAAC;QAC3B,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,6BAA6B,CAAC;QAC3D,SAAS,EAAE,CAAC,qBAAqB,CAAC;QAClC,SAAS,EAAE,CAAC,kBAAkB,CAAC;KAChC,CAAC;CACH,CAAC;AAEY,8CAA6B,GAAG,IAAA,+BAAa,EACzD,yBAAyB,EACzB,0BAAmB,CAAC,UAAU,EAC9B,0BAAmB,CAAC,eAAe,CACpC,CAAC;AACY,oCAAmB,GAAG,IAAA,+BAAa,EAC/C,uBAAuB,EACvB,0BAAmB,CAAC,aAAa,EACjC,0BAAmB,CAAC,mBAAmB,CACxC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { Messages } from '@salesforce/core';
2
+ import { AsyncDeployResultJson, DeployResultJson, Formatter } from '../utils/types';
3
+ export declare const deployAsyncMessages: Messages<string>;
4
+ export declare class AsyncDeployCancelResultFormatter implements Formatter<AsyncDeployResultJson> {
5
+ private id;
6
+ private bin;
7
+ constructor(id: string, bin: string);
8
+ getJson(): DeployResultJson;
9
+ display(): void;
10
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AsyncDeployCancelResultFormatter = exports.deployAsyncMessages = void 0;
4
+ /*
5
+ * Copyright (c) 2020, salesforce.com, inc.
6
+ * All rights reserved.
7
+ * Licensed under the BSD 3-Clause license.
8
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
9
+ */
10
+ const core_1 = require("@oclif/core");
11
+ const core_2 = require("@salesforce/core");
12
+ core_2.Messages.importMessagesDirectory(__dirname);
13
+ exports.deployAsyncMessages = core_2.Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'deploy.async');
14
+ class AsyncDeployCancelResultFormatter {
15
+ constructor(id, bin) {
16
+ this.id = id;
17
+ this.bin = bin;
18
+ }
19
+ getJson() {
20
+ return { id: this.id, done: false, status: 'Queued', files: [] };
21
+ }
22
+ display() {
23
+ core_1.ux.log(exports.deployAsyncMessages.getMessage('info.AsyncDeployCancelQueued'));
24
+ core_1.ux.log(exports.deployAsyncMessages.getMessage('info.AsyncDeployResume', [this.bin, this.id]));
25
+ core_1.ux.log(exports.deployAsyncMessages.getMessage('info.AsyncDeployStatus', [this.bin, this.id]));
26
+ }
27
+ }
28
+ exports.AsyncDeployCancelResultFormatter = AsyncDeployCancelResultFormatter;
29
+ //# sourceMappingURL=asyncDeployCancelResultFormatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asyncDeployCancelResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/asyncDeployCancelResultFormatter.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,sCAAiC;AACjC,2CAA4C;AAG5C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE/B,QAAA,mBAAmB,GAAG,eAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,cAAc,CAAC,CAAC;AAE/G,MAAa,gCAAgC;IAC3C,YAA2B,EAAU,EAAU,GAAW;QAA/B,OAAE,GAAF,EAAE,CAAQ;QAAU,QAAG,GAAH,GAAG,CAAQ;IAAG,CAAC;IAEvD,OAAO;QACZ,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IACnE,CAAC;IAEM,OAAO;QACZ,SAAE,CAAC,GAAG,CAAC,2BAAmB,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAAC,CAAC;QACvE,SAAE,CAAC,GAAG,CAAC,2BAAmB,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACtF,SAAE,CAAC,GAAG,CAAC,2BAAmB,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACxF,CAAC;CACF;AAZD,4EAYC"}
@@ -0,0 +1,10 @@
1
+ import { Messages } from '@salesforce/core';
2
+ import { AsyncDeployResultJson, Formatter } from '../utils/types';
3
+ export declare const deployAsyncMessages: Messages<string>;
4
+ export declare class AsyncDeployResultFormatter implements Formatter<AsyncDeployResultJson> {
5
+ private id;
6
+ private bin;
7
+ constructor(id: string, bin: string);
8
+ getJson(): AsyncDeployResultJson;
9
+ display(): void;
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AsyncDeployResultFormatter = exports.deployAsyncMessages = void 0;
4
+ /*
5
+ * Copyright (c) 2020, salesforce.com, inc.
6
+ * All rights reserved.
7
+ * Licensed under the BSD 3-Clause license.
8
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
9
+ */
10
+ const core_1 = require("@oclif/core");
11
+ const core_2 = require("@salesforce/core");
12
+ core_2.Messages.importMessagesDirectory(__dirname);
13
+ exports.deployAsyncMessages = core_2.Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'deploy.async');
14
+ class AsyncDeployResultFormatter {
15
+ constructor(id, bin) {
16
+ this.id = id;
17
+ this.bin = bin;
18
+ }
19
+ getJson() {
20
+ return { id: this.id, done: false, status: 'Queued', files: [] };
21
+ }
22
+ display() {
23
+ core_1.ux.log(exports.deployAsyncMessages.getMessage('info.AsyncDeployQueued'));
24
+ core_1.ux.log();
25
+ core_1.ux.log(exports.deployAsyncMessages.getMessage('info.AsyncDeployResume', [this.bin, this.id]));
26
+ core_1.ux.log(exports.deployAsyncMessages.getMessage('info.AsyncDeployStatus', [this.bin, this.id]));
27
+ core_1.ux.log(exports.deployAsyncMessages.getMessage('info.AsyncDeployCancel', [this.bin, this.id]));
28
+ }
29
+ }
30
+ exports.AsyncDeployResultFormatter = AsyncDeployResultFormatter;
31
+ //# sourceMappingURL=asyncDeployResultFormatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asyncDeployResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/asyncDeployResultFormatter.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,sCAAiC;AACjC,2CAA4C;AAG5C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC/B,QAAA,mBAAmB,GAAG,eAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,cAAc,CAAC,CAAC;AAE/G,MAAa,0BAA0B;IACrC,YAA2B,EAAU,EAAU,GAAW;QAA/B,OAAE,GAAF,EAAE,CAAQ;QAAU,QAAG,GAAH,GAAG,CAAQ;IAAG,CAAC;IAEvD,OAAO;QACZ,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IACnE,CAAC;IAEM,OAAO;QACZ,SAAE,CAAC,GAAG,CAAC,2BAAmB,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC,CAAC;QACjE,SAAE,CAAC,GAAG,EAAE,CAAC;QACT,SAAE,CAAC,GAAG,CAAC,2BAAmB,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACtF,SAAE,CAAC,GAAG,CAAC,2BAAmB,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACtF,SAAE,CAAC,GAAG,CAAC,2BAAmB,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACxF,CAAC;CACF;AAdD,gEAcC"}
@@ -0,0 +1,13 @@
1
+ import { DeployResult } from '@salesforce/source-deploy-retrieve';
2
+ import { DeleteSourceJson, Formatter } from '../utils/types';
3
+ export declare class DeleteResultFormatter implements Formatter<DeleteSourceJson> {
4
+ private result;
5
+ constructor(result: DeployResult);
6
+ /**
7
+ * Get the JSON output from the DeployResult.
8
+ *
9
+ * @returns a JSON formatted result matching the provided type.
10
+ */
11
+ getJson(): DeleteSourceJson;
12
+ display(): void;
13
+ }