Skip to content

Commit

Permalink
version3 deprecated properties removed
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRefactoring committed Oct 12, 2023
1 parent 7c6670f commit 5bf2337
Show file tree
Hide file tree
Showing 145 changed files with 4 additions and 1,582 deletions.
2 changes: 1 addition & 1 deletion src/version3/appMigration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class AppMigration {
'Atlassian-Transfer-Id': parameters.transferId,
'Content-Type': 'application/json',
},
data: parameters.body ?? parameters.entities,
data: parameters.entities,
};

return this.client.sendRequest(config, callback);
Expand Down
2 changes: 1 addition & 1 deletion src/version3/appProperties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class AppProperties {
const config: RequestConfig = {
url: `/rest/atlassian-connect/1/addons/${parameters.addonKey}/properties/${parameters.propertyKey}`,
method: 'PUT',
data: parameters.propertyValue ?? parameters.property,
data: parameters.propertyValue,
};

return this.client.sendRequest(config, callback);
Expand Down
2 changes: 0 additions & 2 deletions src/version3/client/version3Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
GroupAndUserPicker,
Groups,
InstanceInformation,
IssueAdjustmentsApps,
IssueAttachments,
IssueCommentProperties,
IssueComments,
Expand Down Expand Up @@ -103,7 +102,6 @@ export class Version3Client extends BaseClient {
groupAndUserPicker = new GroupAndUserPicker(this);
groups = new Groups(this);
instanceInformation = new InstanceInformation(this);
issueAdjustmentsApps = new IssueAdjustmentsApps(this);
issueAttachments = new IssueAttachments(this);
issueCommentProperties = new IssueCommentProperties(this);
issueComments = new IssueComments(this);
Expand Down
1 change: 0 additions & 1 deletion src/version3/dashboards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ export class Dashboards {
params: {
dashboardName: parameters?.dashboardName,
accountId: parameters?.accountId,
owner: parameters?.owner,
groupname: parameters?.groupname,
groupId: parameters?.groupId,
projectId: parameters?.projectId,
Expand Down
44 changes: 0 additions & 44 deletions src/version3/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,6 @@ import { RequestConfig } from '../requestConfig';
export class Filters {
constructor(private client: Client) {}

/**
* @deprecated Returns all filters. Deprecated, use [ Search for filters](#api-rest-api-3-filter-search-get) that
* supports search and pagination. This operation can be accessed anonymously.
* **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#permissions) required:** None,
* however, only the following filters are returned:
*
* - Filters owned by the user.
* - Filters shared with a group that the user is a member of.
* - Filters shared with a private project that the user has _Browse projects_ [project
* permission](https://confluence.atlassian.com/x/yodKLg) for.
* - Filters shared with a public project.
* - Filters shared with the public.
*/
async getFilters<T = Models.Filter[]>(
parameters: Parameters.GetFilters | undefined,
callback: Callback<T>,
): Promise<void>;
/**
* @deprecated Returns all filters. Deprecated, use [ Search for filters](#api-rest-api-3-filter-search-get) that
* supports search and pagination. This operation can be accessed anonymously.
* **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#permissions) required:** None,
* however, only the following filters are returned:
*
* - Filters owned by the user.
* - Filters shared with a group that the user is a member of.
* - Filters shared with a private project that the user has _Browse projects_ [project
* permission](https://confluence.atlassian.com/x/yodKLg) for.
* - Filters shared with a public project.
* - Filters shared with the public.
*/
async getFilters<T = Models.Filter[]>(parameters?: Parameters.GetFilters, callback?: never): Promise<T>;
async getFilters<T = Models.Filter[]>(parameters?: Parameters.GetFilters, callback?: Callback<T>): Promise<void | T> {
const config: RequestConfig = {
url: '/rest/api/3/filter',
method: 'GET',
params: {
expand: parameters?.expand,
},
};

return this.client.sendRequest(config, callback);
}

/**
* Creates a filter. The filter is shared according to the [default share scope](#api-rest-api-3-filter-post). The
* filter is not selected as a favorite.
Expand Down Expand Up @@ -270,7 +227,6 @@ export class Filters {
params: {
filterName: parameters?.filterName,
accountId: parameters?.accountId,
owner: parameters?.owner,
groupname: parameters?.groupname,
groupId: parameters?.groupId,
projectId: parameters?.projectId,
Expand Down
28 changes: 0 additions & 28 deletions src/version3/groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,6 @@ import { RequestConfig } from '../requestConfig';
export class Groups {
constructor(private client: Client) {}

/**
* @deprecated This operation is deprecated, use [`group/member`](#api-rest-api-3-group-member-get). Returns all users
* in a group. **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#permissions)
* required:** _Administer Jira_ [global permission](https://confluence.atlassian.com/x/x4dKLg).
*/
async getGroup<T = Models.Group>(parameters: Parameters.GetGroup, callback: Callback<T>): Promise<void>;
/**
* @deprecated This operation is deprecated, use [`group/member`](#api-rest-api-3-group-member-get). Returns all users
* in a group. **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#permissions)
* required:** _Administer Jira_ [global permission](https://confluence.atlassian.com/x/x4dKLg).
*/
async getGroup<T = Models.Group>(parameters: Parameters.GetGroup, callback?: never): Promise<T>;
async getGroup<T = Models.Group>(parameters: Parameters.GetGroup, callback?: Callback<T>): Promise<void | T> {
const config: RequestConfig = {
url: '/rest/api/3/group',
method: 'GET',
params: {
groupname: parameters.groupname,
groupId: parameters.groupId,
expand: parameters.expand,
},
};

return this.client.sendRequest(config, callback);
}

/**
* Creates a group.
*
Expand Down Expand Up @@ -294,13 +268,11 @@ export class Groups {
url: '/rest/api/3/groups/picker',
method: 'GET',
params: {
accountId: parameters?.accountId,
query: parameters?.query,
exclude: parameters?.exclude,
excludeId: parameters?.excludeId,
maxResults: parameters?.maxResults,
caseInsensitive: parameters?.caseInsensitive,
userName: parameters?.userName,
},
};

Expand Down
1 change: 0 additions & 1 deletion src/version3/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export * from './filterSharing';
export * from './groupAndUserPicker';
export * from './groups';
export * from './instanceInformation';
export * from './issueAdjustmentsApps';
export * from './issueAttachments';
export * from './issueCommentProperties';
export * from './issueComments';
Expand Down
158 changes: 0 additions & 158 deletions src/version3/issueAdjustmentsApps.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/version3/issueCustomFieldConfigurationApps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export class IssueCustomFieldConfigurationApps {
method: 'GET',
params: {
id: typeof parameters !== 'string' && parameters.id,
contextId: typeof parameters !== 'string' && parameters.contextId,
fieldContextId: typeof parameters !== 'string' && parameters.fieldContextId,
issueId: typeof parameters !== 'string' && parameters.issueId,
projectKeyOrId: typeof parameters !== 'string' && parameters.projectKeyOrId,
Expand Down
Loading

0 comments on commit 5bf2337

Please sign in to comment.