@salesforce/plugin-packaging 1.0.0 → 1.2.1

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 (115) hide show
  1. package/CHANGELOG.md +32 -1
  2. package/README.md +749 -9
  3. package/lib/commands/force/package/beta/convert.d.ts +13 -0
  4. package/lib/commands/force/package/beta/convert.js +61 -0
  5. package/lib/commands/force/package/beta/convert.js.map +1 -0
  6. package/lib/commands/force/package/beta/create.d.ts +15 -0
  7. package/lib/commands/force/package/beta/create.js +87 -0
  8. package/lib/commands/force/package/beta/create.js.map +1 -0
  9. package/lib/commands/force/package/beta/delete.d.ts +14 -0
  10. package/lib/commands/force/package/beta/delete.js +61 -0
  11. package/lib/commands/force/package/beta/delete.js.map +1 -0
  12. package/lib/commands/force/package/beta/install/report.d.ts +15 -0
  13. package/lib/commands/force/package/beta/install/report.js +66 -0
  14. package/lib/commands/force/package/beta/install/report.js.map +1 -0
  15. package/lib/commands/force/package/beta/install.d.ts +22 -0
  16. package/lib/commands/force/package/beta/install.js +228 -0
  17. package/lib/commands/force/package/beta/install.js.map +1 -0
  18. package/lib/commands/force/package/beta/installed/list.d.ts +17 -0
  19. package/lib/commands/force/package/beta/installed/list.js +46 -0
  20. package/lib/commands/force/package/beta/installed/list.js.map +1 -0
  21. package/lib/commands/force/package/beta/list.d.ts +21 -0
  22. package/lib/commands/force/package/beta/list.js +90 -0
  23. package/lib/commands/force/package/beta/list.js.map +1 -0
  24. package/lib/commands/force/package/beta/uninstall/report.d.ts +10 -0
  25. package/lib/commands/force/package/beta/uninstall/report.js +33 -0
  26. package/lib/commands/force/package/beta/uninstall/report.js.map +1 -0
  27. package/lib/commands/force/package/beta/uninstall.d.ts +12 -0
  28. package/lib/commands/force/package/beta/uninstall.js +52 -0
  29. package/lib/commands/force/package/beta/uninstall.js.map +1 -0
  30. package/lib/commands/force/package/beta/update.d.ts +12 -0
  31. package/lib/commands/force/package/beta/update.js +51 -0
  32. package/lib/commands/force/package/beta/update.js.map +1 -0
  33. package/lib/commands/force/package/beta/version/create/list.d.ts +12 -0
  34. package/lib/commands/force/package/beta/version/create/list.js +40 -0
  35. package/lib/commands/force/package/beta/version/create/list.js.map +1 -0
  36. package/lib/commands/force/package/beta/version/create/report.d.ts +12 -0
  37. package/lib/commands/force/package/beta/version/create/report.js +87 -0
  38. package/lib/commands/force/package/beta/version/create/report.js.map +1 -0
  39. package/lib/commands/force/package/beta/version/create.d.ts +11 -0
  40. package/lib/commands/force/package/beta/version/create.js +200 -0
  41. package/lib/commands/force/package/beta/version/create.js.map +1 -0
  42. package/lib/commands/force/package/beta/version/delete.d.ts +15 -0
  43. package/lib/commands/force/package/beta/version/delete.js +64 -0
  44. package/lib/commands/force/package/beta/version/delete.js.map +1 -0
  45. package/lib/commands/force/package/beta/version/displayancestry.d.ts +13 -0
  46. package/lib/commands/force/package/beta/version/displayancestry.js +46 -0
  47. package/lib/commands/force/package/beta/version/displayancestry.js.map +1 -0
  48. package/lib/commands/force/package/beta/version/list.d.ts +12 -0
  49. package/lib/commands/force/package/beta/version/list.js +62 -0
  50. package/lib/commands/force/package/beta/version/list.js.map +1 -0
  51. package/lib/commands/force/package/beta/version/promote.d.ts +12 -0
  52. package/lib/commands/force/package/beta/version/promote.js +40 -0
  53. package/lib/commands/force/package/beta/version/promote.js.map +1 -0
  54. package/lib/commands/force/package/beta/version/report.d.ts +24 -0
  55. package/lib/commands/force/package/beta/version/report.js +209 -0
  56. package/lib/commands/force/package/beta/version/report.js.map +1 -0
  57. package/lib/commands/force/package/beta/version/update.d.ts +12 -0
  58. package/lib/commands/force/package/beta/version/update.js +60 -0
  59. package/lib/commands/force/package/beta/version/update.js.map +1 -0
  60. package/lib/commands/force/package1/beta/version/create/get.d.ts +9 -0
  61. package/lib/commands/force/package1/beta/version/create/get.js +48 -0
  62. package/lib/commands/force/package1/beta/version/create/get.js.map +1 -0
  63. package/lib/commands/force/package1/beta/version/create.d.ts +14 -0
  64. package/lib/commands/force/package1/beta/version/create.js +116 -0
  65. package/lib/commands/force/package1/beta/version/create.js.map +1 -0
  66. package/lib/commands/force/package1/beta/version/display.d.ts +9 -0
  67. package/lib/commands/force/package1/beta/version/display.js +55 -0
  68. package/lib/commands/force/package1/beta/version/display.js.map +1 -0
  69. package/lib/commands/force/package1/beta/version/list.d.ts +10 -0
  70. package/lib/commands/force/package1/beta/version/list.js +54 -0
  71. package/lib/commands/force/package1/beta/version/list.js.map +1 -0
  72. package/messages/default.md +1127 -0
  73. package/messages/package1_version_create.md +128 -0
  74. package/messages/package1_version_create_get.md +31 -0
  75. package/messages/package1_version_display.md +19 -0
  76. package/messages/package1_version_list.md +31 -0
  77. package/messages/package2.md +87 -0
  78. package/messages/package2_create.md +56 -0
  79. package/messages/package2_list.md +35 -0
  80. package/messages/package2_update.md +45 -0
  81. package/messages/package2_version_create.md +149 -0
  82. package/messages/package2_version_create_get.md +34 -0
  83. package/messages/package2_version_create_list.md +62 -0
  84. package/messages/package2_version_get.md +14 -0
  85. package/messages/package2_version_list.md +98 -0
  86. package/messages/package2_version_update.md +89 -0
  87. package/messages/package_convert.md +72 -0
  88. package/messages/package_create.md +90 -0
  89. package/messages/package_delete.md +63 -0
  90. package/messages/package_displayancestry.md +64 -0
  91. package/messages/package_install.md +178 -0
  92. package/messages/package_install_get.md +34 -0
  93. package/messages/package_install_report.md +34 -0
  94. package/messages/package_install_request.md +34 -0
  95. package/messages/package_installed_list.md +16 -0
  96. package/messages/package_list.md +67 -0
  97. package/messages/package_uninstall.md +73 -0
  98. package/messages/package_uninstall_get.md +34 -0
  99. package/messages/package_uninstall_report.md +34 -0
  100. package/messages/package_update.md +45 -0
  101. package/messages/package_version_create.md +306 -0
  102. package/messages/package_version_create_list.md +62 -0
  103. package/messages/package_version_create_report.md +35 -0
  104. package/messages/package_version_delete.md +63 -0
  105. package/messages/package_version_list.md +135 -0
  106. package/messages/package_version_promote.md +50 -0
  107. package/messages/package_version_report.md +51 -0
  108. package/messages/package_version_update.md +74 -0
  109. package/messages/packaging.md +157 -0
  110. package/oclif.manifest.json +1 -1
  111. package/package.json +98 -15
  112. package/lib/commands/force/package/placeholder.d.ts +0 -5
  113. package/lib/commands/force/package/placeholder.js +0 -17
  114. package/lib/commands/force/package/placeholder.js.map +0 -1
  115. package/messages/org.json +0 -12
