Skip to content

Commit

Permalink
Merge branch 'release/v4.1.0' into feature/jira-cloud-v2-api
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRefactoring authored Feb 20, 2025
2 parents 4826e55 + e9dc1fd commit b6846e6
Show file tree
Hide file tree
Showing 69 changed files with 114 additions and 71 deletions.
47 changes: 45 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,52 @@

- **Deprecation:** Marked the `InstanceInformation.getLicense` method as deprecated.
- **Deprecation:** Marked the `Issues.getCreateIssueMeta` method as deprecated.
- **Deprecation**: Marked the `PageBeanFieldConfigurationDetails` class as deprecated. Use `Paginated<FieldConfigurationDetails>` instead.
- **Deprecation:** Marked the `PageBeanFieldConfigurationDetails` class as deprecated. Use `Paginated<FieldConfigurationDetails>` instead.

- **Change:** Renamed `JiraExpressionEvaluateContextBean` to `JiraExpressionEvaluateContext`.

- **Improvement:** Added type `string` for properties `projectId` in parameters and models:
- Model `Version`
- Parameter `GetFieldConfigurationSchemeProjectMapping`
- Parameter `GetHierarchy`
- Parameter `GetIssueTypeSchemeForProjects`
- Parameter `GetIssueTypeScreenSchemeProjectAssociations`
- Parameter `GetIssueTypesForProject`
- Parameter `GetProjectEmail`
- Parameter `GetWorkflowSchemeProjectAssociations`
- Parameter `UpdateProjectEmail`
- **Improvement:** Added type `number` for properties `projectIdOrKey` in parameters and models:
- Parameter `AddActorUsers`
- Parameter `ArchiveProject`
- Parameter `CreateProjectAvatar`
- Parameter `DeleteActor`
- Parameter `DeleteProject`
- Parameter `DeleteProjectAsynchronously`
- Parameter `DeleteProjectAvatar`
- Parameter `DeleteProjectProperty`
- Parameter `GetAllProjectAvatars`
- Parameter `GetAllStatuses`
- Parameter `GetFeaturesForProject`
- Parameter `GetProjectComponents`
- Parameter `GetProjectComponentsPaginated`
- Parameter `GetProjectProperty`
- Parameter `GetProjectPropertyKeys`
- Parameter `GetProjectRole`
- Parameter `GetProjectRoleDetails`
- Parameter `GetProjectRoles`
- Parameter `GetProjectVersions`
- Parameter `GetProjectVersionsPaginated`
- Parameter `Restore`
- Parameter `SetActors`
- Parameter `SetProjectProperty`
- Parameter `ToggleFeatureForProject`
- Parameter `UpdateProject`
- Parameter `UpdateProjectAvatar`

- **Change**: Renamed `JiraExpressionEvaluateContextBean` to `JiraExpressionEvaluateContext`.
---

