@salesforce/plugin-packaging 2.20.5 → 2.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/README.md +36 -29
  2. package/lib/commands/package/bundle/install/list.js +1 -0
  3. package/lib/commands/package/bundle/install/list.js.map +1 -1
  4. package/lib/commands/package/bundle/install/report.js +8 -16
  5. package/lib/commands/package/bundle/install/report.js.map +1 -1
  6. package/lib/commands/package/bundle/install.d.ts +1 -1
  7. package/lib/commands/package/bundle/install.js +42 -20
  8. package/lib/commands/package/bundle/install.js.map +1 -1
  9. package/lib/commands/package/bundle/version/create/list.js +1 -0
  10. package/lib/commands/package/bundle/version/create/list.js.map +1 -1
  11. package/lib/commands/package/bundle/version/create/report.js +7 -0
  12. package/lib/commands/package/bundle/version/create/report.js.map +1 -1
  13. package/lib/commands/package/bundle/version/create.js +44 -18
  14. package/lib/commands/package/bundle/version/create.js.map +1 -1
  15. package/lib/commands/package/update.d.ts +1 -0
  16. package/lib/commands/package/update.js +6 -0
  17. package/lib/commands/package/update.js.map +1 -1
  18. package/messages/bundle_create.md +1 -1
  19. package/messages/bundle_install.md +14 -6
  20. package/messages/bundle_version_create_list.md +1 -1
  21. package/messages/bundle_version_create_report.md +4 -0
  22. package/messages/package_update.md +8 -0
  23. package/messages/package_version_retrieve.md +14 -4
  24. package/oclif.manifest.json +26 -18
  25. package/package.json +9 -9
  26. package/schemas/package-bundle-install-list.json +7 -2
  27. package/schemas/package-bundle-install-report.json +7 -2
  28. package/schemas/package-bundle-install.json +7 -2
  29. package/schemas/package-bundle-version-create-list.json +14 -3
  30. package/schemas/package-bundle-version-create-report.json +14 -3
  31. package/schemas/package-bundle-version-create.json +14 -3
  32. package/schemas/package-version-report.json +51 -13
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Flags, loglevel, orgApiVersionFlagWithDeprecations, SfCommand } from '@salesforce/sf-plugins-core';
17
- import { PackageVersionEvents, BundleSObjects, PackageBundleVersion, } from '@salesforce/packaging';
17
+ import { BundleSObjects, PackageBundleVersion, PackageVersionEvents, } from '@salesforce/packaging';
18
18
  import { Messages, Lifecycle } from '@salesforce/core';
19
19
  import { camelCaseToTitleCase, Duration } from '@salesforce/kit';
20
20
  import { requiredHubFlag } from '../../../../utils/hubFlag.js';
