Skip to content

Commit

Permalink
[fix] activity parameters type
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-platform committed May 23, 2024
1 parent 719d022 commit a6fff55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/model/Activity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export type ActivityQueryParams = {
environmentId?: string;
};

type ActivityParameters = {
[k: string]: string | null | ActivityParameters;
};

export default class Activity extends Ressource {
readonly RESULT_SUCCESS = "success";
readonly RESULT_FAILURE = "failure";
Expand All @@ -35,7 +39,7 @@ export default class Activity extends Ressource {
cancelled_at: string;
environments: string[];
completed_at: string;
parameters: string[];
parameters: ActivityParameters;
project: string;
state: string;
result: string;
Expand All @@ -57,7 +61,7 @@ export default class Activity extends Ressource {
this.cancelled_at = "";
this.environments = [];
this.completed_at = "";
this.parameters = [];
this.parameters = {};
this.project = "";
this.state = "";
this.result = "";
Expand Down
1 change: 1 addition & 0 deletions src/model/Deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export type RoutesRedirectInfo = {
ssi?: {
enabled: boolean;
};
upstream?: string;
};

export type DeploymentRoutes = Record<string, RoutesRedirectInfo>;
Expand Down

0 comments on commit a6fff55

Please sign in to comment.