Skip to content

Commit

Permalink
chore: updates from devScripts
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-cli-bot committed Dec 8, 2024
1 parent 0bd5bac commit 1e7340c
Show file tree
Hide file tree
Showing 10 changed files with 727 additions and 820 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
"author": "Salesforce",
"bugs": "https://github.com/forcedotcom/cli/issues",
"dependencies": {
"@oclif/core": "^3",
"@salesforce/core": "^6.7.6",
"@oclif/core": "^4",
"@salesforce/core": "^8.2.7",
"@salesforce/kit": "^3.2.3",
"@salesforce/sf-plugins-core": "^5.0.1",
"@salesforce/ts-types": "^2.0.10",
"@salesforce/sf-plugins-core": "^11.2.4",
"@salesforce/ts-types": "^2.0.11",
"chalk": "^4",
"jsforce": "^2.0.0-beta.29",
"tslib": "^2"
},
"devDependencies": {
"@oclif/plugin-command-snapshot": "^5",
"@oclif/plugin-command-snapshot": "^5.2.3",
"@oclif/test": "^3",
"@salesforce/cli-plugins-testkit": "^5",
"@salesforce/dev-scripts": "^8",
"@salesforce/cli-plugins-testkit": "^5.3.20",
"@salesforce/dev-scripts": "^10.2.11",
"@salesforce/plugin-command-reference": "^3.1.34",
"@salesforce/ts-sinon": "^1.4.30",
"@swc/cli": "^0.5.1",
Expand Down
4 changes: 2 additions & 2 deletions src/common/outputService/aorOutputService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export type AorOutputFlags = {
*
* @author JuanStenghele-sf
*/
export interface AorOutputService extends OutputService {
export type AorOutputService = {
/**
* Prints the status of the given aor
*/
Expand All @@ -44,7 +44,7 @@ export interface AorOutputService extends OutputService {
* Sets the aor id
*/
getStatus(): AsyncOperationStatus | undefined;
}
} & OutputService

/**
* Abstract class that implements AorOutputService interface
Expand Down
4 changes: 2 additions & 2 deletions src/common/outputService/deploymentResultOutputService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import { AbstractOutputService, OutputFlags, OutputService } from './outputServi
/**
* Service interface for printing the output of a deployment result.
*/
export interface DeploymentResultOutputService extends OutputService {
export type DeploymentResultOutputService = {
/**
* Prints the deployment result.
*/
printDeploymentResult(): void;
}
} & OutputService

export abstract class AbstractDeploymentResultOutputService<T extends OutputFlags>
extends AbstractOutputService<T>
Expand Down
2 changes: 1 addition & 1 deletion src/common/outputService/outputService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type OutputFlags = {
*
* @author JuanStenghele-sf
*/
export interface OutputService {
export type OutputService = {
/**
* Prints a summary of the operation being done
*/
Expand Down
2 changes: 1 addition & 1 deletion src/common/outputService/promoteOutputService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export type PromoteOutputFlags = {
*
* @author JuanStenghele-sf
*/
export interface PromoteOutputService extends ResumeOutputService {}
export type PromoteOutputService = {} & ResumeOutputService

/**
* Abstract class that implements PromoteOutputService interface
Expand Down
2 changes: 1 addition & 1 deletion src/common/outputService/reportOutputService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'proj
/**
* Interface for output methods for report operations.
*/
export interface ReportOutputService extends DeploymentResultOutputService {}
export type ReportOutputService = {} & DeploymentResultOutputService

/**
* Base class.
Expand Down
4 changes: 2 additions & 2 deletions src/common/outputService/resumeOutputService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import { AorOutputService, AorOutputFlags, AbstractAorOutputService } from './ao
*
* @author JuanStenghele-sf
*/
export interface ResumeOutputService extends AorOutputService {
export type ResumeOutputService = {
displayEndResults(): void;
}
} & AorOutputService

/**
* Abstract class that implements ResumeOutputService interface
Expand Down
6 changes: 3 additions & 3 deletions src/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ export enum TestLevel {
RunAllTestsInOrg = 'RunAllTestsInOrg',
}

export interface ApiError extends Error {
export type ApiError = {
errorCode: string;
}
} & Error

export interface ApiPromoteResponse {
export type ApiPromoteResponse = {
jobId: string;
}

Expand Down
3 changes: 2 additions & 1 deletion src/streamer/doceMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { AnyJson } from '@salesforce/ts-types';
/**
* Common interface used to monitor the progress of something in the DevOps Center.
**/
export default interface DoceMonitor {
type DoceMonitor = {
monitor(): Promise<void | AnyJson>;
}
export default DoceMonitor
Loading

0 comments on commit 1e7340c

Please sign in to comment.