@salesforce/plugin-packaging 1.12.3 → 1.12.5

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 (177) hide show
  1. package/README.md +0 -2
  2. package/lib/commands/package/convert.d.ts +23 -0
  3. package/lib/commands/package/convert.js +128 -0
  4. package/lib/commands/package/convert.js.map +1 -0
  5. package/lib/commands/package/create.d.ts +26 -0
  6. package/lib/commands/package/create.js +92 -0
  7. package/lib/commands/package/create.js.map +1 -0
  8. package/lib/commands/package/delete.d.ts +20 -0
  9. package/lib/commands/package/delete.js +65 -0
  10. package/lib/commands/package/delete.js.map +1 -0
  11. package/lib/commands/package/install/report.d.ts +19 -0
  12. package/lib/commands/package/install/report.js +65 -0
  13. package/lib/commands/package/install/report.js.map +1 -0
  14. package/lib/commands/package/install.d.ts +31 -0
  15. package/lib/commands/{force/package → package}/install.js +72 -76
  16. package/lib/commands/package/install.js.map +1 -0
  17. package/lib/commands/package/installed/list.d.ts +24 -0
  18. package/lib/commands/{force/package → package}/installed/list.js +19 -14
  19. package/lib/commands/package/installed/list.js.map +1 -0
  20. package/lib/commands/package/list.d.ts +26 -0
  21. package/lib/commands/{force/package → package}/list.js +23 -21
  22. package/lib/commands/package/list.js.map +1 -0
  23. package/lib/commands/package/uninstall/report.d.ts +15 -0
  24. package/lib/commands/package/uninstall/report.js +46 -0
  25. package/lib/commands/package/uninstall/report.js.map +1 -0
  26. package/lib/commands/package/uninstall.d.ts +19 -0
  27. package/lib/commands/package/uninstall.js +60 -0
  28. package/lib/commands/package/uninstall.js.map +1 -0
  29. package/lib/commands/package/update.d.ts +20 -0
  30. package/lib/commands/package/update.js +67 -0
  31. package/lib/commands/package/update.js.map +1 -0
  32. package/lib/commands/package/version/create/list.d.ts +18 -0
  33. package/lib/commands/{force/package → package}/version/create/list.js +28 -20
  34. package/lib/commands/package/version/create/list.js.map +1 -0
  35. package/lib/commands/package/version/create/report.d.ts +19 -0
  36. package/lib/commands/{force/package → package}/version/create/report.js +28 -24
  37. package/lib/commands/package/version/create/report.js.map +1 -0
  38. package/lib/commands/package/version/create.d.ts +40 -0
  39. package/lib/commands/package/version/create.js +220 -0
  40. package/lib/commands/package/version/create.js.map +1 -0
  41. package/lib/commands/package/version/delete.d.ts +21 -0
  42. package/lib/commands/package/version/delete.js +71 -0
  43. package/lib/commands/package/version/delete.js.map +1 -0
  44. package/lib/commands/package/version/displayancestry.d.ts +19 -0
  45. package/lib/commands/package/version/displayancestry.js +74 -0
  46. package/lib/commands/package/version/displayancestry.js.map +1 -0
  47. package/lib/commands/package/version/list.d.ts +40 -0
  48. package/lib/commands/{force/package → package}/version/list.js +56 -57
  49. package/lib/commands/package/version/list.js.map +1 -0
  50. package/lib/commands/package/version/promote.d.ts +18 -0
  51. package/lib/commands/{force/package → package}/version/promote.js +28 -25
  52. package/lib/commands/package/version/promote.js.map +1 -0
  53. package/lib/commands/package/version/report.d.ts +29 -0
  54. package/lib/commands/{force/package → package}/version/report.js +34 -32
  55. package/lib/commands/package/version/report.js.map +1 -0
  56. package/lib/commands/package/version/update.d.ts +22 -0
  57. package/lib/commands/package/version/update.js +77 -0
  58. package/lib/commands/package/version/update.js.map +1 -0
  59. package/lib/commands/package1/version/create/get.d.ts +15 -0
  60. package/lib/commands/{force/package1 → package1}/version/create/get.js +22 -14
  61. package/lib/commands/package1/version/create/get.js.map +1 -0
  62. package/lib/commands/package1/version/create.d.ts +28 -0
  63. package/lib/commands/package1/version/create.js +130 -0
  64. package/lib/commands/package1/version/create.js.map +1 -0
  65. package/lib/commands/package1/version/display.d.ts +16 -0
  66. package/lib/commands/{force/package1 → package1}/version/display.js +20 -18
  67. package/lib/commands/package1/version/display.js.map +1 -0
  68. package/lib/commands/package1/version/list.d.ts +16 -0
  69. package/lib/commands/{force/package1 → package1}/version/list.js +21 -20
  70. package/lib/commands/package1/version/list.js.map +1 -0
  71. package/messages/package1_version_create.md +33 -44
  72. package/messages/package1_version_create_get.md +11 -10
  73. package/messages/package1_version_display.md +10 -8
  74. package/messages/package1_version_list.md +14 -8
  75. package/messages/package_convert.md +31 -31
  76. package/messages/package_create.md +31 -40
  77. package/messages/package_delete.md +15 -20
  78. package/messages/package_displayancestry.md +25 -19
  79. package/messages/package_install.md +43 -52
  80. package/messages/package_install_report.md +9 -8
  81. package/messages/package_installed_list.md +9 -4
  82. package/messages/package_list.md +16 -13
  83. package/messages/package_uninstall.md +17 -15
  84. package/messages/package_uninstall_report.md +11 -10
  85. package/messages/package_update.md +13 -18
  86. package/messages/package_version_create.md +82 -130
  87. package/messages/package_version_create_list.md +26 -14
  88. package/messages/package_version_create_report.md +13 -10
  89. package/messages/package_version_delete.md +17 -17
  90. package/messages/package_version_list.md +29 -32
  91. package/messages/package_version_promote.md +22 -16
  92. package/messages/package_version_report.md +13 -14
  93. package/messages/package_version_update.md +23 -37
  94. package/messages/packaging.md +4 -12
  95. package/oclif.manifest.json +2455 -1
  96. package/package.json +60 -75
  97. package/schemas/package-convert.json +73 -0
  98. package/schemas/package-create.json +16 -0
  99. package/schemas/package-delete.json +72 -0
  100. package/schemas/package-install-report.json +169 -0
  101. package/schemas/package-install.json +169 -0
  102. package/schemas/package-installed-list.json +40 -0
  103. package/schemas/package-list.json +55 -0
  104. package/schemas/package-uninstall-report.json +51 -0
  105. package/schemas/package-uninstall.json +54 -0
  106. package/schemas/package-update.json +72 -0
  107. package/schemas/package-version-create-list.json +79 -0
  108. package/schemas/package-version-create-report.json +79 -0
  109. package/schemas/package-version-create.json +60 -0
  110. package/schemas/package-version-delete.json +72 -0
  111. package/schemas/package-version-displayancestry.json +61 -0
  112. package/schemas/package-version-list.json +146 -0
  113. package/schemas/package-version-promote.json +72 -0
  114. package/schemas/package-version-report.json +232 -0
  115. package/schemas/package-version-update.json +72 -0
  116. package/schemas/package1-version-create-get.json +91 -0
  117. package/schemas/package1-version-create.json +94 -0
  118. package/schemas/package1-version-display.json +37 -0
  119. package/schemas/package1-version-list.json +37 -0
  120. package/lib/commands/force/package/convert.d.ts +0 -11
  121. package/lib/commands/force/package/convert.js +0 -106
  122. package/lib/commands/force/package/convert.js.map +0 -1
  123. package/lib/commands/force/package/create.d.ts +0 -13
  124. package/lib/commands/force/package/create.js +0 -82
  125. package/lib/commands/force/package/create.js.map +0 -1
  126. package/lib/commands/force/package/delete.d.ts +0 -12
  127. package/lib/commands/force/package/delete.js +0 -63
  128. package/lib/commands/force/package/delete.js.map +0 -1
  129. package/lib/commands/force/package/install/report.d.ts +0 -12
  130. package/lib/commands/force/package/install/report.js +0 -39
  131. package/lib/commands/force/package/install/report.js.map +0 -1
  132. package/lib/commands/force/package/install.d.ts +0 -20
  133. package/lib/commands/force/package/install.js.map +0 -1
  134. package/lib/commands/force/package/installed/list.d.ts +0 -18
  135. package/lib/commands/force/package/installed/list.js.map +0 -1
  136. package/lib/commands/force/package/list.d.ts +0 -19
  137. package/lib/commands/force/package/list.js.map +0 -1
  138. package/lib/commands/force/package/uninstall/report.d.ts +0 -10
  139. package/lib/commands/force/package/uninstall/report.js +0 -44
  140. package/lib/commands/force/package/uninstall/report.js.map +0 -1
  141. package/lib/commands/force/package/uninstall.d.ts +0 -12
  142. package/lib/commands/force/package/uninstall.js +0 -55
  143. package/lib/commands/force/package/uninstall.js.map +0 -1
  144. package/lib/commands/force/package/update.d.ts +0 -11
  145. package/lib/commands/force/package/update.js +0 -63
  146. package/lib/commands/force/package/update.js.map +0 -1
  147. package/lib/commands/force/package/version/create/list.d.ts +0 -10
  148. package/lib/commands/force/package/version/create/list.js.map +0 -1
  149. package/lib/commands/force/package/version/create/report.d.ts +0 -11
  150. package/lib/commands/force/package/version/create/report.js.map +0 -1
  151. package/lib/commands/force/package/version/create.d.ts +0 -12
  152. package/lib/commands/force/package/version/create.js +0 -203
  153. package/lib/commands/force/package/version/create.js.map +0 -1
  154. package/lib/commands/force/package/version/delete.d.ts +0 -13
  155. package/lib/commands/force/package/version/delete.js +0 -66
  156. package/lib/commands/force/package/version/delete.js.map +0 -1
  157. package/lib/commands/force/package/version/displayancestry.d.ts +0 -13
  158. package/lib/commands/force/package/version/displayancestry.js +0 -70
  159. package/lib/commands/force/package/version/displayancestry.js.map +0 -1
  160. package/lib/commands/force/package/version/list.d.ts +0 -27
  161. package/lib/commands/force/package/version/list.js.map +0 -1
  162. package/lib/commands/force/package/version/promote.d.ts +0 -11
  163. package/lib/commands/force/package/version/promote.js.map +0 -1
  164. package/lib/commands/force/package/version/report.d.ts +0 -22
  165. package/lib/commands/force/package/version/report.js.map +0 -1
  166. package/lib/commands/force/package/version/update.d.ts +0 -11
  167. package/lib/commands/force/package/version/update.js +0 -73
  168. package/lib/commands/force/package/version/update.js.map +0 -1
  169. package/lib/commands/force/package1/version/create/get.d.ts +0 -10
  170. package/lib/commands/force/package1/version/create/get.js.map +0 -1
  171. package/lib/commands/force/package1/version/create.d.ts +0 -13
  172. package/lib/commands/force/package1/version/create.js +0 -115
  173. package/lib/commands/force/package1/version/create.js.map +0 -1
  174. package/lib/commands/force/package1/version/display.d.ts +0 -9
  175. package/lib/commands/force/package1/version/display.js.map +0 -1
  176. package/lib/commands/force/package1/version/list.d.ts +0 -9
  177. package/lib/commands/force/package1/version/list.js.map +0 -1