@@ -83,8 +83,7 @@ export class PackageBundlesCreate extends SfCommand {
83
83
  // no async methods
84
84
  // eslint-disable-next-line @typescript-eslint/require-await
85
85
  async (data) => {
86
- if (data.RequestStatus !== BundleSObjects.PkgBundleVersionCreateReqStatus.success &&
87
- data.RequestStatus !== BundleSObjects.PkgBundleVersionCreateReqStatus.error) {
86
+ if (data.RequestStatus !== BundleSObjects.PkgBundleVersionCreateReqStatus.success && data.RequestStatus !== BundleSObjects.PkgBundleVersionCreateReqStatus.error) {
88
87
  const status = messages.getMessage('bundleVersionCreateWaitingStatus', [
89
88
  data.remainingWaitTime.minutes,
90
89
  data.RequestStatus,
@@ -97,25 +96,52 @@ export class PackageBundlesCreate extends SfCommand {
97
96
  }
98
97
  }
99
98
  });
100
- const result = await PackageBundleVersion.create({
101
- ...options,
102
- ...(flags.wait && flags.wait > 0
103
- ? { polling: { timeout: Duration.minutes(flags.wait), frequency: Duration.seconds(5) } }
104
- : undefined),
105
- });
106
- const finalStatusMsg = messages.getMessage('bundleVersionCreateFinalStatus', [result.RequestStatus]);
107
- if (flags.verbose) {
108
- this.log(finalStatusMsg);
99
+ // Start spinner if polling is enabled and not in verbose mode
100
+ const isSpinnerRunning = flags.wait && flags.wait > 0 && !flags.verbose;
101
+ if (isSpinnerRunning) {
102
+ this.spinner.start('Creating bundle version...');
103
+ }
104
+ let result;
105
+ try {
106
+ result = await PackageBundleVersion.create({
107
+ ...options,
108
+ ...(flags.wait && flags.wait > 0
109
+ ? { polling: { timeout: Duration.minutes(flags.wait), frequency: Duration.seconds(5) } }
110
+ : undefined),
111
+ });
112
+ }
113
+ catch (error) {
114
+ // Stop spinner on error
115
+ if (isSpinnerRunning) {
116
+ this.spinner.stop();
117
+ }
118
+ throw error;
109
119
  }
110
- else {
111
- this.spinner.stop(finalStatusMsg);
120
+ // Stop spinner only if it was started - stop it cleanly without a message
121
+ if (isSpinnerRunning) {
122
+ this.spinner.stop();
112
123
  }
113
124
  switch (result.RequestStatus) {
114
- case BundleSObjects.PkgBundleVersionCreateReqStatus.error:
115
- throw messages.createError('multipleErrors', [result.Error?.join('\n') ?? 'Unknown error']);
116
- case BundleSObjects.PkgBundleVersionCreateReqStatus.success:
117
- this.log(messages.getMessage('bundleVersionCreateSuccess', [result.Id]));
125
+ case BundleSObjects.PkgBundleVersionCreateReqStatus.error: {
126
+ // Collect all error messages from both Error array and ValidationError
127
+ const errorMessages = [];
128
+ if (result.Error && result.Error.length > 0) {
129
+ errorMessages.push(...result.Error);
130
+ }
131
+ if (result.ValidationError) {
132
+ errorMessages.push(result.ValidationError);
133
+ }
134
+ const errorText = errorMessages.length > 0
135
+ ? errorMessages.join('\n')
136
+ : 'Unknown error occurred during bundle version creation';
137
+ throw messages.createError('multipleErrors', [errorText]);
138
+ }
139
+ case BundleSObjects.PkgBundleVersionCreateReqStatus.success: {
140
+ // Show the PackageBundleVersionId (1Q8) if available, otherwise show the request ID
141
+ const displayId = result.PackageBundleVersionId || result.Id;
142
+ this.log(`Successfully created bundle version with ID ${displayId}`);
118
143
  break;
144
+ }
119
145
  default:
120
146
  this.log(messages.getMessage('InProgress', [camelCaseToTitleCase(result.RequestStatus), result.Id]));
121
147
  }
@@ -1 +1 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../src/commands/package/bundle/version/create.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,iCAAiC,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC5G,OAAO,EAEL,oBAAoB,EACpB,cAAc,EACd,oBAAoB,GACrB,MAAM,u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ACR,CAAC;YACD;gBACE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,YAAY,EAAE,CAAC,oBAAoB,CAAC,MAAM,CAAC,aAAuB,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACnH,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC"}
@@ -15,6 +15,7 @@ export declare class PackageUpdateCommand extends SfCommand<PackageSaveResult> {
15
15
  description: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
16
  'error-notification-username': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
17
  'enable-app-analytics': import("@oclif/core/interfaces").BooleanFlag<boolean>;
18
+ 'recommended-version-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
19
  };
19
20
  run(): Promise<PackageSaveResult>;
20
21
  }
@@ -56,6 +56,11 @@ export class PackageUpdateCommand extends SfCommand {
56
56
  summary: messages.getMessage('flags.enable-app-analytics.summary'),
57
57
  allowNo: true,
58
58
  }),
59
+ 'recommended-version-id': Flags.string({
60
+ char: 'r',
61
+ summary: messages.getMessage('flags.recommended-version-id.summary'),
62
+ description: messages.getMessage('flags.recommended-version-id.description'),
63
+ }),
59
64
  };
60
65
  async run() {
61
66
  const { flags } = await this.parse(PackageUpdateCommand);
@@ -70,6 +75,7 @@ export class PackageUpdateCommand extends SfCommand {
70
75
  Description: flags.description,
71
76
  PackageErrorUsername: flags['error-notification-username'],
72
77
  AppAnalyticsEnabled: flags['enable-app-analytics'],
78
+ RecommendedVersionId: flags['recommended-version-id'],
73
79
  });
74
80
  this.logSuccess(messages.getMessage('success', [pkg.getId()]));
75
81
  return result;
@@ -1 +1 @@
1
- {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/commands/package/update.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO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YACtB,gBAAgB,EAAE,KAAK,CAAC,OAAO;YAC/B,UAAU,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;YACvE,OAAO,EAAE,MAAM,eAAe,EAAE;SACjC,CAAC,CAAC;QAEH,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC;YAC9B,EAAE,EAAE,GAAG,CAAC,KAAK,EAAE;YACf,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,oBAAoB,EAAE,KAAK,CAAC,6BAA6B,CAAC;YAC1D,mBAAmB,EAAE,KAAK,CAAC,sBAAsB,CAAC;YAClD,oBAAoB,EAAE,KAAK,CAAC,wBAAwB,CAAC;SACtD,CAAC,CAAC;QAEH,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;QAE/D,OAAO,MAAM,CAAC;IAChB,CAAC"}
@@ -5,7 +5,7 @@ Create a package bundle in the Dev Hub org.
5
5
  # description
6
6
 
7
7
  A package bundle is an artifact that contains one or more 2GP managed packages.
8
- A bundle can be listed on AppExchange, installed, or upgraded as a single artifact.
8
+ A bundle can be installed or upgraded as a single artifact.
9
9
 
10
10
  # examples
11
11
 
@@ -8,21 +8,29 @@ Install a specific version of a package bundle in the target org. During develop
8
8
 
9
9
  # examples
10
10
 
11
- Install a package bundle version in a scratch org:
11
+ - Install a package bundle version in a scratch org:
12
12
 
13
- sf package bundle install --bundle MyPkgBundle1@0.1 --target-org my-scratch-org --wait 10
13
+ <%= config.bin %> <%= command.id %> --bundle MyPkgBundle1@0.1 --target-org my-scratch-org --dev-hub-org 00Dxx0000000000 --wait 10
14
+
15
+ - Install using a bundle version ID:
16
+
17
+ <%= config.bin %> <%= command.id %> --bundle 1Q8Wt0000000q1pKAA --target-org my-scratch-org --dev-hub-org 00Dxx0000000000 --wait 10
14
18
 
15
19
  # flags.bundle.summary
16
20
 
17
- Package bundle version to install (format: BundleName@Version).
21
+ Package bundle version to install (format: BundleName@Version or bundle version ID).
18
22
 
19
23
  # flags.target-org.summary
20
24
 
21
25
  Target org for the bundle installation.
22
26
 
23
- # flags.target-dev-hub.summary
27
+ # flags.dev-hub-org.summary
28
+
29
+ Org ID of the Dev Hub org where the bundle was created.
30
+
31
+ # flags.dev-hub-org.description
24
32
 
25
- Username, alias, or org ID of the target dev hub org.
33
+ Specify the Dev Hub org ID directly (such as 00Dxx0000000000).
26
34
 
27
35
  # flags.wait.summary
28
36
 
@@ -55,4 +63,4 @@ Encountered errors installing the bundle! %s
55
63
  # bundleInstallInProgress
56
64
 
57
65
  Bundle installation is currently %s. You can continue to query the status using
58
- sf package bundle install:report -i %s -o %s
66
+ sf package bundle install report -i %s -o %s
@@ -1,6 +1,6 @@
1
1
  # summary
2
2
 
3
- List package version creation requests.
3
+ List package bundle version creation requests.
4
4
 
5
5
  # description
6
6
 
@@ -47,3 +47,7 @@ Created Date
47
47
  # created-by
48
48
 
49
49
  Created By
50
+
51
+ # validation-error
52
+
53
+ Validation Error
@@ -37,3 +37,11 @@ Enable AppExchange App Analytics usage data collection on this managed package a
37
37
  # success
38
38
 
39
39
  Successfully updated the package. %s
40
+
41
+ # flags.recommended-version-id.summary
42
+
43
+ Package version ID that subscribers are notified to install or upgrade to.
44
+
45
+ # flags.recommended-version-id.description
46
+
47
+ Specify the recommended package version for subscribers to install. Subscribers are notified to install the package version ID that you specify. If the subscribers have a different version of the same package installed, they're notified to upgrade to the recommended version.
@@ -1,18 +1,20 @@
1
1
  # summary
2
2
 
3
- Retrieve package metadata for a specified package version. Package metadata can be retrieved for converted second-generation managed package versions only.
3
+ Retrieve package metadata for a specified package version. Package metadata can be retrieved for second-generation managed package versions or unlocked packages only.
4
4
 
5
5
  # description
6
6
 
7
7
  Retrieving a package version downloads the metadata into the directory you specify.
8
8
 
9
- Specify the subscriber package version ID (starts with 04t) and the path to an empty directory when you run this command.
9
+ When you run this command, specify the subscriber package version ID (starts with 04t) and the path to an empty directory.
10
+
11
+ By default, the package version retrieve command is available to 2GP managed packages that were converted from 1GP. To use this command with a managed package created using 2GP (not converted from 1GP) or with an unlocked package, specify IsDevUsePkgZipRequested = true in the Package2VersionCreateRequest Tooling API object. If you run this command and the zip folder with the package version’s source files is missing, confirm that IsDevUsePkgZipRequested is set to true.
10
12
 
11
13
  # examples
12
14
 
13
- - Retrieve package metadata for a converted subscriber package version ID (starts with 04t) into my-folder/ within your Salesforce DX project directory:
15
+ Retrieve package metadata for a converted subscriber package version ID (starts with 04t) into my-directory/ within your Salesforce DX project directory:
14
16
 
15
- <%= config.bin %> <%= command.id %> --package 04t... --output-dir my-folder –-target-dev-hub my-devhub
17
+ <%= config.bin %> <%= command.id %> --package 04tXXX --output-dir my-directory/ --target-dev-hub devhub@example.com
16
18
 
17
19
  # flags.package.summary
18
20
 
@@ -22,6 +24,14 @@ Subscriber package version ID (starts with 04t).
22
24
 
23
25
  Path within your Salesforce DX project directory in which to download the metadata. This directory must be empty.
24
26
 
27
+ # flags.target-dev-hub.summary
28
+
29
+ Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.
30
+
31
+ # flags.api-version.summary
32
+
33
+ Override the API version used for requests made by this command.
34
+
25
35
  # headers.fullName
26
36
 
27
37
  FULL NAME
@@ -1022,6 +1022,15 @@
1022
1022
  "summary": "Enable AppExchange App Analytics usage data collection on this managed package and its components.",
1023
1023
  "allowNo": true,
1024
1024
  "type": "boolean"
1025
+ },
1026
+ "recommended-version-id": {
1027
+ "char": "r",
1028
+ "description": "Specify the recommended package version for subscribers to install. Subscribers are notified to install the package version ID that you specify. If the subscribers have a different version of the same package installed, they're notified to upgrade to the recommended version.",
1029
+ "name": "recommended-version-id",
1030
+ "summary": "Package version ID that subscribers are notified to install or upgrade to.",
1031
+ "hasDynamicHelp": false,
1032
+ "multiple": false,
1033
+ "type": "option"
1025
1034
  }
1026
1035
  },
1027
1036
  "hasDynamicHelp": true,
@@ -1056,7 +1065,7 @@
1056
1065
  "package:bundle:create": {
1057
1066
  "aliases": [],
1058
1067
  "args": {},
1059
- "description": "A package bundle is an artifact that contains one or more 2GP managed packages.\nA bundle can be listed on AppExchange, installed, or upgraded as a single artifact.",
1068
+ "description": "A package bundle is an artifact that contains one or more 2GP managed packages.\nA bundle can be installed or upgraded as a single artifact.",
1060
1069
  "examples": [
1061
1070
  "Create a package bundle in the Dev Hub org; uses the Dev Hub org with the username devhub@example.com:\n\nsf package bundle create --name \"Your bundle name\" --description \"Your bundle description\" --target-dev-hub devhub@example.com"
1062
1071
  ],
@@ -1272,7 +1281,8 @@
1272
1281
  "args": {},
1273
1282
  "description": "Install a specific version of a package bundle in the target org. During developer preview, bundles can be installed only in scratch orgs.",
1274
1283
  "examples": [
1275
- "Install a package bundle version in a scratch org:\n\nsf package bundle install --bundle MyPkgBundle1@0.1 --target-org my-scratch-org --wait 10"
1284
+ "Install a package bundle version in a scratch org:\n<%= config.bin %> <%= command.id %> --bundle MyPkgBundle1@0.1 --target-org my-scratch-org --dev-hub-org 00Dxx0000000000 --wait 10",
1285
+ "Install using a bundle version ID:\n<%= config.bin %> <%= command.id %> --bundle 1Q8Wt0000000q1pKAA --target-org my-scratch-org --dev-hub-org 00Dxx0000000000 --wait 10"
1276
1286
  ],
1277
1287
  "flags": {
1278
1288
  "json": {
@@ -1304,7 +1314,7 @@
1304
1314
  "char": "b",
1305
1315
  "name": "bundle",
1306
1316
  "required": true,
1307
- "summary": "Package bundle version to install (format: BundleName@Version).",
1317
+ "summary": "Package bundle version to install (format: BundleName@Version or bundle version ID).",
1308
1318
  "hasDynamicHelp": false,
1309
1319
  "multiple": false,
1310
1320
  "type": "option"
@@ -1335,17 +1345,13 @@
1335
1345
  "multiple": false,
1336
1346
  "type": "option"
1337
1347
  },
1338
- "target-dev-hub": {
1339
- "aliases": [
1340
- "targetdevhubusername"
1341
- ],
1342
- "char": "v",
1343
- "deprecateAliases": true,
1344
- "name": "target-dev-hub",
1345
- "noCacheDefault": true,
1348
+ "dev-hub-org": {
1349
+ "char": "d",
1350
+ "description": "Specify the Dev Hub org ID directly (such as 00Dxx0000000000).",
1351
+ "name": "dev-hub-org",
1346
1352
  "required": true,
1347
- "summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
1348
- "hasDynamicHelp": true,
1353
+ "summary": "Org ID of the Dev Hub org where the bundle was created.",
1354
+ "hasDynamicHelp": false,
1349
1355
  "multiple": false,
1350
1356
  "type": "option"
1351
1357
  },
@@ -3593,9 +3599,9 @@
3593
3599
  "package:version:retrieve": {
3594
3600
  "aliases": [],
3595
3601
  "args": {},
3596
- "description": "Retrieving a package version downloads the metadata into the directory you specify.\n\nSpecify the subscriber package version ID (starts with 04t) and the path to an empty directory when you run this command.",
3602
+ "description": "Retrieving a package version downloads the metadata into the directory you specify.\n\nWhen you run this command, specify the subscriber package version ID (starts with 04t) and the path to an empty directory.\n\nBy default, the package version retrieve command is available to 2GP managed packages that were converted from 1GP. To use this command with a managed package created using 2GP (not converted from 1GP) or with an unlocked package, specify IsDevUsePkgZipRequested = true in the Package2VersionCreateRequest Tooling API object. If you run this command and the zip folder with the package version’s source files is missing, confirm that IsDevUsePkgZipRequested is set to true.",
3597
3603
  "examples": [
3598
- "Retrieve package metadata for a converted subscriber package version ID (starts with 04t) into my-folder/ within your Salesforce DX project directory:\n<%= config.bin %> <%= command.id %> --package 04t... --output-dir my-folder –-target-dev-hub my-devhub"
3604
+ "Retrieve package metadata for a converted subscriber package version ID (starts with 04t) into my-directory/ within your Salesforce DX project directory:\n\n <%= config.bin %> <%= command.id %> --package 04tXXX --output-dir my-directory/ --target-dev-hub devhub@example.com"
3599
3605
  ],
3600
3606
  "flags": {
3601
3607
  "json": {
@@ -3675,7 +3681,7 @@
3675
3681
  "pluginName": "@salesforce/plugin-packaging",
3676
3682
  "pluginType": "core",
3677
3683
  "strict": true,
3678
- "summary": "Retrieve package metadata for a specified package version. Package metadata can be retrieved for converted second-generation managed package versions only.",
3684
+ "summary": "Retrieve package metadata for a specified package version. Package metadata can be retrieved for second-generation managed package versions or unlocked packages only.",
3679
3685
  "enableJsonFlag": true,
3680
3686
  "requiresProject": true,
3681
3687
  "isESM": true,
@@ -4422,6 +4428,7 @@
4422
4428
  "multiple": false,
4423
4429
  "options": [
4424
4430
  "Queued",
4431
+ "InProgress",
4425
4432
  "Success",
4426
4433
  "Error"
4427
4434
  ],
@@ -5839,6 +5846,7 @@
5839
5846
  "multiple": false,
5840
5847
  "options": [
5841
5848
  "Queued",
5849
+ "InProgress",
5842
5850
  "Success",
5843
5851
  "Error"
5844
5852
  ],
@@ -5866,7 +5874,7 @@
5866
5874
  "pluginType": "core",
5867
5875
  "state": "beta",
5868
5876
  "strict": true,
5869
- "summary": "List package version creation requests.",
5877
+ "summary": "List package bundle version creation requests.",
5870
5878
  "enableJsonFlag": true,
5871
5879
  "isESM": true,
5872
5880
  "relativePath": [
@@ -6218,5 +6226,5 @@
6218
6226
  ]
6219
6227
  }
6220
6228
  },
6221
- "version": "2.20.5"
6229
+ "version": "2.21.2"
6222
6230
  }
package/package.json CHANGED
@@ -1,27 +1,27 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-packaging",
3
3
  "description": "SF plugin that support Salesforce Packaging Platform",
4
- "version": "2.20.5",
4
+ "version": "2.21.2",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
8
8
  "@oclif/core": "^4",
9
- "@salesforce/core": "^8.23.1",
9
+ "@salesforce/core": "^8.23.2",
10
10
  "@salesforce/kit": "^3.2.4",
11
- "@salesforce/packaging": "^4.14.1",
11
+ "@salesforce/packaging": "^4.16.0",
12
12
  "@salesforce/sf-plugins-core": "^12.2.4",
13
13
  "chalk": "^5.6.2"
14
14
  },
15
15
  "devDependencies": {
16
- "@oclif/plugin-command-snapshot": "^5.3.5",
16
+ "@oclif/plugin-command-snapshot": "^5.3.7",
17
17
  "@salesforce/cli-plugins-testkit": "^5.3.41",
18
18
  "@salesforce/dev-scripts": "^11.0.4",
19
- "@salesforce/plugin-command-reference": "^3.1.68",
19
+ "@salesforce/plugin-command-reference": "^3.1.74",
20
20
  "eslint-plugin-sf-plugin": "^1.20.32",
21
21
  "minimatch": "^10.0.3",
22
- "oclif": "^4.22.22",
22
+ "oclif": "^4.22.32",
23
23
  "ts-node": "^10.9.2",
24
- "typescript": "^5.9.2"
24
+ "typescript": "^5.9.3"
25
25
  },
26
26
  "config": {},
27
27
  "engines": {
@@ -248,7 +248,7 @@
248
248
  "exports": "./lib/index.js",
249
249
  "type": "module",
250
250
  "sfdx": {
251
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/2.20.5.crt",
252
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/2.20.5.sig"
251
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/2.21.2.crt",
252
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/2.21.2.sig"
253
253
  }
254
254
  }
@@ -52,7 +52,12 @@
52
52
  },
53
53
  "BundleSObjects.PkgBundleVersionInstallReqStatus": {
54
54
  "type": "string",
55
- "enum": ["Queued", "Success", "Error"]
55
+ "enum": [
56
+ "Queued",
57
+ "InProgress",
58
+ "Success",
59
+ "Error"
60
+ ]
56
61
  }
57
62
  }
58
- }
63
+ }
@@ -52,7 +52,12 @@
52
52
  },