@@ -0,0 +1,200 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2022, 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.PackageVersionCreateCommand = void 0;
10
+ const os = require("os");
11
+ const path = require("path");
12
+ const fs = require("fs");
13
+ const command_1 = require("@salesforce/command");
14
+ const kit_1 = require("@salesforce/kit");
15
+ const core_1 = require("@salesforce/core");
16
+ const packaging_1 = require("@salesforce/packaging");
17
+ var Package2VersionStatus = packaging_1.PackagingSObjects.Package2VersionStatus;
18
+ core_1.Messages.importMessagesDirectory(__dirname);
19
+ const messages = core_1.Messages.loadMessages('@salesforce/plugin-packaging', 'package_version_create');
20
+ class PackageVersionCreateCommand extends command_1.SfdxCommand {
21
+ async run() {
22
+ if (this.flags.skipvalidation) {
23
+ this.ux.warn(messages.getMessage('skipValidationWarning'));
24
+ }
25
+ const frequency = this.flags.wait && this.flags.skipvalidation ? kit_1.Duration.seconds(5) : kit_1.Duration.seconds(30);
26
+ // no async methods
27
+ // eslint-disable-next-line @typescript-eslint/require-await
28
+ core_1.Lifecycle.getInstance().on('in-progress', async (data) => {
29
+ if (data.packageVersionCreateRequestResult.Status !== Package2VersionStatus.success &&
30
+ data.packageVersionCreateRequestResult.Status !== Package2VersionStatus.error) {
31
+ this.ux.log(messages.getMessage('requestInProgress', [
32
+ frequency.seconds,
33
+ data.timeRemaining.seconds,
34
+ data.packageVersionCreateRequestResult.Status,
35
+ ]));
36
+ }
37
+ });
38
+ // resolve the package id from the --package flag, first checking if it's an alias, then using the flag (an id), and then looking for the package name from the --path flag
39
+ let packageName;
40
+ if (this.flags.package) {
41
+ // we're unable to type this earlier, because casting `undefined as string` will result in "", which would screw up the logic below
42
+ const pkg = this.flags.package;
43
+ packageName = pkg.startsWith('0ho') ? pkg : (0, packaging_1.getPackageIdFromAlias)(pkg, this.project);
44
+ }
45
+ else {
46
+ // due to flag validation, we'll either have a package or path flag
47
+ packageName = this.project.getPackageFromPath(this.flags.path).package;
48
+ }
49
+ const packageId = (0, packaging_1.getPackageIdFromAlias)(packageName, this.project);
50
+ const pv = new packaging_1.PackageVersion({ project: this.project, connection: this.hubOrg.getConnection() });
51
+ const result = await pv.create({ ...this.flags, ...{ packageId } }, {
52
+ timeout: this.flags.wait,
53
+ frequency,
54
+ });
55
+ switch (result.Status) {
56
+ case 'Error':
57
+ this.ux.log(messages.getMessage('unknownError', [result.Error.join('\n')]));
58
+ break;
59
+ case 'Success':
60
+ this.ux.log(messages.getMessage(result.Status, [
61
+ result.Id,
62
+ result.SubscriberPackageVersionId,
63
+ packaging_1.INSTALL_URL_BASE.toString(),
64
+ result.SubscriberPackageVersionId,
65
+ ]));
66
+ break;
67
+ default:
68
+ this.ux.log(messages.getMessage('InProgress', [(0, packaging_1.convertCamelCaseStringToSentence)(result.Status), result.Id]));
69
+ }
70
+ return result;
71
+ }
72
+ }
73
+ exports.PackageVersionCreateCommand = PackageVersionCreateCommand;
74
+ PackageVersionCreateCommand.description = messages.getMessage('cliDescription');
75
+ PackageVersionCreateCommand.longDescription = messages.getMessage('cliLongDescription');
76
+ PackageVersionCreateCommand.help = messages.getMessage('help');
77
+ PackageVersionCreateCommand.examples = messages.getMessage('examples').split(os.EOL);
78
+ PackageVersionCreateCommand.requiresDevhubUsername = true;
79
+ PackageVersionCreateCommand.requiresProject = true;
80
+ PackageVersionCreateCommand.flagsConfig = {
81
+ branch: command_1.flags.string({
82
+ char: 'b',
83
+ description: messages.getMessage('branch'),
84
+ longDescription: messages.getMessage('longBranch'),
85
+ }),
86
+ buildinstance: command_1.flags.string({
87
+ char: 's',
88
+ description: messages.getMessage('instance'),
89
+ longDescription: messages.getMessage('longInstance'),
90
+ hidden: true,
91
+ }),
92
+ codecoverage: command_1.flags.boolean({
93
+ char: 'c',
94
+ description: messages.getMessage('codeCoverage'),
95
+ longDescription: messages.getMessage('longCodeCoverage'),
96
+ default: false,
97
+ exclusive: ['skipvalidation'],
98
+ }),
99
+ definitionfile: command_1.flags.filepath({
100
+ char: 'f',
101
+ description: messages.getMessage('definitionfile'),
102
+ longDescription: messages.getMessage('longDefinitionfile'),
103
+ }),
104
+ installationkey: command_1.flags.string({
105
+ char: 'k',
106
+ description: messages.getMessage('key'),
107
+ longDescription: messages.getMessage('longKey'),
108
+ exactlyOne: ['installationkey', 'installationkeybypass'],
109
+ }),
110
+ installationkeybypass: command_1.flags.boolean({
111
+ char: 'x',
112
+ description: messages.getMessage('keyBypass'),
113
+ longDescription: messages.getMessage('longKeyBypass'),
114
+ exactlyOne: ['installationkey', 'installationkeybypass'],
115
+ }),
116
+ package: command_1.flags.string({
117
+ char: 'p',
118
+ description: messages.getMessage('package'),
119
+ longDescription: messages.getMessage('longPackage', []),
120
+ exactlyOne: ['path', 'package'],
121
+ }),
122
+ path: command_1.flags.directory({
123
+ char: 'd',
124
+ description: messages.getMessage('path'),
125
+ longDescription: messages.getMessage('longPath'),
126
+ exactlyOne: ['path', 'package'],
127
+ validate: (dir) => {
128
+ if (!fs.existsSync(path.join(process.cwd(), dir))) {
129
+ throw messages.createError('errorPathNotFound', [dir]);
130
+ }
131
+ return true;
132
+ },
133
+ }),
134
+ postinstallscript: command_1.flags.string({
135
+ description: messages.getMessage('postInstallScript'),
136
+ longDescription: messages.getMessage('postInstallScriptLong'),
137
+ }),
138
+ postinstallurl: command_1.flags.url({
139
+ description: messages.getMessage('postInstallUrl'),
140
+ longDescription: messages.getMessage('postInstallUrlLong'),
141
+ }),
142
+ preserve: command_1.flags.boolean({
143
+ char: 'r',
144
+ description: messages.getMessage('preserve'),
145
+ longDescription: messages.getMessage('longPreserve'),
146
+ hidden: true,
147
+ }),
148
+ releasenotesurl: command_1.flags.url({
149
+ description: messages.getMessage('releaseNotesUrl'),
150
+ longDescription: messages.getMessage('releaseNotesUrlLong'),
151
+ }),
152
+ skipancestorcheck: command_1.flags.boolean({
153
+ description: messages.getMessage('skipAncestorCheck'),
154
+ longDescription: messages.getMessage('skipAncestorCheckLong'),
155
+ default: false,
156
+ }),
157
+ skipvalidation: command_1.flags.boolean({
158
+ description: messages.getMessage('skipValidation'),
159
+ longDescription: messages.getMessage('skipValidationLong'),
160
+ default: false,
161
+ exclusive: ['codecoverage'],
162
+ }),
163
+ tag: command_1.flags.string({
164
+ char: 't',
165
+ description: messages.getMessage('tag'),
166
+ longDescription: messages.getMessage('longTag'),
167
+ }),
168
+ uninstallscript: command_1.flags.string({
169
+ description: messages.getMessage('uninstallScript'),
170
+ longDescription: messages.getMessage('uninstallScriptLong'),
171
+ }),
172
+ validateschema: command_1.flags.boolean({
173
+ char: 'j',
174
+ description: messages.getMessage('validateschema'),
175
+ longDescription: messages.getMessage('longValidateschema'),
176
+ hidden: true,
177
+ }),
178
+ versiondescription: command_1.flags.string({
179
+ char: 'e',
180
+ description: messages.getMessage('versiondescription'),
181
+ longDescription: messages.getMessage('longVersiondescription'),
182
+ }),
183
+ versionname: command_1.flags.string({
184
+ char: 'a',
185
+ description: messages.getMessage('versionname'),
186
+ longDescription: messages.getMessage('longVersionname'),
187
+ }),
188
+ versionnumber: command_1.flags.string({
189
+ char: 'n',
190
+ description: messages.getMessage('versionnumber'),
191
+ longDescription: messages.getMessage('longVersionnumber'),
192
+ }),
193
+ wait: command_1.flags.minutes({
194
+ char: 'w',
195
+ description: messages.getMessage('wait'),
196
+ longDescription: messages.getMessage('longWait'),
197
+ default: kit_1.Duration.minutes(0),
198
+ }),
199
+ };
200
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version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AM,CAAC;QACxB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC;QAC/C,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,iBAAiB,CAAC;KACxD,CAAC;IACF,aAAa,EAAE,eAAK,CAAC,MAAM,CAAC;QAC1B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC;QACjD,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC;KAC1D,CAAC;IACF,IAAI,EAAE,eAAK,CAAC,OAAO,CAAC;QAClB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC;QACxC,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;QAChD,OAAO,EAAE,cAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;KAC7B,CAAC;CACH,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { FlagsConfig, SfdxCommand } from '@salesforce/command';
2
+ import { OrgConfigProperties } from '@salesforce/core';
3
+ import { PackageSaveResult } from '@salesforce/packaging';
4
+ export declare class PackageVersionDeleteCommand extends SfdxCommand {
5
+ static readonly description: string;
6
+ static readonly longDescription: string;
7
+ static readonly help: string;
8
+ static readonly orgType = OrgConfigProperties.TARGET_DEV_HUB;
9
+ static readonly requiresDevhubUsername = true;
10
+ static readonly requiresProject = true;
11
+ static readonly flagsConfig: FlagsConfig;
12
+ run(): Promise<PackageSaveResult>;
13
+ private confirmDelete;
14
+ private getHumanSuccessMessage;
15
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2022, 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.PackageVersionDeleteCommand = void 0;
10
+ const command_1 = require("@salesforce/command");
11
+ const core_1 = require("@salesforce/core");
12
+ const packaging_1 = require("@salesforce/packaging");
13
+ core_1.Messages.importMessagesDirectory(__dirname);
14
+ const messages = core_1.Messages.loadMessages('@salesforce/plugin-packaging', 'package_version_delete');
15
+ class PackageVersionDeleteCommand extends command_1.SfdxCommand {
16
+ async run() {
17
+ const packageVersion = new packaging_1.PackageVersion({ project: this.project, connection: this.hubOrg.getConnection() });
18
+ await this.confirmDelete();
19
+ const results = this.flags.undelete
20
+ ? await packageVersion.undelete(this.flags.package)
21
+ : await packageVersion.delete(this.flags.package);
22
+ this.ux.log(this.getHumanSuccessMessage(results));
23
+ return results;
24
+ }
25
+ async confirmDelete() {
26
+ if (this.flags.noprompt || this.flags.json) {
27
+ return true;
28
+ }
29
+ const message = this.flags.undelete ? messages.getMessage('promptUndelete') : messages.getMessage('promptDelete');
30
+ const accepted = await this.ux.confirm(message);
31
+ if (!accepted) {
32
+ throw new Error(messages.getMessage('promptDeleteDeny'));
33
+ }
34
+ }
35
+ getHumanSuccessMessage(result) {
36
+ return messages.getMessage(this.flags.undelete ? 'humanSuccessUndelete' : 'humanSuccess', [result.id]);
37
+ }
38
+ }
39
+ exports.PackageVersionDeleteCommand = PackageVersionDeleteCommand;
40
+ PackageVersionDeleteCommand.description = messages.getMessage('cliDescription');
41
+ PackageVersionDeleteCommand.longDescription = messages.getMessage('cliLongDescription');
42
+ PackageVersionDeleteCommand.help = messages.getMessage('help', []);
43
+ PackageVersionDeleteCommand.orgType = core_1.OrgConfigProperties.TARGET_DEV_HUB;
44
+ PackageVersionDeleteCommand.requiresDevhubUsername = true;
45
+ PackageVersionDeleteCommand.requiresProject = true;
46
+ PackageVersionDeleteCommand.flagsConfig = {
47
+ noprompt: command_1.flags.boolean({
48
+ char: 'n',
49
+ description: messages.getMessage('noPrompt'),
50
+ longDescription: messages.getMessage('noPrompt'),
51
+ }),
52
+ package: command_1.flags.string({
53
+ char: 'p',
54
+ description: messages.getMessage('package'),
55
+ longDescription: messages.getMessage('packageLong'),
56
+ required: true,
57
+ }),
58
+ undelete: command_1.flags.boolean({
59
+ description: messages.getMessage('undelete'),
60
+ longDescription: messages.getMessage('undeleteLong'),
61
+ hidden: true,
62
+ }),
63
+ };
64
+ //# sourceMappingURL=delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../../src/commands/force/package/beta/version/delete.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iDAAsE;AACtE,2CAAiE;AACjE,qDAA0E;AAE1E,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,wBAAwB,CAAC,CAAC;AAEjG,MAAa,2BAA4B,SAAQ,qBAAW;IA0BnD,KAAK,CAAC,GAAG;QACd,MAAM,cAAc,GAAG,IAAI,0BAAc,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;QAC9G,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;QAC3B,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ;YACjC,CAAC,CAAC,MAAM,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;YACnD,CAAC,CAAC,MAAM,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACpD,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;QAClD,OAAO,OAAO,CAAC;IACjB,CAAC;IAEO,KAAK,CAAC,aAAa;QACzB,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,IA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AI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;QAC3C,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC;QACnD,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,QAAQ,EAAE,eAAK,CAAC,OAAO,CAAC;QACtB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;QAC5C,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,cAAc,CAAC;QACpD,MAAM,EAAE,IAAI;KACb,CAAC;CACH,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { FlagsConfig, SfdxCommand } from '@salesforce/command';
2
+ import { SfdxPropertyKeys } from '@salesforce/core';
3
+ export declare class PackageVersionDisplayAncestryCommand extends SfdxCommand {
4
+ static readonly description: string;
5
+ static readonly longDescription: string;
6
+ static readonly help: string;
7
+ static readonly showProgress = false;
8
+ static readonly varargs = false;
9
+ static readonly orgType = SfdxPropertyKeys.DEFAULT_DEV_HUB_USERNAME;
10
+ static readonly requiresDevhubUsername = true;
11
+ static readonly flagsConfig: FlagsConfig;
12
+ run(): Promise<unknown>;
13
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2022, 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.PackageVersionDisplayAncestryCommand = void 0;
10
+ const command_1 = require("@salesforce/command");
11
+ const core_1 = require("@salesforce/core");
12
+ // Import i18n messages
13
+ core_1.Messages.importMessagesDirectory(__dirname);
14
+ const messages = core_1.Messages.loadMessages('@salesforce/plugin-packaging', 'package_displayancestry');
15
+ class PackageVersionDisplayAncestryCommand extends command_1.SfdxCommand {
16
+ async run() {
17
+ process.exitCode = 1;
18
+ return Promise.resolve('Not yet implemented');
19
+ }
20
+ }
21
+ exports.PackageVersionDisplayAncestryCommand = PackageVersionDisplayAncestryCommand;
22
+ PackageVersionDisplayAncestryCommand.description = messages.getMessage('cliDescription');
23
+ PackageVersionDisplayAncestryCommand.longDescription = messages.getMessage('cliDescriptionLong');
24
+ PackageVersionDisplayAncestryCommand.help = messages.getMessage('help');
25
+ PackageVersionDisplayAncestryCommand.showProgress = false;
26
+ PackageVersionDisplayAncestryCommand.varargs = false;
27
+ PackageVersionDisplayAncestryCommand.orgType = core_1.SfdxPropertyKeys.DEFAULT_DEV_HUB_USERNAME;
28
+ PackageVersionDisplayAncestryCommand.requiresDevhubUsername = true;
29
+ PackageVersionDisplayAncestryCommand.flagsConfig = {
30
+ // --json is configured automatically
31
+ package: command_1.flags.string({
32
+ char: 'p',
33
+ description: messages.getMessage('package'),
34
+ longDescription: messages.getMessage('packageLong'),
35
+ required: true,
36
+ }),
37
+ dotcode: command_1.flags.boolean({
38
+ description: messages.getMessage('dotcode'),
39
+ longDescription: messages.getMessage('dotcodeLong'),
40
+ }),
41
+ verbose: command_1.flags.builtin({
42
+ description: messages.getMessage('verbose'),
43
+ longDescription: messages.getMessage('verboseLong'),
44
+ }),
45
+ };
46
+ //# sourceMappingURL=displayancestry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"displayancestry.js","sourceRoot":"","sources":["../../../../../../src/commands/force/package/beta/version/displayancestry.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iDAAsE;AACtE,2CAA8D;AAE9D,uBAAuB;AACvB,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,yBAAyB,CAAC,CAAC;AAElG,MAAa,oCAAqC,SAAQ,qBAAW;IA4B5D,KAAK,CAAC,GAAG;QACd,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACrB,OAAO,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAChD,CAAC;;AA/BH,oFAgCC;AA/BwB,gDAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;AACpD,oDAAe,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAC5D,yCAAI,GAAG,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AAEnC,iDAAY,GAAG,KAAK,CAAC;AACrB,4CAAO,GAAG,KAAK,CAAC;AAChB,4CAAO,GAAG,uBAAgB,CAAC,wBAAwB,CAAC;AACpD,2DAAsB,GAAG,IAAI,CAAC;AAE9B,gDAAW,GAAgB;IAChD,qCAAqC;IACrC,OAAO,EAAE,eAAK,CAAC,MAAM,CAAC;QACpB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;QAC3C,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC;QACnD,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,OAAO,EAAE,eAAK,CAAC,OAAO,CAAC;QACrB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;QAC3C,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC;KACpD,CAAC;IACF,OAAO,EAAE,eAAK,CAAC,OAAO,CAAC;QACrB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;QAC3C,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC;KACpD,CAAC;CACH,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { FlagsConfig, SfdxCommand } from '@salesforce/command';
2
+ import { SfdxPropertyKeys } from '@salesforce/core';
3
+ export declare class PackageVersionListCommand extends SfdxCommand {
4
+ static readonly description: string;
5
+ static readonly longDescription: string;
6
+ static readonly help: string;
7
+ static readonly: any;
8
+ static readonly orgType = SfdxPropertyKeys.DEFAULT_DEV_HUB_USERNAME;
9
+ static readonly requiresDevhubUsername = true;
10
+ static readonly flagsConfig: FlagsConfig;
11
+ run(): Promise<unknown>;
12
+ }
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2022, 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.PackageVersionListCommand = void 0;
10
+ const command_1 = require("@salesforce/command");
11
+ const core_1 = require("@salesforce/core");
12
+ core_1.Messages.importMessagesDirectory(__dirname);
13
+ const messages = core_1.Messages.loadMessages('@salesforce/plugin-packaging', 'package_version_list');
14
+ const packaging = core_1.Messages.loadMessages('@salesforce/plugin-packaging', 'packaging');
15
+ class PackageVersionListCommand extends command_1.SfdxCommand {
16
+ async run() {
17
+ process.exitCode = 1;
18
+ return Promise.resolve('Not yet implemented');
19
+ }
20
+ }
21
+ exports.PackageVersionListCommand = PackageVersionListCommand;
22
+ PackageVersionListCommand.description = messages.getMessage('cliDescription');
23
+ PackageVersionListCommand.longDescription = messages.getMessage('cliLongDescription');
24
+ PackageVersionListCommand.help = messages.getMessage('help');
25
+ PackageVersionListCommand.orgType = core_1.SfdxPropertyKeys.DEFAULT_DEV_HUB_USERNAME;
26
+ PackageVersionListCommand.requiresDevhubUsername = true;
27
+ PackageVersionListCommand.flagsConfig = {
28
+ createdlastdays: command_1.flags.number({
29
+ char: 'c',
30
+ description: packaging.getMessage('createdLastDaysDescription'),
31
+ longDescription: packaging.getMessage('createdLastDaysLongDescription'),
32
+ }),
33
+ concise: command_1.flags.builtin({
34
+ description: messages.getMessage('conciseDescription'),
35
+ longDescription: messages.getMessage('conciseLongDescription'),
36
+ }),
37
+ modifiedlastdays: command_1.flags.number({
38
+ char: 'm',
39
+ description: packaging.getMessage('modifiedLastDaysDescription'),
40
+ longDescription: packaging.getMessage('modifiedLastDaysLongDescription'),
41
+ }),
42
+ packages: command_1.flags.array({
43
+ char: 'p',
44
+ description: messages.getMessage('packagesDescription'),
45
+ longDescription: messages.getMessage('packagesLongDescription'),
46
+ }),
47
+ released: command_1.flags.boolean({
48
+ char: 'r',
49
+ description: messages.getMessage('releasedDescription'),
50
+ longDescription: messages.getMessage('releasedLongDescription'),
51
+ }),
52
+ orderby: command_1.flags.array({
53
+ char: 'o',
54
+ description: messages.getMessage('orderByDescription'),
55
+ longDescription: messages.getMessage('orderByLongDescription'),
56
+ }),
57
+ verbose: command_1.flags.builtin({
58
+ description: messages.getMessage('verboseDescription'),
59
+ longDescription: messages.getMessage('verboseLongDescription'),
60
+ }),
61
+ };
62
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../../src/commands/force/package/beta/version/list.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iDAAsE;AACtE,2CAA8D;AAE9D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,sBAAsB,CAAC,CAAC;AAC/F,MAAM,SAAS,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,WAAW,CAAC,CAAC;AAErF,MAAa,yBAA0B,SAAQ,qBAAW;IA2CjD,KAAK,CAAC,GAAG;QACd,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACrB,OAAO,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAChD,CAAC;;AA9CH,8DA+CC;AA9CwB,qCAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;AACpD,yCAAe,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAC5D,8BAAI,GAAG,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AAEnC,iCAAO,GAAG,uBAAgB,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AC,OAAO,CAAC;QACrB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;QACtD,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;KAC/D,CAAC;CACH,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { FlagsConfig, SfdxCommand } from '@salesforce/command';
2
+ import { SfdxPropertyKeys } from '@salesforce/core';
3
+ export declare class PackageVersionPromoteCommand extends SfdxCommand {
4
+ static readonly description: string;
5
+ static readonly longDescription: string;
6
+ static readonly help: string;
7
+ static readonly orgType = SfdxPropertyKeys.DEFAULT_DEV_HUB_USERNAME;
8
+ static readonly requiresDevhubUsername = true;
9
+ static readonly requiresProject = true;
10
+ static readonly flagsConfig: FlagsConfig;
11
+ run(): Promise<unknown>;
12
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2022, 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.PackageVersionPromoteCommand = void 0;
10
+ const command_1 = require("@salesforce/command");
11
+ const core_1 = require("@salesforce/core");
12
+ core_1.Messages.importMessagesDirectory(__dirname);
13
+ const messages = core_1.Messages.loadMessages('@salesforce/plugin-packaging', 'package_version_promote');
14
+ class PackageVersionPromoteCommand extends command_1.SfdxCommand {
15
+ async run() {
16
+ process.exitCode = 1;
17
+ return Promise.resolve('Not yet implemented');
18
+ }
19
+ }
20
+ exports.PackageVersionPromoteCommand = PackageVersionPromoteCommand;
21
+ PackageVersionPromoteCommand.description = messages.getMessage('cliDescription');
22
+ PackageVersionPromoteCommand.longDescription = messages.getMessage('cliDescriptionLong');
23
+ PackageVersionPromoteCommand.help = messages.getMessage('help');
24
+ PackageVersionPromoteCommand.orgType = core_1.SfdxPropertyKeys.DEFAULT_DEV_HUB_USERNAME;
25
+ PackageVersionPromoteCommand.requiresDevhubUsername = true;
26
+ PackageVersionPromoteCommand.requiresProject = true;
27
+ PackageVersionPromoteCommand.flagsConfig = {
28
+ package: command_1.flags.string({
29
+ char: 'p',
30
+ description: messages.getMessage('package'),
31
+ longDescription: messages.getMessage('packageLong'),
32
+ required: true,
33
+ }),
34
+ noprompt: command_1.flags.boolean({
35
+ char: 'n',
36
+ description: messages.getMessage('setasreleasedForce'),
37
+ longDescription: messages.getMessage('setasreleasedForceLong'),
38
+ }),
39
+ };
40
+ //# sourceMappingURL=promote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promote.js","sourceRoot":"","sources":["../../../../../../src/commands/force/package/beta/version/promote.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iDAAsE;AACtE,2CAA8D;AAE9D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,yBAAyB,CAAC,CAAC;AAElG,MAAa,4BAA6B,SAAQ,qBAAW;IAqBpD,KAAK,CAAC,GAAG;QACd,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACrB,OAAO,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAChD,CAAC;;AAxBH,oEAyBC;AAxBwB,wCAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;AACpD,4CAAe,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAC5D,iCAAI,GAAG,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AACnC,oCAAO,GAAG,uBAAgB,CAAC,wBAAwB,CAAC;AACpD,mDAAsB,GAAG,IAAI,CAAC;AAC9B,4CAAe,GAAG,IAAI,CAAC;AACvB,wCAAW,GAAgB;IAChD,OAAO,EAAE,eAAK,CAAC,MAAM,CAAC;QACpB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;QAC3C,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC;QACnD,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,QAAQ,EAAE,eAAK,CAAC,OAAO,CAAC;QACtB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;QACtD,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;KAC/D,CAAC;CACH,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { FlagsConfig, SfdxCommand } from '@salesforce/command';
2
+ import { OrgConfigProperties } from '@salesforce/core';
3
+ import { PackageVersionReportResult, PackagingSObjects } from '@salesforce/packaging';
4
+ export declare type PackageVersionReportResultModified = Omit<PackageVersionReportResult, 'CodeCoverage' | 'HasPassedCodeCoverageCheck' | 'Package2' | 'HasMetadataRemoved' | 'PackageType'> & {
5
+ CodeCoverage: string;
6
+ HasPassedCodeCoverageCheck: boolean | string;
7
+ Package2: Partial<Omit<PackagingSObjects.Package2, 'IsOrgDependent'> & {
8
+ IsOrgDependent: string;
9
+ }>;
10
+ HasMetadataRemoved: boolean | string;
11
+ };
12
+ export declare class PackageVersionReportCommand extends SfdxCommand {
13
+ static readonly description: string;
14
+ static readonly longDescription: string;
15
+ static readonly help: string;
16
+ static readonly orgType = OrgConfigProperties.TARGET_DEV_HUB;
17
+ static readonly requiresDevhubUsername = true;
18
+ static readonly requiresProject = true;
19
+ static readonly flagsConfig: FlagsConfig;
20
+ protected haveCodeCoverageData: boolean;
21
+ run(): Promise<PackageVersionReportResultModified>;
22
+ private display;
23
+ private massageResultsForDisplay;
24
+ }