Skip to content

Commit

Permalink
Partial updated models for Version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRefactoring committed May 7, 2023
1 parent ee21d55 commit 0a5c4d1
Show file tree
Hide file tree
Showing 169 changed files with 900 additions and 885 deletions.
4 changes: 2 additions & 2 deletions src/version2/models/linkIssueRequestJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { LinkedIssue } from './linkedIssue';
export type LinkIssueRequestJsonBean = LinkIssueRequestJson;

export interface LinkIssueRequestJson {
type: IssueLinkType;
comment?: Comment;
inwardIssue: LinkedIssue;
outwardIssue: LinkedIssue;
comment?: Comment;
type: IssueLinkType;
}
2 changes: 2 additions & 0 deletions src/version2/models/listOperand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { JqlQueryUnitaryOperand } from './jqlQueryUnitaryOperand';

/** An operand that is a list of values. */
export interface ListOperand {
/** Encoded operand, which can be used directly in a JQL query. */
encodedOperand?: string;
/** The list of operand values. */
values: JqlQueryUnitaryOperand[];
}
4 changes: 3 additions & 1 deletion src/version2/models/nestedResponse.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { ErrorCollection } from './errorCollection';
import { WarningCollection } from './warningCollection';

export interface NestedResponse {
status?: number;
errorCollection?: ErrorCollection;
status?: number;
warningCollection?: WarningCollection;
}
6 changes: 3 additions & 3 deletions src/version2/models/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import { NotificationRecipientsRestrictions } from './notificationRecipientsRest

/** Details about a notification. */
export interface Notification {
/** The HTML body of the email notification for the issue. */
htmlBody?: string;
restrict?: NotificationRecipientsRestrictions;
/**
* The subject of the email notification for the issue. If this is not specified, then the subject is set to the issue
* key and summary.
*/
subject?: string;
/** The plain text body of the email notification for the issue. */
textBody?: string;
/** The HTML body of the email notification for the issue. */
htmlBody?: string;
to?: NotificationRecipients;
restrict?: NotificationRecipientsRestrictions;
}
4 changes: 2 additions & 2 deletions src/version2/models/notificationEvent.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/** Details about a notification event. */
export interface NotificationEvent {
/** The description of the event. */
description?: string;
/**
* The ID of the event. The event can be a [Jira system
* event](https://confluence.atlassian.com/x/8YdKLg#Creatinganotificationscheme-eventsEvents) or a [custom
Expand All @@ -8,7 +10,5 @@ export interface NotificationEvent {
id?: number;
/** The name of the event. */
name?: string;
/** The description of the event. */
description?: string;
templateEvent?: NotificationEvent;
}
20 changes: 10 additions & 10 deletions src/version2/models/notificationRecipients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ import { UserDetails } from './userDetails';

/** Details of the users and groups to receive the notification. */
export interface NotificationRecipients {
/** Whether the notification should be sent to the issue's reporter. */
reporter?: boolean;
/** Whether the notification should be sent to the issue's assignees. */
assignee?: boolean;
/** Whether the notification should be sent to the issue's watchers. */
watchers?: boolean;
/** Whether the notification should be sent to the issue's voters. */
voters?: boolean;
/** List of users to receive the notification. */
users?: UserDetails[];
/** List of groups to receive the notification. */
groups?: GroupName[];
/** List of groupIds to receive the notification. */
groupIds?: string[];
/** List of groups to receive the notification. */
groups?: GroupName[];
/** Whether the notification should be sent to the issue's reporter. */
reporter?: boolean;
/** List of users to receive the notification. */
users?: UserDetails[];
/** Whether the notification should be sent to the issue's voters. */
voters?: boolean;
/** Whether the notification should be sent to the issue's watchers. */
watchers?: boolean;
}
4 changes: 2 additions & 2 deletions src/version2/models/notificationRecipientsRestrictions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { RestrictedPermission } from './restrictedPermission';

/** Details of the group membership or permissions needed to receive the notification. */
export interface NotificationRecipientsRestrictions {
/** List of group memberships required to receive the notification. */
groups?: GroupName[];
/** List of groupId memberships required to receive the notification. */
groupIds?: string[];
/** List of group memberships required to receive the notification. */
groups?: GroupName[];
/** List of permissions required to receive the notification. */
permissions?: RestrictedPermission[];
}
8 changes: 5 additions & 3 deletions src/version2/models/notificationScheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ import { Scope } from './scope';

