devops-core-octopus
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,7 +0,7 @@ | ||
import { AxiosInstance } from "axios"; | ||
import { AxiosInstance, AxiosResponse } from "axios"; | ||
import { OctopusApi } from "./octopus-api"; | ||
export declare class Dashboard extends OctopusApi { | ||
constructor(instance: AxiosInstance); | ||
get(spaceId: string): Promise<import("axios").AxiosResponse<any>>; | ||
getDynamic(spaceId: string): Promise<import("axios").AxiosResponse<any>>; | ||
get(spaceId: string): Promise<AxiosResponse>; | ||
getDynamic(spaceId: string): Promise<AxiosResponse>; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { AxiosInstance } from "axios"; | ||
import { AxiosInstance, AxiosResponse } from "axios"; | ||
import { DeploymentProcessInterface } from "../interfaces/octopus"; | ||
@@ -7,6 +7,6 @@ import { PagerInterface } from "../interfaces/pager"; | ||
constructor(instance: AxiosInstance); | ||
all(spaceId: string, pager?: PagerInterface): Promise<import("axios").AxiosResponse<any>>; | ||
getTemplate(spaceId: string, deploymentProcessId: string, releaseId: string, channelId: string): Promise<import("axios").AxiosResponse<any>>; | ||
get(spaceId: string, deploymentProcessId: string): Promise<import("axios").AxiosResponse<any>>; | ||
update(spaceId: string, deploymentProcessId: string, deploymentProcess: DeploymentProcessInterface): Promise<import("axios").AxiosResponse<any>>; | ||
all(spaceId: string, pager?: PagerInterface): Promise<AxiosResponse>; | ||
getTemplate(spaceId: string, deploymentProcessId: string, releaseId: string, channelId: string): Promise<AxiosResponse>; | ||
get(spaceId: string, deploymentProcessId: string): Promise<AxiosResponse>; | ||
update(spaceId: string, deploymentProcessId: string, deploymentProcess: DeploymentProcessInterface): Promise<AxiosResponse>; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { AxiosInstance } from "axios"; | ||
import { AxiosInstance, AxiosResponse } from "axios"; | ||
import { DeploymentInterface } from "../interfaces/octopus"; | ||
@@ -7,6 +7,6 @@ import { PagerInterface } from "../interfaces/pager"; | ||
constructor(instance: AxiosInstance); | ||
all(spaceId: string, pager?: PagerInterface): Promise<import("axios").AxiosResponse<any>>; | ||
create(spaceId: string, deployment: DeploymentInterface): Promise<import("axios").AxiosResponse<any>>; | ||
delete(spaceId: string, deploymentId: string): Promise<import("axios").AxiosResponse<any>>; | ||
get(spaceId: string, deploymentId: string): Promise<import("axios").AxiosResponse<any>>; | ||
all(spaceId: string, pager?: PagerInterface): Promise<AxiosResponse>; | ||
create(spaceId: string, deployment: DeploymentInterface): Promise<AxiosResponse>; | ||
delete(spaceId: string, deploymentId: string): Promise<AxiosResponse>; | ||
get(spaceId: string, deploymentId: string): Promise<AxiosResponse>; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { AxiosInstance } from "axios"; | ||
import { AxiosInstance, AxiosResponse } from "axios"; | ||
import { PagerInterface } from "../interfaces/pager"; | ||
@@ -7,9 +7,9 @@ import { EnvironmentInterface } from "../interfaces/octopus"; | ||
constructor(instance: AxiosInstance); | ||
all(spaceId: string, pager?: PagerInterface): Promise<import("axios").AxiosResponse<any>>; | ||
create(spaceId: string, environment: EnvironmentInterface): Promise<import("axios").AxiosResponse<any>>; | ||
getSummary(spaceId: string): Promise<import("axios").AxiosResponse<any>>; | ||
update(spaceId: string, environmentId: string, environment: EnvironmentInterface): Promise<import("axios").AxiosResponse<any>>; | ||
delete(spaceId: string, environmentId: string): Promise<import("axios").AxiosResponse<any>>; | ||
get(spaceId: string, environmentId: string): Promise<import("axios").AxiosResponse<any>>; | ||
getMachines(spaceId: string, environmentId: string): Promise<import("axios").AxiosResponse<any>>; | ||
all(spaceId: string, pager?: PagerInterface): Promise<AxiosResponse>; | ||
create(spaceId: string, environment: EnvironmentInterface): Promise<AxiosResponse>; | ||
getSummary(spaceId: string): Promise<AxiosResponse>; | ||
update(spaceId: string, environmentId: string, environment: EnvironmentInterface): Promise<AxiosResponse>; | ||
delete(spaceId: string, environmentId: string): Promise<AxiosResponse>; | ||
get(spaceId: string, environmentId: string): Promise<AxiosResponse>; | ||
getMachines(spaceId: string, environmentId: string): Promise<AxiosResponse>; | ||
} |
@@ -1,6 +0,6 @@ | ||
import { AxiosInstance } from "axios"; | ||
import { AxiosInstance, AxiosResponse } from "axios"; | ||
import { OctopusApi } from "./octopus-api"; | ||
export declare class Progression extends OctopusApi { | ||
constructor(instance: AxiosInstance); | ||
get(spaceId: string, progressionId: string): Promise<import("axios").AxiosResponse<any>>; | ||
get(spaceId: string, progressionId: string): Promise<AxiosResponse>; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { AxiosInstance } from "axios"; | ||
import { AxiosInstance, AxiosResponse } from "axios"; | ||
import { ProjectGroupInterface } from "../interfaces/octopus"; | ||
@@ -7,8 +7,8 @@ import { PagerInterface } from "../interfaces/pager"; | ||
constructor(instance: AxiosInstance); | ||
all(spaceId: string, pager?: PagerInterface): Promise<import("axios").AxiosResponse<any>>; | ||
create(spaceId: string, projectGroup: ProjectGroupInterface): Promise<import("axios").AxiosResponse<any>>; | ||
update(spaceId: string, projectGroupId: string, projectGroup: ProjectGroupInterface): Promise<import("axios").AxiosResponse<any>>; | ||
delete(spaceId: string, projectGroupId: string): Promise<import("axios").AxiosResponse<any>>; | ||
get(spaceId: string, projectGroupId: string): Promise<import("axios").AxiosResponse<any>>; | ||
getProjects(spaceId: string, projectGroupId: string): Promise<import("axios").AxiosResponse<any>>; | ||
all(spaceId: string, pager?: PagerInterface): Promise<AxiosResponse>; | ||
create(spaceId: string, projectGroup: ProjectGroupInterface): Promise<AxiosResponse>; | ||
update(spaceId: string, projectGroupId: string, projectGroup: ProjectGroupInterface): Promise<AxiosResponse>; | ||
delete(spaceId: string, projectGroupId: string): Promise<AxiosResponse>; | ||
get(spaceId: string, projectGroupId: string): Promise<AxiosResponse>; | ||
getProjects(spaceId: string, projectGroupId: string): Promise<AxiosResponse>; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { AxiosInstance } from "axios"; | ||
import { AxiosInstance, AxiosResponse } from "axios"; | ||
import { ProjectInterface } from "../interfaces/octopus"; | ||
@@ -7,8 +7,8 @@ import { PagerInterface } from "../interfaces/pager"; | ||
constructor(instance: AxiosInstance); | ||
all(spaceId: string, pager?: PagerInterface): Promise<import("axios").AxiosResponse<any>>; | ||
create(spaceId: string, project: ProjectInterface): Promise<import("axios").AxiosResponse<any>>; | ||
update(spaceId: string, projectId: string, project: ProjectInterface): Promise<import("axios").AxiosResponse<any>>; | ||
delete(spaceId: string, projectId: string): Promise<import("axios").AxiosResponse<any>>; | ||
getMetaData(spaceId: string, projectId: string): Promise<import("axios").AxiosResponse<any>>; | ||
getSummary(spaceId: string, projectId: string): Promise<import("axios").AxiosResponse<any>>; | ||
all(spaceId: string, pager?: PagerInterface): Promise<AxiosResponse>; | ||
create(spaceId: string, project: ProjectInterface): Promise<AxiosResponse>; | ||
update(spaceId: string, projectId: string, project: ProjectInterface): Promise<AxiosResponse>; | ||
delete(spaceId: string, projectId: string): Promise<AxiosResponse>; | ||
getMetaData(spaceId: string, projectId: string): Promise<AxiosResponse>; | ||
getSummary(spaceId: string, projectId: string): Promise<AxiosResponse>; | ||
} |
@@ -1,16 +0,16 @@ | ||
import { AxiosInstance } from "axios"; | ||
import { AxiosInstance, AxiosResponse } from "axios"; | ||
import { ReleaseInterface } from "../interfaces/octopus"; | ||
import { PagedObject, PagerInterface } from "../interfaces/pager"; | ||
import { PagerInterface } from "../interfaces/pager"; | ||
import { OctopusApi } from "./octopus-api"; | ||
export declare class Releases extends OctopusApi { | ||
constructor(instance: AxiosInstance); | ||
all(spaceId: string, pager?: PagerInterface): Promise<import("axios").AxiosResponse<PagedObject<ReleaseInterface>>>; | ||
create(spaceId: string, release: ReleaseInterface): Promise<import("axios").AxiosResponse<any>>; | ||
get(spaceId: string, releaseId: string): Promise<import("axios").AxiosResponse<ReleaseInterface>>; | ||
update(spaceId: string, releaseId: string, release: ReleaseInterface): Promise<import("axios").AxiosResponse<any>>; | ||
delete(spaceId: string, releaseId: string): Promise<import("axios").AxiosResponse<any>>; | ||
getDeployments(spaceId: string, releaseId: string): Promise<import("axios").AxiosResponse<any>>; | ||
getProgression(spaceId: string, releaseId: string): Promise<import("axios").AxiosResponse<any>>; | ||
getByProject(spaceId: string, projectId: string, pager?: PagerInterface): Promise<import("axios").AxiosResponse<any>>; | ||
getByVersion(spaceId: string, projectId: string, version: string): Promise<import("axios").AxiosResponse<any>>; | ||
all(spaceId: string, pager?: PagerInterface): Promise<AxiosResponse>; | ||
create(spaceId: string, release: ReleaseInterface): Promise<AxiosResponse>; | ||
get(spaceId: string, releaseId: string): Promise<AxiosResponse>; | ||
update(spaceId: string, releaseId: string, release: ReleaseInterface): Promise<AxiosResponse>; | ||
delete(spaceId: string, releaseId: string): Promise<AxiosResponse>; | ||
getDeployments(spaceId: string, releaseId: string): Promise<AxiosResponse>; | ||
getProgression(spaceId: string, releaseId: string): Promise<AxiosResponse>; | ||
getByProject(spaceId: string, projectId: string, pager?: PagerInterface): Promise<AxiosResponse>; | ||
getByVersion(spaceId: string, projectId: string, version: string): Promise<AxiosResponse>; | ||
} |
@@ -1,13 +0,13 @@ | ||
import { AxiosInstance } from "axios"; | ||
import { SpaceInterface, SpaceSearchResultInterface } from "../interfaces/octopus"; | ||
import { PagedObject, PagerInterface } from "../interfaces/pager"; | ||
import { AxiosInstance, AxiosResponse } from "axios"; | ||
import { SpaceInterface } from "../interfaces/octopus"; | ||
import { PagerInterface } from "../interfaces/pager"; | ||
import { OctopusApi } from "./octopus-api"; | ||
export declare class Spaces extends OctopusApi { | ||
constructor(instance: AxiosInstance); | ||
create(space: SpaceInterface): Promise<import("axios").AxiosResponse<any>>; | ||
delete(spaceId: string): Promise<import("axios").AxiosResponse<any>>; | ||
get(spaceId: string): Promise<import("axios").AxiosResponse<SpaceInterface>>; | ||
all(pager?: PagerInterface): Promise<import("axios").AxiosResponse<SpaceInterface[]>> | Promise<import("axios").AxiosResponse<PagedObject<SpaceInterface>>>; | ||
search(spaceId: string, keyword: string): Promise<import("axios").AxiosResponse<SpaceSearchResultInterface[]>>; | ||
update(spaceId: string, space: SpaceInterface): Promise<import("axios").AxiosResponse<any>>; | ||
create(space: SpaceInterface): Promise<AxiosResponse>; | ||
delete(spaceId: string): Promise<AxiosResponse>; | ||
get(spaceId: string): Promise<AxiosResponse>; | ||
all(pager?: PagerInterface): Promise<AxiosResponse>; | ||
search(spaceId: string, keyword: string): Promise<AxiosResponse>; | ||
update(spaceId: string, space: SpaceInterface): Promise<AxiosResponse>; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { AxiosInstance } from "axios"; | ||
import { AxiosInstance, AxiosResponse } from "axios"; | ||
import { TaskInterface } from "../interfaces/octopus"; | ||
@@ -7,10 +7,10 @@ import { TaskPagedObject } from "../interfaces/pager"; | ||
constructor(instance: AxiosInstance); | ||
all(spaceId: string): Promise<import("axios").AxiosResponse<TaskPagedObject<TaskInterface>>>; | ||
get(spaceId: string, taskId: string): Promise<import("axios").AxiosResponse<any>>; | ||
create(spaceId: string, task: TaskInterface): Promise<import("axios").AxiosResponse<any>>; | ||
rerunTask(spaceId: string, taskId: string): Promise<import("axios").AxiosResponse<any>>; | ||
cancelTask(spaceId: string, taskId: string): Promise<import("axios").AxiosResponse<any>>; | ||
getDetails(spaceId: string, taskId: string): Promise<import("axios").AxiosResponse<any>>; | ||
getRaw(spaceId: string, taskId: string): Promise<import("axios").AxiosResponse<any>>; | ||
getTaskTypes(spaceId: string): Promise<import("axios").AxiosResponse<any>>; | ||
all(spaceId: string): Promise<AxiosResponse<TaskPagedObject<TaskInterface>>>; | ||
get(spaceId: string, taskId: string): Promise<AxiosResponse<TaskInterface>>; | ||
create(spaceId: string, task: TaskInterface): Promise<AxiosResponse>; | ||
rerunTask(spaceId: string, taskId: string): Promise<AxiosResponse>; | ||
cancelTask(spaceId: string, taskId: string): Promise<AxiosResponse>; | ||
getDetails(spaceId: string, taskId: string): Promise<AxiosResponse>; | ||
getRaw(spaceId: string, taskId: string): Promise<AxiosResponse>; | ||
getTaskTypes(spaceId: string): Promise<AxiosResponse>; | ||
} |
@@ -11,3 +11,3 @@ export interface PagerInterface { | ||
LastPageNumber: number; | ||
Items: Array<T>; | ||
Items: T[]; | ||
} | ||
@@ -14,0 +14,0 @@ export interface TaskCountInterface { |
{ | ||
"name": "devops-core-octopus", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -16,7 +16,6 @@ "main": "lib/index.js", | ||
"test:coverage": "nyc --reporter=lcov npm run test", | ||
"lint": "tslint -p tsconfig.json", | ||
"lint": "eslint \"src/**/*.ts\" --max-warnings 0", | ||
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"", | ||
"build": "tsc -p .", | ||
"prepare": "npm run build", | ||
"prepublishOnly": "npm test && npm run lint" | ||
"prepare": "husky install && npm run build" | ||
}, | ||
@@ -31,4 +30,6 @@ "dependencies": { | ||
"@types/sinon-chai": "^3.2.5", | ||
"@typescript-eslint/eslint-plugin": "^4.28.5", | ||
"@typescript-eslint/parser": "^4.28.5", | ||
"chai": "^4.3.4", | ||
"eslint": "^7.30.0", | ||
"eslint": "^7.31.0", | ||
"eslint-config-standard": "^16.0.3", | ||
@@ -35,0 +36,0 @@ "eslint-plugin-import": "^2.23.4", |
38039
25