Skip to content

Commit

Permalink
Tests fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRefactoring committed Feb 25, 2024
1 parent 61fd6a8 commit d29d4c5
Show file tree
Hide file tree
Showing 57 changed files with 851 additions and 873 deletions.
30 changes: 15 additions & 15 deletions src/agile/parameters/partiallyUpdateEpic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ export interface PartiallyUpdateEpic {
summary?: string;
color?: {
key?:
| 'color_1'
| 'color_2'
| 'color_3'
| 'color_4'
| 'color_5'
| 'color_6'
| 'color_7'
| 'color_8'
| 'color_9'
| 'color_10'
| 'color_11'
| 'color_12'
| 'color_13'
| 'color_14'
| string;
| 'color_1'
| 'color_2'
| 'color_3'
| 'color_4'
| 'color_5'
| 'color_6'
| 'color_7'
| 'color_8'
| 'color_9'
| 'color_10'
| 'color_11'
| 'color_12'
| 'color_13'
| 'color_14'
| string;
};
done?: boolean;
}
20 changes: 10 additions & 10 deletions src/agile/parameters/submitRemoteLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ export interface SubmitRemoteLinks {
* 'prototype', 'coverage', 'bugReport' and 'other'
*/
type:
| 'document'
| 'alert'
| 'test'
| 'security'
| 'logFile'
| 'prototype'
| 'coverage'
| 'bugReport'
| 'other'
| string;
| 'document'
| 'alert'
| 'test'
| 'security'
| 'logFile'
| 'prototype'
| 'coverage'
| 'bugReport'
| 'other'
| string;
/**
* An optional description to attach to this Remote Link.
*
Expand Down
34 changes: 17 additions & 17 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ export namespace Config {
export type Error = AxiosError;

export type Authentication = UtilityTypes.XOR3<
{
personalAccessToken: Authentication.PersonalAccessToken;
},
{
basic: Authentication.Basic;
},
{
oauth2: Authentication.OAuth2;
}
{
personalAccessToken: Authentication.PersonalAccessToken;
},
{
basic: Authentication.Basic;
},
{
oauth2: Authentication.OAuth2;
}
>;

export interface Middlewares {
Expand All @@ -49,14 +49,14 @@ export namespace Config {
};

export type Basic = UtilityTypes.XOR<
{
email: string;
apiToken: string;
},
{
username: string;
password: string;
}
{
email: string;
apiToken: string;
},
{
username: string;
password: string;
}
>;

export interface OAuth {
Expand Down
42 changes: 21 additions & 21 deletions src/version2/models/createProjectDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,27 +53,27 @@ export interface CreateProjectDetails {
* `projectTypeKey`.
*/
projectTemplateKey?:
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-content-management'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-document-approval'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-lead-tracking'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-process-control'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-procurement'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-project-management'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-recruitment'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-task-tracking'
| 'com.atlassian.servicedesk:simplified-it-service-management'
| 'com.atlassian.servicedesk:simplified-general-service-desk'
| 'com.atlassian.servicedesk:simplified-internal-service-desk'
| 'com.atlassian.servicedesk:simplified-external-service-desk'
| 'com.atlassian.servicedesk:simplified-hr-service-desk'
| 'com.atlassian.servicedesk:simplified-facilities-service-desk'
| 'com.atlassian.servicedesk:simplified-legal-service-desk'
| 'com.pyxis.greenhopper.jira:gh-simplified-agility-kanban'
| 'com.pyxis.greenhopper.jira:gh-simplified-agility-scrum'
| 'com.pyxis.greenhopper.jira:gh-simplified-basic'
| 'com.pyxis.greenhopper.jira:gh-simplified-kanban-classic'
| 'com.pyxis.greenhopper.jira:gh-simplified-scrum-classic'
| string;
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-content-management'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-document-approval'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-lead-tracking'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-process-control'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-procurement'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-project-management'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-recruitment'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-task-tracking'
| 'com.atlassian.servicedesk:simplified-it-service-management'
| 'com.atlassian.servicedesk:simplified-general-service-desk'
| 'com.atlassian.servicedesk:simplified-internal-service-desk'
| 'com.atlassian.servicedesk:simplified-external-service-desk'
| 'com.atlassian.servicedesk:simplified-hr-service-desk'
| 'com.atlassian.servicedesk:simplified-facilities-service-desk'
| 'com.atlassian.servicedesk:simplified-legal-service-desk'
| 'com.pyxis.greenhopper.jira:gh-simplified-agility-kanban'
| 'com.pyxis.greenhopper.jira:gh-simplified-agility-scrum'
| 'com.pyxis.greenhopper.jira:gh-simplified-basic'
| 'com.pyxis.greenhopper.jira:gh-simplified-kanban-classic'
| 'com.pyxis.greenhopper.jira:gh-simplified-scrum-classic'
| string;
/**
* The ID of the workflow scheme for the project. Use the [Get all workflow
* schemes](#api-rest-api-2-workflowscheme-get) operation to get a list of workflow scheme IDs. If you specify the
Expand Down
24 changes: 12 additions & 12 deletions src/version2/models/searchRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,6 @@ export interface SearchRequest {
* version of a field's value, with the highest numbered item representing the most recent version.
*/
expand?:
| 'renderedFields'
| 'names'
| 'schema'
| 'transitions'
| 'operations'
| 'editmeta'
| 'changelog'
| 'versionedRepresentations'
| (
| 'renderedFields'
| 'names'
| 'schema'
Expand All @@ -70,9 +61,18 @@ export interface SearchRequest {
| 'editmeta'
| 'changelog'
| 'versionedRepresentations'
)[]
| string
| string[];
| (
| 'renderedFields'
| 'names'
| 'schema'
| 'transitions'
| 'operations'
| 'editmeta'
| 'changelog'
| 'versionedRepresentations'
)[]
| string
| string[];
/** A list of up to 5 issue properties to include in the results. This parameter accepts a comma-separated list. */
properties?: string[];
/** Reference fields by their key (rather than ID). The default is `false`. */
Expand Down
16 changes: 8 additions & 8 deletions src/version2/parameters/assignPermissionScheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ export interface AssignPermissionScheme extends Id {
* - `user` Returns information about the user who is granted the permission.
*/
expand?:
| 'all'
| 'field'
| 'group'
| 'permissions'
| 'projectRole'
| 'user'
| ('all' | 'field' | 'group' | 'permissions' | 'projectRole' | 'user')[]
| string;
| 'all'
| 'field'
| 'group'
| 'permissions'
| 'projectRole'
| 'user'
| ('all' | 'field' | 'group' | 'permissions' | 'projectRole' | 'user')[]
| string;
}
18 changes: 9 additions & 9 deletions src/version2/parameters/createPermissionScheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ export interface CreatePermissionScheme extends Omit<PermissionScheme, 'expand'>
* - `user` Returns information about the user who is granted the permission.
*/
expand?:
| 'all'
| 'field'
| 'group'
| 'permissions'
| 'projectRole'
| 'user'
| ('all' | 'field' | 'group' | 'permissions' | 'projectRole' | 'user')[]
| string
| string[];
| 'all'
| 'field'
| 'group'
| 'permissions'
| 'projectRole'
| 'user'
| ('all' | 'field' | 'group' | 'permissions' | 'projectRole' | 'user')[]
| string
| string[];
}
44 changes: 22 additions & 22 deletions src/version2/parameters/findUsersAndGroups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,28 @@ export interface FindUsersAndGroups {
issueTypeId?: string[];
/** The size of the avatar to return. If an invalid value is provided, the default value is used. */
avatarSize?:
| 'xsmall'
| 'xsmall@2x'
| 'xsmall@3x'
| 'small'
| 'small@2x'
| 'small@3x'
| 'medium'
| 'medium@2x'
| 'medium@3x'
| 'large'
| 'large@2x'
| 'large@3x'
| 'xlarge'
| 'xlarge@2x'
| 'xlarge@3x'
| 'xxlarge'
| 'xxlarge@2x'
| 'xxlarge@3x'
| 'xxxlarge'
| 'xxxlarge@2x'
| 'xxxlarge@3x'
| string;
| 'xsmall'
| 'xsmall@2x'
| 'xsmall@3x'
| 'small'
| 'small@2x'
| 'small@3x'
| 'medium'
| 'medium@2x'
| 'medium@3x'
| 'large'
| 'large@2x'
| 'large@3x'
| 'xlarge'
| 'xlarge@2x'
| 'xlarge@3x'
| 'xxlarge'
| 'xxlarge@2x'
| 'xxlarge@3x'
| 'xxxlarge'
| 'xxxlarge@2x'
| 'xxxlarge@3x'
| string;
/** Whether the search for groups should be case insensitive. */
caseInsensitive?: boolean;
/**
Expand Down
18 changes: 9 additions & 9 deletions src/version2/parameters/getAllPermissionSchemes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ export interface GetAllPermissionSchemes {
* - `user` Returns information about the user who is granted the permission.
*/
expand?:
| 'all'
| 'field'
| 'group'
| 'permissions'
| 'projectRole'
| 'user'
| ('all' | 'field' | 'group' | 'permissions' | 'projectRole' | 'user')[]
| string
| string[];
| 'all'
| 'field'
| 'group'
| 'permissions'
| 'projectRole'
| 'user'
| ('all' | 'field' | 'group' | 'permissions' | 'projectRole' | 'user')[]
| string
| string[];
}
18 changes: 9 additions & 9 deletions src/version2/parameters/getAssignedPermissionScheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ export interface GetAssignedPermissionScheme {
* - `user` Returns information about the user who is granted the permission.
*/
expand?:
| 'all'
| 'field'
| 'group'
| 'permissions'
| 'projectRole'
| 'user'
| ('field' | 'group' | 'permissions' | 'projectRole' | 'user')[]
| string
| string[];
| 'all'
| 'field'
| 'group'
| 'permissions'
| 'projectRole'
| 'user'
| ('field' | 'group' | 'permissions' | 'projectRole' | 'user')[]
| string
| string[];
}
Loading

0 comments on commit d29d4c5

Please sign in to comment.