Skip to content

Commit

Permalink
Deprecation stuff removed (#283)
Browse files Browse the repository at this point in the history
* agile deprecation stuff removed

* version2 deprecation stuff removed

* test fixes

* version3 deprecated properties removed

* no-namespaces rule applied

* integration tests fixes

* old stuff removed
  • Loading branch information
MrRefactoring authored Oct 13, 2023
1 parent 454b032 commit 3317f97
Show file tree
Hide file tree
Showing 580 changed files with 277 additions and 7,065 deletions.
4 changes: 2 additions & 2 deletions examples/src/addFixVersion.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Version3Client} from "jira.js";
import { Version3Client } from 'jira.js';
import { apiToken, email, host } from "./credentials";
import {createIssue} from "./utils";
import { createIssue } from "./utils";

async function addFixVersion() {
const client = new Version3Client({
Expand Down
117 changes: 60 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"devDependencies": {
"@swc-node/register": "^1.6.8",
"@swc/helpers": "^0.5.3",
"@types/node": "^18.18.4",
"@types/node": "^18.18.5",
"@types/sinon": "^10.0.19",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
Expand Down
4 changes: 2 additions & 2 deletions src/agile/builds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class Builds {
url: '/rest/builds/0.1/bulkByProperties',
method: 'DELETE',
params: {
_updateSequenceNumber: parameters._updateSequenceNumber || parameters.updateSequenceNumber,
_updateSequenceNumber: parameters.updateSequenceNumber,
},
};

Expand Down Expand Up @@ -181,7 +181,7 @@ export class Builds {
url: `/rest/builds/0.1/pipelines/${parameters.pipelineId}/builds/${parameters.buildNumber}`,
method: 'DELETE',
params: {
_updateSequenceNumber: parameters._updateSequenceNumber || parameters.updateSequenceNumber,
_updateSequenceNumber: parameters.updateSequenceNumber,
},
};

Expand Down
2 changes: 0 additions & 2 deletions src/agile/client/agileClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
Epic,
FeatureFlags,
Issue,
Project,
RemoteLinks,
SecurityInformation,
Sprint,
Expand All @@ -23,7 +22,6 @@ export class AgileClient extends BaseClient {
epic = new Epic(this);
featureFlags = new FeatureFlags(this);
issue = new Issue(this);
project = new Project(this);
remoteLinks = new RemoteLinks(this);
securityInformation = new SecurityInformation(this);
sprint = new Sprint(this);
Expand Down
4 changes: 2 additions & 2 deletions src/agile/deployments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class Deployments {
url: '/rest/deployments/0.1/bulkByProperties',
method: 'DELETE',
params: {
_updateSequenceNumber: parameters._updateSequenceNumber || parameters.updateSequenceNumber,
_updateSequenceNumber: parameters.updateSequenceNumber,
},
};

Expand Down Expand Up @@ -192,7 +192,7 @@ export class Deployments {
url: `/rest/deployments/0.1/pipelines/${parameters.pipelineId}/environments/${parameters.environmentId}/deployments/${parameters.deploymentSequenceNumber}`,
method: 'DELETE',
params: {
_updateSequenceNumber: parameters._updateSequenceNumber || parameters.updateSequenceNumber,
_updateSequenceNumber: parameters.updateSequenceNumber,
},
};

Expand Down
8 changes: 4 additions & 4 deletions src/agile/developmentInformation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class DevelopmentInformation {
url: `/rest/devinfo/0.10/repository/${parameters.repositoryId}`,
method: 'DELETE',
params: {
_updateSequenceId: parameters._updateSequenceId || parameters.updateSequenceId,
_updateSequenceId: parameters.updateSequenceId,
},
};

Expand Down Expand Up @@ -129,7 +129,7 @@ export class DevelopmentInformation {
url: '/rest/devinfo/0.10/bulkByProperties',
method: 'DELETE',
params: {
_updateSequenceId: parameters._updateSequenceId || parameters.updateSequenceId,
_updateSequenceId: parameters.updateSequenceId,
},
};

Expand Down Expand Up @@ -166,7 +166,7 @@ export class DevelopmentInformation {
url: '/rest/devinfo/0.10/existsByProperties',
method: 'GET',
params: {
_updateSequenceId: parameters._updateSequenceId || parameters.updateSequenceId,
_updateSequenceId: parameters.updateSequenceId,
},
};

Expand All @@ -182,7 +182,7 @@ export class DevelopmentInformation {
url: `/rest/devinfo/0.10/repository/${parameters.repositoryId}/${parameters.entityType}/${parameters.entityId}`,
method: 'DELETE',
params: {
_updateSequenceId: parameters._updateSequenceId || parameters.updateSequenceId,
_updateSequenceId: parameters.updateSequenceId,
},
};

Expand Down
4 changes: 2 additions & 2 deletions src/agile/featureFlags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class FeatureFlags {
url: '/rest/featureflags/0.1/bulkByProperties',
method: 'DELETE',
params: {
_updateSequenceId: parameters?._updateSequenceId || parameters?.updateSequenceId,
_updateSequenceId: parameters?.updateSequenceId,
},
};

Expand Down Expand Up @@ -184,7 +184,7 @@ export class FeatureFlags {
url: `/rest/featureflags/0.1/flag/${parameters.featureFlagId}`,
method: 'DELETE',
params: {
_updateSequenceId: parameters._updateSequenceId || parameters.updateSequenceId,
_updateSequenceId: parameters.updateSequenceId,
},
};

Expand Down
1 change: 0 additions & 1 deletion src/agile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export * from './developmentInformation';
export * from './epic';
export * from './featureFlags';
export * from './issue';
export * from './project';
export * from './remoteLinks';
export * from './securityInformation';
export * from './sprint';
Expand Down
Loading

0 comments on commit 3317f97

Please sign in to comment.