/** Details about a notification scheme. */
export interface NotificationScheme {
/** The description of the notification scheme. */
description?: string;
/** Expand options that include additional notification scheme details in the response. */
expand?: string;
/** The ID of the notification scheme. */
id?: number;
self?: string;
/** The name of the notification scheme. */
name?: string;
/** The description of the notification scheme. */
description?: string;
/** The notification events and associated recipients. */
notificationSchemeEvents?: NotificationSchemeEvent[];
/** The list of project IDs associated with the notification scheme. */
projects?: number[];
scope?: Scope;
self?: string;
}
10 changes: 5 additions & 5 deletions src/version2/models/orderOfCustomFieldOptions.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/** An ordered list of custom field option IDs and information on where to move them. */
export interface OrderOfCustomFieldOptions {
/**
* A list of IDs of custom field options to move. The order of the custom field option IDs in the list is the order
* they are given after the move. The list must contain custom field options or cascading options, but not both.
*/
customFieldOptionIds: string[];
/**
* The ID of the custom field option or cascading option to place the moved options after. Required if `position`
* isn't provided.
*/
after?: string;
/**
* A list of IDs of custom field options to move. The order of the custom field option IDs in the list is the order
* they are given after the move. The list must contain custom field options or cascading options, but not both.
*/
customFieldOptionIds: string[];
/** The position the custom field options should be moved to. Required if `after` isn't provided. */
position?: string;
}
4 changes: 2 additions & 2 deletions src/version2/models/orderOfIssueTypes.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/** An ordered list of issue type IDs and information about where to move them. */
export interface OrderOfIssueTypes {
/** The ID of the issue type to place the moved issue types after. Required if `position` isn't provided. */
after?: string;
/**
* A list of the issue type IDs to move. The order of the issue type IDs in the list is the order they are given after
* the move.
*/
issueTypeIds: string[];
/** The ID of the issue type to place the moved issue types after. Required if `position` isn't provided. */
after?: string;
/** The position the issue types should be moved to. Required if `after` isn't provided. */
position?: string;
}
12 changes: 6 additions & 6 deletions src/version2/models/pageChangelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ export type PageBeanChangelog = PageChangelog;

/** A page of items. */
export interface PageChangelog {
/** The URL of the page. */
self?: string;
/** If there is another page of results, the URL of the next page. */
nextPage?: string;
/** Whether this is the last page. */
isLast?: boolean;
/** The maximum number of items that could be returned. */
maxResults?: number;
/** If there is another page of results, the URL of the next page. */
nextPage?: string;
/** The URL of the page. */
self?: string;
/** The index of the first item returned. */
startAt?: number;
/** The number of items returned. */
total?: number;
/** Whether this is the last page. */
isLast?: boolean;
/** The list of items. */
values?: Changelog[];
}
12 changes: 6 additions & 6 deletions src/version2/models/pageComment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ export type PageBeanComment = PageComment;

/** A page of items. */
export interface PageComment {
/** The URL of the page. */
self?: string;
/** If there is another page of results, the URL of the next page. */
nextPage?: string;
/** Whether this is the last page. */
isLast?: boolean;
/** The maximum number of items that could be returned. */
maxResults?: number;
/** If there is another page of results, the URL of the next page. */
nextPage?: string;
/** The URL of the page. */
self?: string;
/** The index of the first item returned. */
startAt?: number;
/** The number of items returned. */
total?: number;
/** Whether this is the last page. */
isLast?: boolean;
/** The list of items. */
values?: Comment[];
}
12 changes: 6 additions & 6 deletions src/version2/models/pageComponentWithIssueCount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ export type PageBeanComponentWithIssueCount = PageComponentWithIssueCount;

/** A page of items. */
export interface PageComponentWithIssueCount {
/** The URL of the page. */
self?: string;
/** If there is another page of results, the URL of the next page. */
nextPage?: string;
/** Whether this is the last page. */
isLast?: boolean;
/** The maximum number of items that could be returned. */
maxResults?: number;
/** If there is another page of results, the URL of the next page. */
nextPage?: string;
/** The URL of the page. */
self?: string;
/** The index of the first item returned. */
startAt?: number;
/** The number of items returned. */
total?: number;
/** Whether this is the last page. */
isLast?: boolean;
/** The list of items. */
values?: ComponentWithIssueCount[];
}
12 changes: 6 additions & 6 deletions src/version2/models/pageContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ export type PageBeanContext = PageContext;