53
53
  "BundleSObjects.PkgBundleVersionInstallReqStatus": {
54
54
  "type": "string",
55
- "enum": ["Queued", "Success", "Error"]
55
+ "enum": [
56
+ "Queued",
57
+ "InProgress",
58
+ "Success",
59
+ "Error"
60
+ ]
56
61
  }
57
62
  }
58
- }
63
+ }
@@ -46,7 +46,12 @@
46
46
  },
47
47
  "BundleSObjects.PkgBundleVersionInstallReqStatus": {
48
48
  "type": "string",
49
- "enum": ["Queued", "Success", "Error"]
49
+ "enum": [
50
+ "Queued",
51
+ "InProgress",
52
+ "Success",
53
+ "Error"
54
+ ]
50
55
  }
51
56
  }
52
- }
57
+ }
@@ -33,6 +33,9 @@
33
33
  "type": "string"
34
34
  }
35
35
  },
36
+ "ValidationError": {
37
+ "type": "string"
38
+ },
36
39
  "PackageBundleId": {
37
40
  "type": "string"
38
41
  },
@@ -49,7 +52,10 @@
49
52
  "type": "string"
50
53
  },
51
54
  "Ancestor": {
52
- "type": ["string", "null"]
55
+ "type": [
56
+ "string",
57
+ "null"
58
+ ]
53
59
  }