@@ -0,0 +1,91 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/PackagingSObjects.PackageUploadRequest",
4
+ "definitions": {
5
+ "PackagingSObjects.PackageUploadRequest": {
6
+ "type": "object",
7
+ "properties": {
8
+ "Id": {
9
+ "type": "string"
10
+ },
11
+ "IsDeleted": {
12
+ "type": "boolean"
13
+ },
14
+ "CreatedDate": {
15
+ "type": "number"
16
+ },
17
+ "CreatedById": {
18
+ "type": "string"
19
+ },
20
+ "LastModifiedDate": {
21
+ "type": "number"
22
+ },
23
+ "LastModifiedById": {
24
+ "type": "string"
25
+ },
26
+ "SystemModstamp": {
27
+ "type": "number"
28
+ },
29
+ "MetadataPackageId": {
30
+ "type": "string"
31
+ },
32
+ "MetadataPackageVersionId": {
33
+ "type": "string"
34
+ },
35
+ "IsReleaseVersion": {
36
+ "type": "boolean"
37
+ },
38
+ "VersionName": {
39
+ "type": "string"
40
+ },
41
+ "Description": {
42
+ "type": "string"
43
+ },
44
+ "MajorVersion": {
45
+ "type": "number"
46
+ },
47
+ "MinorVersion": {
48
+ "type": "number"
49
+ },
50
+ "ReleaseNotesUrl": {
51
+ "type": "string"
52
+ },
53
+ "PostInstallUrl": {
54
+ "type": "string"
55
+ },
56
+ "Password": {
57
+ "type": "string"
58
+ },
59
+ "Status": {
60
+ "type": "string"
61
+ },
62
+ "Errors": {
63
+ "type": "array",
64
+ "items": {}
65
+ }
66
+ },
67
+ "required": [
68
+ "Id",
69
+ "IsDeleted",
70
+ "CreatedDate",
71
+ "CreatedById",
72
+ "LastModifiedDate",
73
+ "LastModifiedById",
74
+ "SystemModstamp",
75
+ "MetadataPackageId",
76
+ "MetadataPackageVersionId",
77
+ "IsReleaseVersion",
78
+ "VersionName",
79
+ "Description",
80
+ "MajorVersion",
81
+ "MinorVersion",
82
+ "ReleaseNotesUrl",
83
+ "PostInstallUrl",
84
+ "Password",
85
+ "Status",
86
+ "Errors"
87
+ ],
88
+ "additionalProperties": false
89
+ }
90
+ }
91
+ }
@@ -0,0 +1,94 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/PackageUploadRequest",
4
+ "definitions": {
5
+ "PackageUploadRequest": {
6
+ "$ref": "#/definitions/PackagingSObjects.PackageUploadRequest"
7
+ },
8
+ "PackagingSObjects.PackageUploadRequest": {
9
+ "type": "object",
10
+ "properties": {
11
+ "Id": {
12
+ "type": "string"
13
+ },
14
+ "IsDeleted": {
15
+ "type": "boolean"
16
+ },
17
+ "CreatedDate": {
18
+ "type": "number"
19
+ },
20
+ "CreatedById": {
21
+ "type": "string"
22
+ },
23
+ "LastModifiedDate": {
24
+ "type": "number"
25
+ },
26
+ "LastModifiedById": {
27
+ "type": "string"
28
+ },
29
+ "SystemModstamp": {
30
+ "type": "number"
31
+ },
32
+ "MetadataPackageId": {
33
+ "type": "string"
34
+ },
35
+ "MetadataPackageVersionId": {
36
+ "type": "string"
37
+ },
38
+ "IsReleaseVersion": {
39
+ "type": "boolean"
40
+ },
41
+ "VersionName": {
42
+ "type": "string"
43
+ },
44
+ "Description": {
45
+ "type": "string"
46
+ },
47
+ "MajorVersion": {
48
+ "type": "number"
49
+ },
50
+ "MinorVersion": {
51
+ "type": "number"
52
+ },
53
+ "ReleaseNotesUrl": {
54
+ "type": "string"
55
+ },
56
+ "PostInstallUrl": {
57
+ "type": "string"
58
+ },
59
+ "Password": {
60
+ "type": "string"
61
+ },
62
+ "Status": {
63
+ "type": "string"
64
+ },
65
+ "Errors": {
66
+ "type": "array",
67
+ "items": {}
68
+ }
69
+ },
70
+ "required": [
71
+ "Id",
72
+ "IsDeleted",
73
+ "CreatedDate",
74
+ "CreatedById",
75
+ "LastModifiedDate",
76
+ "LastModifiedById",
77
+ "SystemModstamp",
78
+ "MetadataPackageId",
79
+ "MetadataPackageVersionId",
80
+ "IsReleaseVersion",
81
+ "VersionName",
82
+ "Description",
83
+ "MajorVersion",
84
+ "MinorVersion",
85
+ "ReleaseNotesUrl",
86
+ "PostInstallUrl",
87
+ "Password",
88
+ "Status",
89
+ "Errors"
90
+ ],
91
+ "additionalProperties": false
92
+ }
93
+ }
94
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/Package1DisplayCommandResult",
4
+ "definitions": {
5
+ "Package1DisplayCommandResult": {
6
+ "type": "array",
7
+ "items": {
8
+ "$ref": "#/definitions/Package1Display"
9
+ }
10
+ },
11
+ "Package1Display": {
12
+ "type": "object",
13
+ "properties": {
14
+ "MetadataPackageVersionId": {
15
+ "type": "string"
16
+ },
17
+ "MetadataPackageId": {
18
+ "type": "string"
19
+ },
20
+ "Name": {
21
+ "type": "string"
22
+ },
23
+ "Version": {
24
+ "type": "string"
25
+ },
26
+ "ReleaseState": {
27
+ "type": "string"
28
+ },
29
+ "BuildNumber": {
30
+ "type": "number"
31
+ }
32
+ },
33
+ "required": ["MetadataPackageVersionId", "MetadataPackageId", "Name", "Version", "ReleaseState", "BuildNumber"],
34
+ "additionalProperties": false
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/Package1ListCommandResult",
4
+ "definitions": {
5
+ "Package1ListCommandResult": {
6
+ "type": "array",
7
+ "items": {
8
+ "$ref": "#/definitions/Package1Display"
9
+ }
10
+ },
11
+ "Package1Display": {
12
+ "type": "object",
13
+ "properties": {
14
+ "MetadataPackageVersionId": {
15
+ "type": "string"
16
+ },
17
+ "MetadataPackageId": {
18
+ "type": "string"
19
+ },
20
+ "Name": {
21
+ "type": "string"
22
+ },
23
+ "Version": {
24
+ "type": "string"
25
+ },
26
+ "ReleaseState": {
27
+ "type": "string"
28
+ },
29
+ "BuildNumber": {
30
+ "type": "number"
31
+ }
32
+ },
33
+ "required": ["MetadataPackageVersionId", "MetadataPackageId", "Name", "Version", "ReleaseState", "BuildNumber"],
34
+ "additionalProperties": false
35
+ }
36
+ }
37
+ }
@@ -1,11 +0,0 @@
1
- import { FlagsConfig, SfdxCommand } from '@salesforce/command';
2
- import { PackageVersionCreateRequestResult } from '@salesforce/packaging';
3
- export declare class PackageConvert extends SfdxCommand {
4
- static aliases: string[];
5
- static readonly description: string;
6
- static readonly examples: string[];
7
- static readonly requiresDevhubUsername = true;
8
- static readonly hidden = true;
9
- static readonly flagsConfig: FlagsConfig;
10
- run(): Promise<PackageVersionCreateRequestResult>;
11
- }
@@ -1,106 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2018, 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.PackageConvert = void 0;
10
- const os = require("os");
11
- const command_1 = require("@salesforce/command");
12
- const kit_1 = require("@salesforce/kit");
13
- const core_1 = require("@salesforce/core");
14
- const packaging_1 = require("@salesforce/packaging");
15
- const kit_2 = require("@salesforce/kit");
16
- core_1.Messages.importMessagesDirectory(__dirname);
17
- const messages = core_1.Messages.loadMessages('@salesforce/plugin-packaging', 'package_convert');
18
- const pvcMessages = core_1.Messages.loadMessages('@salesforce/plugin-packaging', 'package_version_create');
19
- class PackageConvert extends command_1.SfdxCommand {
20
- async run() {
21
- // eslint-disable-next-line @typescript-eslint/require-await
22
- core_1.Lifecycle.getInstance().on(packaging_1.PackageEvents.convert.progress, async (data) => {
23
- this.ux.log(`Request in progress. Sleeping 30 seconds. Will wait a total of ${data.timeRemaining.seconds} more seconds before timing out. Current Status='${(0, kit_2.camelCaseToTitleCase)(data.packageVersionCreateRequestResult.Status)}'`);
24
- });
25
- // eslint-disable-next-line @typescript-eslint/require-await
26
- core_1.Lifecycle.getInstance().on(packaging_1.PackageEvents.convert.success, async () => {
27
- this.ux.log('SUCCESS');
28
- });
29
- // initialize the project instance if in a project
30
- let project;
31
- try {
32
- project = await core_1.SfProject.resolve();
33
- }
34
- catch (err) {
35
- // ignore project is optional
36
- }
37
- const result = await packaging_1.Package.convert(this.flags.package, this.hubOrg.getConnection(), {
38
- wait: this.flags.wait,
39
- installationKey: this.flags.installationkey,
40
- definitionfile: this.flags.definitionfile,
41
- installationKeyBypass: this.flags.installationkeybypass,
42
- buildInstance: this.flags.buildinstance,
43
- }, project);
44
- switch (result.Status) {
45
- case 'Error':
46
- throw new core_1.SfError(result.Error?.join('\n') ?? pvcMessages.getMessage('unknownError'));
47
- case 'Success':
48
- this.ux.log(pvcMessages.getMessage(result.Status, [
49
- result.Id,
50
- result.SubscriberPackageVersionId,
51
- packaging_1.INSTALL_URL_BASE.toString(),
52
- result.SubscriberPackageVersionId,
53
- ]));
54
- break;
55
- default:
56
- this.ux.log(pvcMessages.getMessage('InProgress', [(0, kit_2.camelCaseToTitleCase)(result.Status), result.Id]));
57
- }
58
- return result;
59
- }
60
- }
61
- exports.PackageConvert = PackageConvert;
62
- PackageConvert.aliases = ['force:package:beta:convert'];
63
- PackageConvert.description = messages.getMessage('cliDescription');
64
- PackageConvert.examples = messages.getMessage('examples').split(os.EOL);
65
- PackageConvert.requiresDevhubUsername = true;
66
- PackageConvert.hidden = true;
67
- PackageConvert.flagsConfig = {
68
- package: command_1.flags.id({
69
- char: 'p',
70
- description: messages.getMessage('package'),
71
- longDescription: messages.getMessage('longPackage'),
72
- required: true,
73
- validate: /^033/,
74
- }),
75
- installationkey: command_1.flags.string({
76
- char: 'k',
77
- description: messages.getMessage('key'),
78
- longDescription: messages.getMessage('longKey'),
79
- exactlyOne: ['installationkey', 'installationkeybypass'],
80
- }),
81
- definitionfile: command_1.flags.filepath({
82
- char: 'f',
83
- description: messages.getMessage('definitionfile'),
84
- longDescription: messages.getMessage('longDefinitionfile'),
85
- hidden: true,
86
- }),
87
- installationkeybypass: command_1.flags.boolean({
88
- char: 'x',
89
- description: messages.getMessage('keyBypass'),
90
- longDescription: messages.getMessage('longKeyBypass'),
91
- exactlyOne: ['installationkey', 'installationkeybypass'],
92
- }),
93
- wait: command_1.flags.minutes({
94
- char: 'w',
95
- description: messages.getMessage('wait'),
96
- longDescription: messages.getMessage('longWait'),
97
- default: kit_1.Duration.minutes(0),
98
- }),
99
- buildinstance: command_1.flags.string({
100
- char: 's',
101
- description: messages.getMessage('instance'),
102
- longDescription: messages.getMessage('longInstance'),
103
- hidden: true,
104
- }),
105
- };
106
- //# sourceMappingURL=convert.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"convert.js","sourceRoot":"","sources":["../../../../src/commands/force/package/convert.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yBAAyB;AACzB,iDAAsE;AACtE,yCAA2C;AAC3C,2CAA2E;AAC3E,qDAM+B;AAC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e,EAAE,QAAQ,CAAC,UAAU,CAAC,cAAc,CAAC;QACpD,MAAM,EAAE,IAAI;KACb,CAAC;CACH,CAAC"}
@@ -1,13 +0,0 @@
1
- import { FlagsConfig, SfdxCommand } from '@salesforce/command';
2
- export declare class PackageCreateCommand extends SfdxCommand {
3
- static aliases: string[];
4
- static readonly description: string;
5
- static readonly examples: string[];
6
- static readonly requiresDevhubUsername = true;
7
- static readonly requiresProject = true;
8
- static readonly flagsConfig: FlagsConfig;
9
- run(): Promise<{
10
- Id: string;
11
- }>;
12
- private display;
13
- }
@@ -1,82 +0,0 @@
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.PackageCreateCommand = void 0;
10
- const os = require("os");
11
- const command_1 = require("@salesforce/command");
12
- const core_1 = require("@salesforce/core");
13
- const packaging_1 = require("@salesforce/packaging");
14
- core_1.Messages.importMessagesDirectory(__dirname);
15
- const messages = core_1.Messages.loadMessages('@salesforce/plugin-packaging', 'package_create');
16
- class PackageCreateCommand extends command_1.SfdxCommand {
17
- async run() {
18
- const options = {
19
- description: (this.flags.description || ''),
20
- errorNotificationUsername: this.flags.errornotificationusername,
21
- name: this.flags.name,
22
- noNamespace: this.flags.nonamespace,
23
- orgDependent: this.flags.orgdependent,
24
- packageType: this.flags.packagetype,
25
- path: this.flags.path,
26
- };
27
- const result = await packaging_1.Package.create(this.hubOrg.getConnection(), this.project, options);
28
- this.display(result);
29
- return result;
30
- }
31
- display(result) {
32
- this.ux.styledHeader('Ids');
33
- this.ux.table([{ name: 'Package Id', value: result.Id }], { name: { header: 'NAME' }, value: { header: 'VALUE' } });
34
- }
35
- }
36
- exports.PackageCreateCommand = PackageCreateCommand;
37
- PackageCreateCommand.aliases = ['force:package:beta:create'];
38
- PackageCreateCommand.description = messages.getMessage('cliDescription');
39
- PackageCreateCommand.examples = messages.getMessage('examples').split(os.EOL);
40
- PackageCreateCommand.requiresDevhubUsername = true;
41
- PackageCreateCommand.requiresProject = true;
42
- PackageCreateCommand.flagsConfig = {
43
- name: command_1.flags.string({
44
- char: 'n',
45
- description: messages.getMessage('name'),
46
- longDescription: messages.getMessage('nameLong'),
47
- required: true,
48
- }),
49
- packagetype: command_1.flags.enum({
50
- char: 't',
51
- description: messages.getMessage('packageType'),
52
- longDescription: messages.getMessage('packageTypeLong'),
53
- required: true,
54
- options: ['Managed', 'Unlocked'],
55
- }),
56
- description: command_1.flags.string({
57
- char: 'd',
58
- description: messages.getMessage('description'),
59
- longDescription: messages.getMessage('descriptionLong'),
60
- }),
61
- nonamespace: command_1.flags.boolean({
62
- char: 'e',
63
- description: messages.getMessage('noNamespace'),
64
- longDescription: messages.getMessage('noNamespaceLong'),
65
- }),
66
- path: command_1.flags.directory({
67
- char: 'r',
68
- description: messages.getMessage('path'),
69
- longDescription: messages.getMessage('longPath'),
70
- required: true,
71
- }),
72
- orgdependent: command_1.flags.boolean({
73
- description: messages.getMessage('orgDependent'),
74
- longDescription: messages.getMessage('orgDependentLong'),
75
- }),
76
- errornotificationusername: command_1.flags.string({
77
- char: 'o',
78
- description: messages.getMessage('errorNotificationUsername'),
79
- longDescription: messages.getMessage('errorNotificationUsernameLong'),
80
- }),
81
- };
82
- //# sourceMappingURL=create.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/force/package/create.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yBAAyB;AACzB,iDAAsE;AACtE,2CAA4C;AAC5C,qDAAmF;AAEnF,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,gBAAgB,CAAC,CAAC;AAEzF,MAAa,oBAAqB,SAA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AC,UAAU,CAAC,cAAc,CAAC;QAChD,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,kBAAkB,CAAC;KACzD,CAAC;IACF,yBAAyB,EAAE,eAAK,CAAC,MAAM,CAAC;QACtC,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,2BAA2B,CAAC;QAC7D,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,+BAA+B,CAAC;KACtE,CAAC;CACH,CAAC"}
@@ -1,12 +0,0 @@
1
- import { FlagsConfig, SfdxCommand } from '@salesforce/command';
2
- import { PackageSaveResult } from '@salesforce/packaging';
3
- export declare class PackageDeleteCommand extends SfdxCommand {
4
- static aliases: string[];
5
- static readonly description: string;
6
- static readonly examples: string[];
7
- static readonly requiresDevhubUsername = true;
8
- static readonly requiresProject = true;
9
- static readonly flagsConfig: FlagsConfig;
10
- run(): Promise<PackageSaveResult>;
11
- private display;
12
- }
@@ -1,63 +0,0 @@
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.PackageDeleteCommand = void 0;
10
- const os = require("os");
11
- const command_1 = require("@salesforce/command");
12
- const core_1 = require("@salesforce/core");
13
- const packaging_1 = require("@salesforce/packaging");
14
- core_1.Messages.importMessagesDirectory(__dirname);
15
- const messages = core_1.Messages.loadMessages('@salesforce/plugin-packaging', 'package_delete');
16
- class PackageDeleteCommand extends command_1.SfdxCommand {
17
- async run() {
18
- const promptMsg = this.flags.undelete ? 'promptUndelete' : 'promptDelete';
19
- const accepted = this.flags.noprompt || this.flags.json ? true : await this.ux.confirm(messages.getMessage(promptMsg));
20
- if (!accepted) {
21
- throw messages.createError('promptDeleteDeny');
22
- }
23
- const pkg = new packaging_1.Package({
24
- connection: this.hubOrg.getConnection(),
25
- project: this.project,
26
- packageAliasOrId: this.flags.package,
27
- });
28
- const result = this.flags.undelete ? await pkg.undelete() : await pkg.delete();
29
- this.display(result);
30
- return result;
31
- }
32
- display(result) {
33
- const message = messages.getMessage(this.flags.undelete ? 'humanSuccessUndelete' : 'humanSuccess', [result.id]);
34
- this.ux.log();
35
- this.ux.log(message);
36
- }
37
- }
38
- exports.PackageDeleteCommand = PackageDeleteCommand;
39
- PackageDeleteCommand.aliases = ['force:package:beta:delete'];
40
- PackageDeleteCommand.description = messages.getMessage('cliDescription');
41
- PackageDeleteCommand.examples = messages.getMessage('examples').split(os.EOL);
42
- PackageDeleteCommand.requiresDevhubUsername = true;
43
- PackageDeleteCommand.requiresProject = true;
44
- PackageDeleteCommand.flagsConfig = {
45
- noprompt: command_1.flags.boolean({
46
- char: 'n',
47
- description: messages.getMessage('noPrompt'),
48
- longDescription: messages.getMessage('noPromptLong'),
49
- }),
50
- package: command_1.flags.string({
51
- char: 'p',
52
- description: messages.getMessage('package'),
53
- longDescription: messages.getMessage('packageLong'),
54
- required: true,
55
- }),
56
- undelete: command_1.flags.boolean({
57
- description: messages.getMessage('undelete'),
58
- longDescription: messages.getMessage('undeleteLong'),
59
- hidden: true,
60
- default: false,
61
- }),
62
- };
63
- //# sourceMappingURL=delete.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../src/commands/force/package/delete.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yBAAyB;AACzB,iDAAsE;AACtE,2CAA4C;AAC5C,qDAAmE;AAEnE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,gBAAgB,CAAC,CAAC;AAEzF,MAAa,oBAAqB,SAAQ,qBAAW;IA0B5C,KAAK,CAAC,GAAG;QACd,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,Q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GAAG,QAAQ,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;AACpD,6BAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AACzD,2CAAsB,GAAG,IAAI,CAAC;AAC9B,oCAAe,GAAG,IAAI,CAAC;AACvB,gCAAW,GAAgB;IAChD,QAAQ,EAAE,eAAK,CAAC,OAAO,CAAC;QACtB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;QAC5C,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,cAAc,CAAC;KACrD,CAAC;IACF,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,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;QAC5C,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,cAAc,CAAC;QACpD,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,KAAK;KACf,CAAC;CACH,CAAC"}
@@ -1,12 +0,0 @@
1
- import { FlagsConfig, SfdxCommand } from '@salesforce/command';
2
- import { PackagingSObjects } from '@salesforce/packaging';
3
- type PackageInstallRequest = PackagingSObjects.PackageInstallRequest;
4
- export declare class Report extends SfdxCommand {
5
- static aliases: string[];
6
- static readonly description: string;
7
- static readonly examples: string[];
8
- static readonly requiresUsername = true;
9
- static readonly flagsConfig: FlagsConfig;
10
- run(): Promise<PackageInstallRequest>;
11
- }
12
- export {};
@@ -1,39 +0,0 @@
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.Report = void 0;
10
- const os = require("os");
11
- const command_1 = require("@salesforce/command");
12
- const core_1 = require("@salesforce/core");
13
- const packaging_1 = require("@salesforce/packaging");
14
- const install_1 = require("../install");
15
- core_1.Messages.importMessagesDirectory(__dirname);
16
- const messages = core_1.Messages.loadMessages('@salesforce/plugin-packaging', 'package_install_report');
17
- const installMsgs = core_1.Messages.loadMessages('@salesforce/plugin-packaging', 'package_install');
18
- class Report extends command_1.SfdxCommand {
19
- async run() {
20
- const connection = this.org.getConnection();
21
- const pkgInstallRequest = await packaging_1.SubscriberPackageVersion.getInstallRequest(this.flags.requestid, connection);
22
- install_1.Install.parseStatus(pkgInstallRequest, this.ux, installMsgs, this.org.getUsername());
23
- return pkgInstallRequest;
24
- }
25
- }
26
- exports.Report = Report;
27
- Report.aliases = ['force:package:beta:install:report'];
28
- Report.description = messages.getMessage('cliDescription');
29
- Report.examples = messages.getMessage('examples').split(os.EOL);
30
- Report.requiresUsername = true;
31
- Report.flagsConfig = {
32
- requestid: command_1.flags.id({
33
- char: 'i',
34
- description: messages.getMessage('requestId'),
35
- longDescription: messages.getMessage('requestIdLong'),
36
- required: true,
37
- }),
38
- };
39
- //# sourceMappingURL=report.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"report.js","sourceRoot":"","sources":["../../../../../src/commands/force/package/install/report.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yBAAyB;AACzB,iDAAsE;AACtE,2CAA4C;AAC5C,qDAAoF;AACpF,wCAAuD;AAIvD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,wBAAwB,CAAC,CAAC;AACjG,MAAM,WAAW,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,iBAAiB,CAAC,CAAC;AAE7F,MAAa,MAAO,SAAQ,qBAAW;IAc9B,KAAK,CAAC,GAAG;QACd,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;QAC5C,MAAM,iBAAiB,GAAG,MAAM,oCAAwB,CAAC,iBAAiB,CACxE,IAAI,CAAC,KAAK,CAAC,SAAmB,EAC9B,UAAU,CACX,CAAC;QACF,iBAAc,CAAC,WAAW,CAAC,iBAAiB,EAAE,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;QAE5F,OAAO,iBAAiB,CAAC;IAC3B,CAAC;;AAvBH,wBAwBC;AAvBe,cAAO,GAAG,CAAC,mCAAmC,CAAC,CAAC;AACvC,kBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;AACpD,eAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AACzD,uBAAgB,GAAG,IAAI,CAAC;AACxB,kBAAW,GAAgB;IAChD,SAAS,EAAE,eAAK,CAAC,EAAE,CAAC;QAClB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC;QAC7C,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC;QACrD,QAAQ,EAAE,IAAI;KACf,CAAC;CACH,CAAC"}
@@ -1,20 +0,0 @@
1
- import { FlagsConfig, SfdxCommand, UX } from '@salesforce/command';
2
- import { Messages } from '@salesforce/core';
3
- import { PackagingSObjects } from '@salesforce/packaging';
4
- import { Optional } from '@salesforce/ts-types';
5
- type PackageInstallRequest = PackagingSObjects.PackageInstallRequest;
6
- export declare class Install extends SfdxCommand {
7
- static aliases: string[];
8
- static readonly description: string;
9
- static readonly examples: string[];
10
- static readonly requiresUsername = true;
11
- static readonly flagsConfig: FlagsConfig;
12
- private connection;
13
- private subscriberPackageVersion;
14
- static parseStatus(request: PackageInstallRequest, ux: UX, installMsgs: Messages<string>, username: string, alias?: string): void;
15
- run(): Promise<PackageInstallRequest>;
16
- protected finally(err: Optional<Error>): Promise<void>;
17
- private confirmUpgradeType;
18
- private confirmExternalSites;
19
- }
20
- export {};