/** A page of items. */
export interface PageContext {
/** The URL of the page. */
self?: string;
/** If there is another page of results, the URL of the next page. */
nextPage?: string;
/** Whether this is the last page. */
isLast?: boolean;
/** The maximum number of items that could be returned. */
maxResults?: number;
/** If there is another page of results, the URL of the next page. */
nextPage?: string;
/** The URL of the page. */
self?: string;
/** The index of the first item returned. */
startAt?: number;
/** The number of items returned. */
total?: number;
/** Whether this is the last page. */
isLast?: boolean;
/** The list of items. */
values?: Context[];
}
12 changes: 6 additions & 6 deletions src/version2/models/pageContextForProjectAndIssueType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ export type PageBeanContextForProjectAndIssueType = PageContextForProjectAndIssu

/** A page of items. */
export interface PageContextForProjectAndIssueType {
/** The URL of the page. */
self?: string;
/** If there is another page of results, the URL of the next page. */
nextPage?: string;
/** Whether this is the last page. */
isLast?: boolean;
/** The maximum number of items that could be returned. */
maxResults?: number;
/** If there is another page of results, the URL of the next page. */
nextPage?: string;
/** The URL of the page. */
self?: string;
/** The index of the first item returned. */
startAt?: number;
/** The number of items returned. */
total?: number;
/** Whether this is the last page. */
isLast?: boolean;
/** The list of items. */
values?: ContextForProjectAndIssueType[];
}
12 changes: 6 additions & 6 deletions src/version2/models/pageCustomFieldContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ export type PageBeanCustomFieldContext = PageCustomFieldContext;

/** A page of items. */
export interface PageCustomFieldContext {
/** The URL of the page. */
self?: string;
/** If there is another page of results, the URL of the next page. */
nextPage?: string;
/** Whether this is the last page. */
isLast?: boolean;
/** The maximum number of items that could be returned. */
maxResults?: number;
/** If there is another page of results, the URL of the next page. */
nextPage?: string;
/** The URL of the page. */
self?: string;
/** The index of the first item returned. */
startAt?: number;
/** The number of items returned. */
total?: number;
/** Whether this is the last page. */
isLast?: boolean;
/** The list of items. */
values?: CustomFieldContext[];
}
12 changes: 6 additions & 6 deletions src/version2/models/pageCustomFieldContextDefaultValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ export type PageBeanCustomFieldContextDefaultValue = PageCustomFieldContextDefau

/** A page of items. */
export interface PageCustomFieldContextDefaultValue {
/** The URL of the page. */
self?: string;
/** If there is another page of results, the URL of the next page. */
nextPage?: string;
/** Whether this is the last page. */
isLast?: boolean;
/** The maximum number of items that could be returned. */
maxResults?: number;
/** If there is another page of results, the URL of the next page. */
nextPage?: string;
/** The URL of the page. */
self?: string;
/** The index of the first item returned. */
startAt?: number;
/** The number of items returned. */
total?: number;
/** Whether this is the last page. */
isLast?: boolean;
/** The list of items. */
values?: CustomFieldContextDefaultValue[];
}
12 changes: 6 additions & 6 deletions src/version2/models/pageCustomFieldContextOption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ export type PageBeanCustomFieldContextOption = PageCustomFieldContextOption;

/** A page of items. */
export interface PageCustomFieldContextOption {
/** The URL of the page. */
self?: string;
/** If there is another page of results, the URL of the next page. */
nextPage?: string;
/** Whether this is the last page. */
isLast?: boolean;
/** The maximum number of items that could be returned. */
maxResults?: number;
/** If there is another page of results, the URL of the next page. */
nextPage?: string;
/** The URL of the page. */
self?: string;
/** The index of the first item returned. */
startAt?: number;
/** The number of items returned. */
total?: number;
/** Whether this is the last page. */
isLast?: boolean;
/** The list of items. */
values?: CustomFieldContextOption[];
}
12 changes: 6 additions & 6 deletions src/version2/models/pageCustomFieldContextProjectMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ export type PageBeanCustomFieldContextProjectMapping = PageCustomFieldContextPro

/** A page of items. */
export interface PageCustomFieldContextProjectMapping {
/** The URL of the page. */
self?: string;
/** If there is another page of results, the URL of the next page. */
nextPage?: string;
/** Whether this is the last page. */
isLast?: boolean;
/** The maximum number of items that could be returned. */
maxResults?: number;
/** If there is another page of results, the URL of the next page. */
nextPage?: string;
/** The URL of the page. */
self?: string;
/** The index of the first item returned. */
startAt?: number;
/** The number of items returned. */
total?: number;
/** Whether this is the last page. */
isLast?: boolean;
/** The list of items. */
values?: CustomFieldContextProjectMapping[];
}
Loading

0 comments on commit 0a5c4d1

Please sign in to comment.