Skip to content

Commit afd0ed9

Browse files
committed
chore: updates from devScripts
1 parent 1603852 commit afd0ed9

File tree

10 files changed

+717
-809
lines changed

10 files changed

+717
-809
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
"author": "Salesforce",
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {
8-
"@oclif/core": "^3",
9-
"@salesforce/core": "^6.7.6",
8+
"@oclif/core": "^4",
9+
"@salesforce/core": "^8.2.7",
1010
"@salesforce/kit": "^3.2.3",
11-
"@salesforce/sf-plugins-core": "^5.0.1",
12-
"@salesforce/ts-types": "^2.0.10",
11+
"@salesforce/sf-plugins-core": "^11.2.4",
12+
"@salesforce/ts-types": "^2.0.11",
1313
"chalk": "^4",
1414
"jsforce": "^2.0.0-beta.29",
1515
"tslib": "^2"
1616
},
1717
"devDependencies": {
18-
"@oclif/plugin-command-snapshot": "^5",
18+
"@oclif/plugin-command-snapshot": "^5.2.3",
1919
"@oclif/test": "^3",
20-
"@salesforce/cli-plugins-testkit": "^5",
21-
"@salesforce/dev-scripts": "^8",
20+
"@salesforce/cli-plugins-testkit": "^5.3.20",
21+
"@salesforce/dev-scripts": "^10.2.11",
2222
"@salesforce/plugin-command-reference": "^3.1.38",
2323
"@salesforce/ts-sinon": "^1.4.30",
2424
"@swc/cli": "^0.5.2",

src/common/outputService/aorOutputService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export type AorOutputFlags = {
2424
*
2525
* @author JuanStenghele-sf
2626
*/
27-
export interface AorOutputService extends OutputService {
27+
export type AorOutputService = {
2828
/**
2929
* Prints the status of the given aor
3030
*/
@@ -44,7 +44,7 @@ export interface AorOutputService extends OutputService {
4444
* Sets the aor id
4545
*/
4646
getStatus(): AsyncOperationStatus | undefined;
47-
}
47+
} & OutputService
4848

4949
/**
5050
* Abstract class that implements AorOutputService interface

src/common/outputService/deploymentResultOutputService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ import { AbstractOutputService, OutputFlags, OutputService } from './outputServi
1212
/**
1313
* Service interface for printing the output of a deployment result.
1414
*/
15-
export interface DeploymentResultOutputService extends OutputService {
15+
export type DeploymentResultOutputService = {
1616
/**
1717
* Prints the deployment result.
1818
*/
1919
printDeploymentResult(): void;
20-
}
20+
} & OutputService
2121

2222
export abstract class AbstractDeploymentResultOutputService<T extends OutputFlags>
2323
extends AbstractOutputService<T>

src/common/outputService/outputService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type OutputFlags = {
1919
*
2020
* @author JuanStenghele-sf
2121
*/
22-
export interface OutputService {
22+
export type OutputService = {
2323
/**
2424
* Prints a summary of the operation being done
2525
*/

src/common/outputService/promoteOutputService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export type PromoteOutputFlags = {
2525
*
2626
* @author JuanStenghele-sf
2727
*/
28-
export interface PromoteOutputService extends ResumeOutputService {}
28+
export type PromoteOutputService = {} & ResumeOutputService
2929

3030
/**
3131
* Abstract class that implements PromoteOutputService interface

src/common/outputService/reportOutputService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'proj
2222
/**
2323
* Interface for output methods for report operations.
2424
*/
25-
export interface ReportOutputService extends DeploymentResultOutputService {}
25+
export type ReportOutputService = {} & DeploymentResultOutputService
2626

2727
/**
2828
* Base class.

src/common/outputService/resumeOutputService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import { AorOutputService, AorOutputFlags, AbstractAorOutputService } from './ao
1919
*
2020
* @author JuanStenghele-sf
2121
*/
22-
export interface ResumeOutputService extends AorOutputService {
22+
export type ResumeOutputService = {
2323
displayEndResults(): void;
24-
}
24+
} & AorOutputService
2525

2626
/**
2727
* Abstract class that implements ResumeOutputService interface

src/common/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ export enum TestLevel {
4141
RunAllTestsInOrg = 'RunAllTestsInOrg',
4242
}
4343

44-
export interface ApiError extends Error {
44+
export type ApiError = {
4545
errorCode: string;
46-
}
46+
} & Error
4747

48-
export interface ApiPromoteResponse {
48+
export type ApiPromoteResponse = {
4949
jobId: string;
5050
}
5151

src/streamer/doceMonitor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { AnyJson } from '@salesforce/ts-types';
1010
/**
1111
* Common interface used to monitor the progress of something in the DevOps Center.
1212
**/
13-
export default interface DoceMonitor {
13+
type DoceMonitor = {
1414
monitor(): Promise<void | AnyJson>;
1515
}
16+
export default DoceMonitor

0 commit comments

Comments
 (0)