- **Special thanks to Ness Li ([nessgor](/~https://github.com/nessgor)) for implementing the changes above. PR: [#356](/~https://github.com/MrRefactoring/jira.js/pull/356).**
- **Thanks to Niklas Correnz ([uncaught](/~https://github.com/uncaught)) for reporting the issue: [#352](/~https://github.com/MrRefactoring/jira.js/issues/352).**

// todo

Expand Down
2 changes: 1 addition & 1 deletion src/version2/models/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export interface Version {
* The ID of the project to which this version is attached. Required when creating a version. Not applicable when
* updating a version.
*/
projectId: number;
projectId: string | number;
/**
* The URL of the self link to the version to which all unfixed issues are moved when a version is released. Not
* applicable when creating a version. Optional when updating a version.
Expand Down
2 changes: 1 addition & 1 deletion src/version2/parameters/addActorUsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ActorsMap } from '../models';

export interface AddActorUsers extends ActorsMap {
/** The project ID or project key (case-sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
/**
* The ID of the project role. Use [Get all project roles](#api-rest-api-2-role-get) to get a list of project role
* IDs.
Expand Down
2 changes: 1 addition & 1 deletion src/version2/parameters/archiveProject.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface ArchiveProject {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
}
4 changes: 2 additions & 2 deletions src/version2/parameters/createProjectAvatar.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface CreateProjectAvatar {
/** The ID or (case-sensitive) key of the project. */
projectIdOrKey: string;
projectIdOrKey: string | number;
/** The X coordinate of the top-left corner of the crop region. */
x?: number;
/** The Y coordinate of the top-left corner of the crop region. */
Expand All @@ -12,5 +12,5 @@ export interface CreateProjectAvatar {
*/
size?: number;
mimeType: string;
avatar: Buffer | ArrayBuffer | Uint8Array;
avatar: Buffer | ArrayBuffer | Uint8Array | any;
}
2 changes: 1 addition & 1 deletion src/version2/parameters/deleteActor.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface DeleteActor {
/** The project ID or project key (case-sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
/**
* The ID of the project role. Use [Get all project roles](#api-rest-api-2-role-get) to get a list of project role
* IDs.
Expand Down
2 changes: 1 addition & 1 deletion src/version2/parameters/deleteProject.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface DeleteProject {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
/** Whether this project is placed in the Jira recycle bin where it will be available for restoration. */
enableUndo?: boolean;
}
2 changes: 1 addition & 1 deletion src/version2/parameters/deleteProjectAsynchronously.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface DeleteProjectAsynchronously {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
}
2 changes: 1 addition & 1 deletion src/version2/parameters/deleteProjectAvatar.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface DeleteProjectAvatar {
/** The project ID or (case-sensitive) key. */
projectIdOrKey: string;
projectIdOrKey: string | number;
/** The ID of the avatar. */
id: number;
}
2 changes: 1 addition & 1 deletion src/version2/parameters/deleteProjectProperty.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface DeleteProjectProperty {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
/**
* The project property key. Use [Get project property keys](#api-rest-api-2-project-projectIdOrKey-properties-get) to
* get a list of all project property keys.
Expand Down
2 changes: 1 addition & 1 deletion src/version2/parameters/getAllProjectAvatars.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface GetAllProjectAvatars {
/** The ID or (case-sensitive) key of the project. */
projectIdOrKey: string;
projectIdOrKey: string | number;
}
2 changes: 1 addition & 1 deletion src/version2/parameters/getAllStatuses.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface GetAllStatuses {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
}
2 changes: 1 addition & 1 deletion src/version2/parameters/getFeaturesForProject.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface GetFeaturesForProject {
/** The ID or (case-sensitive) key of the project. */
projectIdOrKey: string;
projectIdOrKey: string | number;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ export interface GetFieldConfigurationSchemeProjectMapping {
* The list of project IDs. To include multiple projects, separate IDs with ampersand:
* `projectId=10000&projectId=10001`.
*/
projectId: number[];
projectId: (string | number)[];
}
2 changes: 1 addition & 1 deletion src/version2/parameters/getHierarchy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface GetHierarchy {
/** The ID of the project. */
projectId: number;
projectId: string | number;
}
2 changes: 1 addition & 1 deletion src/version2/parameters/getIssueTypeSchemeForProjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ export interface GetIssueTypeSchemeForProjects {
* The list of project IDs. To include multiple project IDs, provide an ampersand-separated list. For example,
* `projectId=10000&projectId=10001`.
*/
projectId: number[];
projectId: (string | number)[];
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ export interface GetIssueTypeScreenSchemeProjectAssociations {
* The list of project IDs. To include multiple projects, separate IDs with ampersand:
* `projectId=10000&projectId=10001`.
*/
projectId: number[];
projectId: (string | number)[];
}
2 changes: 1 addition & 1 deletion src/version2/parameters/getIssueTypesForProject.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface GetIssueTypesForProject {
/** The ID of the project. */
projectId: number;
projectId: string | number;
/**
* The level of the issue type to filter by. Use:
*
Expand Down
2 changes: 1 addition & 1 deletion src/version2/parameters/getProjectComponentsPaginated.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface GetProjectComponentsPaginated {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
/** The index of the first item to return in a page of results (page offset). */
startAt?: number;
/** The maximum number of items to return per page. */
Expand Down
2 changes: 1 addition & 1 deletion src/version2/parameters/getProjectEmail.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface GetProjectEmail {
/** The project ID. */
projectId: number;
projectId: string | number;
}
2 changes: 1 addition & 1 deletion src/version2/parameters/getProjectProperty.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface GetProjectProperty {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
/**
* The project property key. Use [Get project property keys](#api-rest-api-2-project-projectIdOrKey-properties-get) to
* get a list of all project property keys.
Expand Down
2 changes: 1 addition & 1 deletion src/version2/parameters/getProjectPropertyKeys.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface GetProjectPropertyKeys {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
}
2 changes: 1 addition & 1 deletion src/version2/parameters/getProjectRole.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface GetProjectRole {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
/**
* The ID of the project role. Use [Get all project roles](#api-rest-api-2-role-get) to get a list of project role
* IDs.
Expand Down
2 changes: 1 addition & 1 deletion src/version2/parameters/getProjectRoleDetails.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface GetProjectRoleDetails {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
/** Whether the roles should be filtered to include only those the user is assigned to. */
currentMember?: boolean;
excludeConnectAddons?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/version2/parameters/getProjectRoles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface GetProjectRoles {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
}
2 changes: 1 addition & 1 deletion src/version2/parameters/getProjectVersions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface GetProjectVersions {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
/**
* Use [expand](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#expansion) to include additional
* information in the response. This parameter accepts `operations`, which returns actions that can be performed on
Expand Down
2 changes: 1 addition & 1 deletion src/version2/parameters/getProjectVersionsPaginated.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface GetProjectVersionsPaginated {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
/** The index of the first item to return in a page of results (page offset). */
startAt?: number;
/** The maximum number of items to return per page. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ export interface GetWorkflowSchemeProjectAssociations {
* The ID of a project to return the workflow schemes for. To include multiple projects, provide an ampersand-Jim:
* oneseparated list. For example, `projectId=10000&projectId=10001`.
*/
projectId: number[];
projectId: (string | number)[];
}
2 changes: 1 addition & 1 deletion src/version2/parameters/restore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface Restore {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
}
2 changes: 1 addition & 1 deletion src/version2/parameters/setActors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ProjectRoleActorsUpdate } from '../models';

export interface SetActors extends ProjectRoleActorsUpdate {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
/**
* The ID of the project role. Use [Get all project roles](#api-rest-api-2-role-get) to get a list of project role
* IDs.
Expand Down
2 changes: 1 addition & 1 deletion src/version2/parameters/setProjectProperty.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface SetProjectProperty {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
/** The key of the project property. The maximum length is 255 characters. */
propertyKey: string;
propertyValue: any;
Expand Down
2 changes: 1 addition & 1 deletion src/version2/parameters/toggleFeatureForProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ProjectFeatureToggleRequest } from '../models';

export interface ToggleFeatureForProject extends ProjectFeatureToggleRequest {
/** The ID or (case-sensitive) key of the project. */
projectIdOrKey: string;
projectIdOrKey: string | number;
/** The key of the feature. */
featureKey: string;
}
2 changes: 1 addition & 1 deletion src/version2/parameters/updateProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { UpdateProjectDetails } from '../models';

export interface UpdateProject extends UpdateProjectDetails {
/** The project ID or project key (case-sensitive). */
projectIdOrKey: number | string;
projectIdOrKey: string | number;
/**
* The [project
* type](https://confluence.atlassian.com/x/GwiiLQ#Jiraapplicationsoverview-Productfeaturesandprojecttypes), which
Expand Down
2 changes: 1 addition & 1 deletion src/version2/parameters/updateProjectAvatar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { Avatar } from '../models';

export interface UpdateProjectAvatar extends Avatar {
/** The ID or (case-sensitive) key of the project. */
projectIdOrKey: string;
projectIdOrKey: string | number;
}
2 changes: 1 addition & 1 deletion src/version2/parameters/updateProjectEmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { ProjectEmailAddress } from '../models';

export interface UpdateProjectEmail extends ProjectEmailAddress {
/** The project ID. */
projectId: number;
projectId: string | number;
}
2 changes: 1 addition & 1 deletion src/version3/parameters/addActorUsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ActorsMap } from '../models';

export interface AddActorUsers extends ActorsMap {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
/**
* The ID of the project role. Use [Get all project roles](#api-rest-api-3-role-get) to get a list of project role
* IDs.
Expand Down
2 changes: 1 addition & 1 deletion src/version3/parameters/archiveProject.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface ArchiveProject {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
}
2 changes: 1 addition & 1 deletion src/version3/parameters/createProjectAvatar.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface CreateProjectAvatar {
/** The ID or (case-sensitive) key of the project. */
projectIdOrKey: string;
projectIdOrKey: string | number;
/** The X coordinate of the top-left corner of the crop region. */
x?: number;
/** The Y coordinate of the top-left corner of the crop region. */
Expand Down
2 changes: 1 addition & 1 deletion src/version3/parameters/deleteActor.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface DeleteActor {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
/**
* The ID of the project role. Use [Get all project roles](#api-rest-api-3-role-get) to get a list of project role
* IDs.
Expand Down
2 changes: 1 addition & 1 deletion src/version3/parameters/deleteProject.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface DeleteProject {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
/** Whether this project is placed in the Jira recycle bin where it will be available for restoration. */
enableUndo?: boolean;
}
2 changes: 1 addition & 1 deletion src/version3/parameters/deleteProjectAsynchronously.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface DeleteProjectAsynchronously {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
}
2 changes: 1 addition & 1 deletion src/version3/parameters/deleteProjectAvatar.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface DeleteProjectAvatar {
/** The project ID or (case-sensitive) key. */
projectIdOrKey: string;
projectIdOrKey: string | number;
/** The ID of the avatar. */
id: number;
}
2 changes: 1 addition & 1 deletion src/version3/parameters/deleteProjectProperty.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface DeleteProjectProperty {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
/**
* The project property key. Use [Get project property keys](#api-rest-api-3-project-projectIdOrKey-properties-get) to
* get a list of all project property keys.
Expand Down
2 changes: 1 addition & 1 deletion src/version3/parameters/getAllProjectAvatars.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface GetAllProjectAvatars {
/** The ID or (case-sensitive) key of the project. */
projectIdOrKey: string;
projectIdOrKey: string | number;
}
2 changes: 1 addition & 1 deletion src/version3/parameters/getAllStatuses.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface GetAllStatuses {
/** The project ID or project key (case sensitive). */
projectIdOrKey: string;
projectIdOrKey: string | number;
}
2 changes: 1 addition & 1 deletion src/version3/parameters/getFeaturesForProject.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface GetFeaturesForProject {
/** The ID or (case-sensitive) key of the project. */
projectIdOrKey: string;
projectIdOrKey: string | number;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ export interface GetFieldConfigurationSchemeProjectMapping {
* The list of project IDs. To include multiple projects, separate IDs with ampersand:
* `projectId=10000&projectId=10001`.
*/
projectId: number[];
projectId: (string | number)[];
}
Loading

0 comments on commit b6846e6

Please sign in to comment.