54
60
  },
55
61
  "required": [
@@ -67,7 +73,12 @@
67
73
  },
68
74
  "BundleSObjects.PkgBundleVersionCreateReqStatus": {
69
75
  "type": "string",
70
- "enum": ["Queued", "Success", "Error"]
76
+ "enum": [
77
+ "Queued",
78
+ "InProgress",
79
+ "Success",
80
+ "Error"
81
+ ]
71
82
  }
72
83
  }
73
- }
84
+ }
@@ -33,6 +33,9 @@
33
33
  "type": "string"
34
34
  }
35
35
  },
36
+ "ValidationError": {
37
+ "type": "string"
38
+ },
36
39
  "PackageBundleId": {
37
40
  "type": "string"
38
41
  },
@@ -49,7 +52,10 @@
49
52
  "type": "string"
50
53
  },
51
54
  "Ancestor": {
52
- "type": ["string", "null"]
55
+ "type": [
56
+ "string",
57
+ "null"
58
+ ]
53
59
  }
54
60
  },
55
61
  "required": [
@@ -67,7 +73,12 @@
67
73
  },
68
74
  "BundleSObjects.PkgBundleVersionCreateReqStatus": {
69
75
  "type": "string",
70
- "enum": ["Queued", "Success", "Error"]
76
+ "enum": [
77
+ "Queued",
78
+ "InProgress",
79
+ "Success",
80
+ "Error"
81
+ ]
71
82
  }
72
83
  }
73
- }
84
+ }
@@ -27,6 +27,9 @@
27
27
  "type": "string"
28
28
  }
29
29
  },
30
+ "ValidationError": {
31
+ "type": "string"
32
+ },
30
33
  "PackageBundleId": {
31
34
  "type": "string"
32
35
  },
@@ -43,7 +46,10 @@
43
46
  "type": "string"
44
47
  },
45
48
  "Ancestor": {
46
- "type": ["string", "null"]
49
+ "type": [
50
+ "string",
51
+ "null"
52
+ ]
47
53
  }
48
54
  },
49
55
  "required": [
@@ -61,7 +67,12 @@
61
67
  },
62
68
  "BundleSObjects.PkgBundleVersionCreateReqStatus": {
63
69
  "type": "string",
64
- "enum": ["Queued", "Success", "Error"]
70
+ "enum": [
71
+ "Queued",
72
+ "InProgress",
73
+ "Success",
74
+ "Error"
75
+ ]
65
76
  }
66
77
  }
67
- }
78
+ }