Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@avst-api/jira7-server

Package Overview
Dependencies
Maintainers
4
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@avst-api/jira7-server - npm Package Compare versions

Comparing version 0.1.9 to 0.1.10

definitions/objs_filter.d.ts

4

common.d.ts
export interface AnyError extends Record<any, any> {
}
export interface TypedPromise<T, C = any> {
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: C) => TResult2 | PromiseLike<TResult2>) | undefined | null): TypedPromise<TResult1 | TResult2, C>;
catch<TResult = never>(onrejected?: ((reason: C) => TResult | PromiseLike<TResult>) | undefined | null): TypedPromise<T | TResult, C>;
}
//# sourceMappingURL=common.d.ts.map

@@ -1,50 +0,13 @@

import * as t from 'io-ts/es6';
export declare const objs_attachment: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
self: t.StringC;
filename: t.StringC;
author: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>, t.PartialC<{
locale: t.StringC;
groups: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
applicationRoles: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
expand: t.StringC;
}>]>;
created: t.StringC;
mimeType: t.StringC;
properties: t.RecordC<t.StringC, t.AnyC>;
content: t.StringC;
thumbnail: t.StringC;
}>]>;
import { UserFull } from './objs_user';
export interface Attachment {
size: number;
self?: string;
filename?: string;
author?: UserFull;
created?: string;
mimeType?: string;
properties?: Record<string, any>;
content?: string;
thumbnail?: string;
}
//# sourceMappingURL=objs_attachment.d.ts.map

@@ -1,17 +0,1 @@

import * as t from 'io-ts/es6';
import { objs_user_full } from './objs_user';
export const objs_attachment = t.intersection([
t.type({
size: t.number
}),
t.partial({
self: t.string,
filename: t.string,
author: objs_user_full,
created: t.string,
mimeType: t.string,
properties: t.record(t.string, t.any),
content: t.string,
thumbnail: t.string
})
]);
;

@@ -1,8 +0,7 @@

import * as t from 'io-ts/es6';
export declare const objs_avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
export interface AvatarUrls {
'48x48'?: string;
'24x24'?: string;
'16x16'?: string;
'32x32'?: string;
}
//# sourceMappingURL=objs_avatarUrls.d.ts.map

@@ -1,7 +0,1 @@

import * as t from 'io-ts/es6';
export const objs_avatarUrls = t.partial({
'48x48': t.string,
'24x24': t.string,
'16x16': t.string,
'32x32': t.string
});
;

@@ -1,50 +0,18 @@

import * as t from 'io-ts/es6';
export declare const objs_comment: t.PartialC<{
self: t.StringC;
id: t.StringC;
author: t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>;
body: t.StringC;
renderedBody: t.StringC;
updateAuthor: t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>;
created: t.StringC;
updated: t.StringC;
visibility: t.PartialC<{
type: t.UnionC<[t.LiteralC<"group">, t.LiteralC<"role">]>;
value: t.StringC;
}>;
properties: t.ArrayC<t.PartialC<{
key: t.StringC;
value: t.AnyC;
}>>;
}>;
import { EntityProperty } from '../raw-api/common';
import { UserPartial } from './objs_user';
export interface Comment {
self?: string;
id?: string;
author?: UserPartial;
body?: string;
renderedBody?: string;
updateAuthor?: UserPartial;
created?: string;
updated?: string;
visibility?: {
type?: 'group' | 'role';
value?: string;
};
properties?: EntityProperty[];
}
//# sourceMappingURL=objs_comment.d.ts.map

@@ -1,18 +0,1 @@

import * as t from 'io-ts/es6';
import { objs_user_partial } from './objs_user';
import { EntityPropertyCodec } from '../raw-api/common';
export const objs_comment = t.partial({
self: t.string,
id: t.string,
author: objs_user_partial,
body: t.string,
renderedBody: t.string,
updateAuthor: objs_user_partial,
created: t.string,
updated: t.string,
visibility: t.partial({
type: t.union([t.literal('group'), t.literal('role')]),
value: t.string
}),
properties: t.array(EntityPropertyCodec) // TODO: was not able to get this value to be returned, but was on schema
});
;

@@ -1,63 +0,17 @@

import * as t from 'io-ts/es6';
export declare const objs_component: t.IntersectionC<[t.TypeC<{
isAssigneeTypeValid: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
id: t.StringC;
name: t.StringC;
description: t.StringC;
lead: t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>;
leadUserName: t.StringC;
assigneeType: t.UnionC<[t.LiteralC<"PROJECT_DEFAULT">, t.LiteralC<"COMPONENT_LEAD">, t.LiteralC<"PROJECT_LEAD">, t.LiteralC<"UNASSIGNED">]>;
assignee: t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>;
realAssigneeType: t.UnionC<[t.LiteralC<"PROJECT_DEFAULT">, t.LiteralC<"COMPONENT_LEAD">, t.LiteralC<"PROJECT_LEAD">, t.LiteralC<"UNASSIGNED">]>;
realAssignee: t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>;
project: t.StringC;
projectId: t.NumberC;
}>]>;
import { UserPartial } from './objs_user';
export interface Component {
isAssigneeTypeValid: boolean;
self?: string;
id?: string;
name?: string;
description?: string;
lead?: UserPartial;
leadUserName?: string;
assigneeType?: 'PROJECT_DEFAULT' | 'COMPONENT_LEAD' | 'PROJECT_LEAD' | 'UNASSIGNED';
assignee?: UserPartial;
realAssigneeType?: 'PROJECT_DEFAULT' | 'COMPONENT_LEAD' | 'PROJECT_LEAD' | 'UNASSIGNED';
realAssignee?: UserPartial;
project?: string;
projectId?: number;
}
//# sourceMappingURL=objs_component.d.ts.map

@@ -1,21 +0,1 @@

import * as t from 'io-ts/es6';
import { objs_user_partial } from './objs_user';
export const objs_component = t.intersection([
t.type({
isAssigneeTypeValid: t.boolean
}),
t.partial({
self: t.string,
id: t.string,
name: t.string,
description: t.string,
lead: objs_user_partial,
leadUserName: t.string,
assigneeType: t.union([t.literal('PROJECT_DEFAULT'), t.literal('COMPONENT_LEAD'), t.literal('PROJECT_LEAD'), t.literal('UNASSIGNED')]),
assignee: objs_user_partial,
realAssigneeType: t.union([t.literal('PROJECT_DEFAULT'), t.literal('COMPONENT_LEAD'), t.literal('PROJECT_LEAD'), t.literal('UNASSIGNED')]),
realAssignee: objs_user_partial,
project: t.string,
projectId: t.number
})
]);
;

@@ -1,18 +0,11 @@

import * as t from 'io-ts/es6';
export declare const objs_field_meta: t.IntersectionC<[t.TypeC<{
required: t.BooleanC;
}>, t.PartialC<{
schema: t.PartialC<{
type: t.StringC;
system: t.StringC;
items: t.StringC;
custom: t.StringC;
customId: t.NumberC;
}>;
name: t.StringC;
autoCompleteUrl: t.StringC;
hasDefaultValue: t.BooleanC;
operations: t.ArrayC<t.StringC>;
allowedValues: t.ArrayC<t.AnyC>;
}>]>;
import { JsonType } from './objs_json_type';
export interface FieldMeta {
required: boolean;
schema?: JsonType;
name?: string;
autoCompleteUrl?: string;
hasDefaultValue?: boolean;
operations?: string[];
allowedValues?: any[];
}
//# sourceMappingURL=objs_field_meta.d.ts.map

@@ -1,15 +0,1 @@

import * as t from 'io-ts/es6';
import { objs_json_type } from './objs_json_type';
export const objs_field_meta = t.intersection([
t.type({
required: t.boolean
}),
t.partial({
schema: objs_json_type,
name: t.string,
autoCompleteUrl: t.string,
hasDefaultValue: t.boolean,
operations: t.array(t.string),
allowedValues: t.array(t.any)
})
]);
;

@@ -1,6 +0,27 @@

import * as t from 'io-ts/es6';
export declare const objs_group: t.PartialC<{
name: t.StringC;
self: t.StringC;
}>;
import { UserPartial } from './objs_user';
export interface Group {
name?: string;
self?: string;
}
export interface GroupResponse {
name?: string;
self?: string;
users?: {
size: number;
'max-results': number;
'start-index': number;
'end-index': number;
items?: UserPartial[];
};
expand?: string;
}
export interface GetUsersResponse {
self?: string;
nextPage?: string;
maxResults?: number;
startAt?: number;
total?: number;
isLast?: boolean;
values?: UserPartial[];
}
//# sourceMappingURL=objs_group.d.ts.map

@@ -1,5 +0,1 @@

import * as t from 'io-ts/es6';
export const objs_group = t.partial({
name: t.string,
self: t.string
});
;

@@ -1,36 +0,23 @@

import * as t from 'io-ts/es6';
export declare const objs_history_metadata: t.PartialC<{
type: t.StringC;
description: t.StringC;
descriptionKey: t.StringC;
activityDescription: t.StringC;
activityDescriptionKey: t.StringC;
emailDescription: t.StringC;
emailDescriptionKey: t.StringC;
actor: t.PartialC<{
id: t.StringC;
displayName: t.StringC;
displayNameKey: t.StringC;
type: t.StringC;
avatarUrl: t.StringC;
url: t.StringC;
}>;
generator: t.PartialC<{
id: t.StringC;
displayName: t.StringC;
displayNameKey: t.StringC;
type: t.StringC;
avatarUrl: t.StringC;
url: t.StringC;
}>;
cause: t.PartialC<{
id: t.StringC;
displayName: t.StringC;
displayNameKey: t.StringC;
type: t.StringC;
avatarUrl: t.StringC;
url: t.StringC;
}>;
extraData: t.RecordC<t.StringC, t.StringC>;
}>;
interface HistoryMetadataParticipant {
id?: string;
displayName?: string;
displayNameKey?: string;
type?: string;
avatarUrl?: string;
url?: string;
}
export interface HistoryMetadata {
type?: string;
description?: string;
descriptionKey?: string;
activityDescription?: string;
activityDescriptionKey?: string;
emailDescription?: string;
emailDescriptionKey?: string;
actor?: HistoryMetadataParticipant;
generator?: HistoryMetadataParticipant;
cause?: HistoryMetadataParticipant;
extraData?: Record<string, string>;
}
export {};
//# sourceMappingURL=objs_history_metadata.d.ts.map

@@ -1,22 +0,2 @@

import * as t from 'io-ts/es6';
const history_metadata_participant = t.partial({
id: t.string,
displayName: t.string,
displayNameKey: t.string,
type: t.string,
avatarUrl: t.string,
url: t.string
});
export const objs_history_metadata = t.partial({
type: t.string,
description: t.string,
descriptionKey: t.string,
activityDescription: t.string,
activityDescriptionKey: t.string,
emailDescription: t.string,
emailDescriptionKey: t.string,
actor: history_metadata_participant,
generator: history_metadata_participant,
cause: history_metadata_participant,
extraData: t.record(t.string, t.string)
});
;
;

@@ -1,9 +0,8 @@

import * as t from 'io-ts/es6';
export declare const objs_issue_link_type: t.PartialC<{
id: t.StringC;
name: t.StringC;
inward: t.StringC;
outward: t.StringC;
self: t.StringC;
}>;
export interface IssueLinkType {
id?: string;
name?: string;
inward?: string;
outward?: string;
self?: string;
}
//# sourceMappingURL=objs_issue_link_type.d.ts.map

@@ -1,8 +0,1 @@

import * as t from 'io-ts/es6';
export const objs_issue_link_type = t.partial({
id: t.string,
name: t.string,
inward: t.string,
outward: t.string,
self: t.string
});
;

@@ -1,43 +0,15 @@

import * as t from 'io-ts/es6';
export declare const objs_issue_ref: t.PartialC<{
id: t.StringC;
key: t.StringC;
self: t.StringC;
fields: t.PartialC<{
summary: t.StringC;
status: t.PartialC<{
self: t.StringC;
statusColor: t.StringC;
description: t.StringC;
iconUrl: t.StringC;
name: t.StringC;
id: t.StringC;
statusCategory: t.PartialC<{
self: t.StringC;
id: t.StringC;
key: t.StringC;
colorName: t.StringC;
name: t.StringC;
}>;
}>;
priority: t.PartialC<{
self: t.StringC;
statusColor: t.StringC;
description: t.StringC;
iconUrl: t.StringC;
name: t.StringC;
id: t.StringC;
}>;
issuetype: t.IntersectionC<[t.TypeC<{
subtask: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
id: t.StringC;
description: t.StringC;
iconUrl: t.StringC;
name: t.StringC;
avatarId: t.NumberC;
}>]>;
}>;
}>;
import { Status } from './objs_status';
import { Priority } from './objs_priority';
import { IssueType } from './objs_issue_type';
export interface IssueRef {
id?: string;
key?: string;
self?: string;
fields?: {
summary?: string;
status?: Status;
priority?: Priority;
issuetype?: IssueType;
};
}
//# sourceMappingURL=objs_issue_ref.d.ts.map

@@ -1,15 +0,1 @@

import * as t from 'io-ts/es6';
import { objs_status } from './objs_status';
import { objs_priority } from './objs_priority';
import { objs_issue_type } from './objs_issue_type';
export const objs_issue_ref = t.partial({
id: t.string,
key: t.string,
self: t.string,
fields: t.partial({
summary: t.string,
status: objs_status,
priority: objs_priority,
issuetype: objs_issue_type
})
});
;

@@ -1,12 +0,10 @@

import * as t from 'io-ts/es6';
export declare const objs_issue_type: t.IntersectionC<[t.TypeC<{
subtask: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
id: t.StringC;
description: t.StringC;
iconUrl: t.StringC;
name: t.StringC;
avatarId: t.NumberC;
}>]>;
export interface IssueType {
subtask: boolean;
self?: string;
id?: string;
description?: string;
iconUrl?: string;
name?: string;
avatarId?: number;
}
//# sourceMappingURL=objs_issue_type.d.ts.map

@@ -1,14 +0,1 @@

import * as t from 'io-ts/es6';
export const objs_issue_type = t.intersection([
t.type({
subtask: t.boolean
}),
t.partial({
self: t.string,
id: t.string,
description: t.string,
iconUrl: t.string,
name: t.string,
avatarId: t.number
})
]);
;

@@ -1,9 +0,8 @@

import * as t from 'io-ts/es6';
export declare const objs_json_type: t.PartialC<{
type: t.StringC;
system: t.StringC;
items: t.StringC;
custom: t.StringC;
customId: t.NumberC;
}>;
export interface JsonType {
type?: string;
system?: string;
items?: string;
custom?: string;
customId?: number;
}
//# sourceMappingURL=objs_json_type.d.ts.map

@@ -1,8 +0,1 @@

import * as t from 'io-ts/es6';
export const objs_json_type = t.partial({
type: t.string,
system: t.string,
items: t.string,
custom: t.string,
customId: t.number
});
;

@@ -1,2 +0,10 @@

export declare const objs_link_group: any;
import { SimpleLink } from './objs_simple_link';
export interface LinkGroup {
id?: string;
styleClass?: string;
header?: SimpleLink;
weight?: number;
links?: SimpleLink[];
groups?: LinkGroup[];
}
//# sourceMappingURL=objs_link_group.d.ts.map

@@ -1,10 +0,1 @@

import * as t from 'io-ts/es6';
import { objs_simple_link } from './objs_simple_link';
export const objs_link_group = t.recursion('Link Group', () => t.partial({
id: t.string,
styleClass: t.string,
header: objs_simple_link,
weight: t.number,
links: t.array(objs_simple_link),
groups: t.array(objs_link_group)
}));
;

@@ -1,10 +0,9 @@

import * as t from 'io-ts/es6';
export declare const objs_priority: t.PartialC<{
self: t.StringC;
statusColor: t.StringC;
description: t.StringC;
iconUrl: t.StringC;
name: t.StringC;
id: t.StringC;
}>;
export interface Priority {
self?: string;
statusColor?: string;
description?: string;
iconUrl?: string;
name?: string;
id?: string;
}
//# sourceMappingURL=objs_priority.d.ts.map

@@ -1,9 +0,1 @@

import * as t from 'io-ts/es6';
export const objs_priority = t.partial({
self: t.string,
statusColor: t.string,
description: t.string,
iconUrl: t.string,
name: t.string,
id: t.string
});
;

@@ -1,8 +0,7 @@

import * as t from 'io-ts/es6';
export declare const objs_project_category: t.PartialC<{
self: t.StringC;
id: t.StringC;
name: t.StringC;
description: t.StringC;
}>;
export interface ProjectCategory {
self?: string;
id?: string;
name?: string;
description?: string;
}
//# sourceMappingURL=objs_project_category.d.ts.map

@@ -1,7 +0,1 @@

import * as t from 'io-ts/es6';
export const objs_project_category = t.partial({
self: t.string,
id: t.string,
name: t.string,
description: t.string
});
;

@@ -1,15 +0,9 @@

import * as t from 'io-ts/es6';
export declare const objs_project_role: t.PartialC<{
self: t.StringC;
name: t.StringC;
id: t.NumberC;
description: t.StringC;
actors: t.ArrayC<t.PartialC<{
id: t.NumberC;
displayName: t.StringC;
type: t.StringC;
name: t.StringC;
avatarUrl: t.StringC;
}>>;
}>;
import { RoleActor } from './objs_role_actor';
export interface ProjectRole {
self?: string;
name?: string;
id?: number;
description?: string;
actors?: RoleActor[];
}
//# sourceMappingURL=objs_project_role.d.ts.map

@@ -1,9 +0,1 @@

import * as t from 'io-ts/es6';
import { objs_role_actor } from './objs_role_actor';
export const objs_project_role = t.partial({
self: t.string,
name: t.string,
id: t.number,
description: t.string,
actors: t.array(objs_role_actor)
});
;

@@ -1,9 +0,8 @@

import * as t from 'io-ts/es6';
export declare const objs_project_type: t.PartialC<{
key: t.StringC;
formattedKey: t.StringC;
descriptionI18nKey: t.StringC;
icon: t.StringC;
color: t.StringC;
}>;
export interface ProjectType {
key?: string;
formattedKey?: string;
descriptionI18nKey?: string;
icon?: string;
color?: string;
}
//# sourceMappingURL=objs_project_type.d.ts.map

@@ -1,8 +0,1 @@

import * as t from 'io-ts/es6';
export const objs_project_type = t.partial({
key: t.string,
formattedKey: t.string,
descriptionI18nKey: t.string,
icon: t.string,
color: t.string
});
;

@@ -1,167 +0,28 @@

import * as t from 'io-ts/es6';
export declare const objs_project: t.PartialC<{
expand: t.StringC;
self: t.StringC;
id: t.StringC;
key: t.StringC;
description: t.StringC;
lead: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>, t.PartialC<{
locale: t.StringC;
groups: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
applicationRoles: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
expand: t.StringC;
}>]>;
components: t.ArrayC<t.IntersectionC<[t.TypeC<{
isAssigneeTypeValid: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
id: t.StringC;
name: t.StringC;
description: t.StringC;
lead: t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>;
leadUserName: t.StringC;
assigneeType: t.UnionC<[t.LiteralC<"PROJECT_DEFAULT">, t.LiteralC<"COMPONENT_LEAD">, t.LiteralC<"PROJECT_LEAD">, t.LiteralC<"UNASSIGNED">]>;
assignee: t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>;
realAssigneeType: t.UnionC<[t.LiteralC<"PROJECT_DEFAULT">, t.LiteralC<"COMPONENT_LEAD">, t.LiteralC<"PROJECT_LEAD">, t.LiteralC<"UNASSIGNED">]>;
realAssignee: t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>;
project: t.StringC;
projectId: t.NumberC;
}>]>>;
issueTypes: t.ArrayC<t.IntersectionC<[t.TypeC<{
subtask: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
id: t.StringC;
description: t.StringC;
iconUrl: t.StringC;
name: t.StringC;
avatarId: t.NumberC;
}>]>>;
url: t.StringC;
email: t.StringC;
assigneeType: t.UnionC<[t.LiteralC<"PROJECT_LEAD">, t.LiteralC<"UNASSIGNED">]>;
versions: t.ArrayC<t.PartialC<{
expand: t.StringC;
self: t.StringC;
id: t.StringC;
description: t.StringC;
name: t.StringC;
archived: t.BooleanC;
released: t.BooleanC;
overdue: t.BooleanC;
startDate: t.StringC;
releaseDate: t.StringC;
userStartDate: t.StringC;
userReleaseDate: t.StringC;
projectId: t.NumberC;
moveUnfixedIssuesTo: t.StringC;
operations: t.ArrayC<t.PartialC<{
id: t.StringC;
styleClass: t.StringC;
iconClass: t.StringC;
label: t.StringC;
title: t.StringC;
href: t.StringC;
weight: t.NumberC;
}>>;
remotelinks: t.ArrayC<t.PartialC<{
self: t.StringC;
name: t.StringC;
link: t.AnyC;
}>>;
}>>;
name: t.StringC;
roles: t.RecordC<t.StringC, t.StringC>;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
projectKeys: t.ArrayC<t.StringC>;
projectCategory: t.PartialC<{
self: t.StringC;
id: t.StringC;
name: t.StringC;
description: t.StringC;
}>;
projectTypeKey: t.StringC;
archived: t.BooleanC;
}>;
import { UserFull } from './objs_user';
import { Component } from './objs_component';
import { IssueType } from './objs_issue_type';
import { AvatarUrls } from './objs_avatarUrls';
import { ProjectCategory } from './objs_project_category';
import { Version } from './objs_version';
export interface Project {
expand?: string;
self?: string;
id?: string;
key?: string;
description?: string;
lead?: UserFull;
components?: Component[];
issueTypes?: IssueType[];
url?: string;
email?: string;
assigneeType?: 'PROJECT_LEAD' | 'UNASSIGNED';
versions?: Version[];
name?: string;
roles?: Record<string, string>;
avatarUrls?: AvatarUrls;
projectKeys?: string[];
projectCategory?: ProjectCategory;
projectTypeKey?: string;
archived?: boolean;
}
//# sourceMappingURL=objs_project.d.ts.map

@@ -1,28 +0,1 @@

import * as t from 'io-ts/es6';
import { objs_user_full } from './objs_user';
import { objs_component } from './objs_component';
import { objs_issue_type } from './objs_issue_type';
import { objs_avatarUrls } from './objs_avatarUrls';
import { objs_project_category } from './objs_project_category';
import { objs_version } from './objs_version';
export const objs_project = t.partial({
expand: t.string,
self: t.string,
id: t.string,
key: t.string,
description: t.string,
lead: objs_user_full,
components: t.array(objs_component),
issueTypes: t.array(objs_issue_type),
url: t.string,
email: t.string,
assigneeType: t.union([t.literal('PROJECT_LEAD'), t.literal('UNASSIGNED')]),
versions: t.array(objs_version),
name: t.string,
roles: t.record(t.string, t.string),
avatarUrls: objs_avatarUrls,
projectKeys: t.array(t.string),
projectCategory: objs_project_category,
projectTypeKey: t.string,
archived: t.boolean
});
;

@@ -1,13 +0,12 @@

import * as t from 'io-ts/es6';
export declare const objs_property: t.PartialC<{
id: t.StringC;
key: t.StringC;
value: t.StringC;
name: t.StringC;
desc: t.StringC;
type: t.StringC;
defaultValue: t.StringC;
example: t.StringC;
allowedValues: t.ArrayC<t.StringC>;
}>;
export interface Property {
id?: string;
key?: string;
value?: string;
name?: string;
desc?: string;
type?: string;
defaultValue?: string;
example?: string;
allowedValues?: string[];
}
//# sourceMappingURL=objs_property.d.ts.map

@@ -1,12 +0,1 @@

import * as t from 'io-ts/es6';
export const objs_property = t.partial({
id: t.string,
key: t.string,
value: t.string,
name: t.string,
desc: t.string,
type: t.string,
defaultValue: t.string,
example: t.string,
allowedValues: t.array(t.string)
});
;

@@ -1,28 +0,27 @@

import * as t from 'io-ts/es6';
export declare const objs_remote_issue_link: t.PartialC<{
globalId: t.StringC;
application: t.PartialC<{
type: t.StringC;
name: t.StringC;
}>;
relationship: t.StringC;
object: t.PartialC<{
url: t.StringC;
title: t.StringC;
summary: t.StringC;
icon: t.PartialC<{
url16x16: t.StringC;
title: t.StringC;
link: t.StringC;
}>;
status: t.PartialC<{
resolved: t.BooleanC;
icon: t.PartialC<{
url16x16: t.StringC;
title: t.StringC;
link: t.StringC;
}>;
}>;
}>;
}>;
export interface RemoteIssueLink {
globalId?: string;
application?: {
type?: string;
name?: string;
};
relationship?: string;
object?: {
url?: string;
title?: string;
summary?: string;
icon?: {
url16x16?: string;
title?: string;
link?: string;
};
status?: {
resolved?: boolean;
icon?: {
url16x16?: string;
title?: string;
link?: string;
};
};
};
}
//# sourceMappingURL=objs_remote_issue_link.d.ts.map

@@ -1,27 +0,1 @@

import * as t from 'io-ts/es6';
export const objs_remote_issue_link = t.partial({
globalId: t.string,
application: t.partial({
type: t.string,
name: t.string
}),
relationship: t.string,
object: t.partial({
url: t.string,
title: t.string,
summary: t.string,
icon: t.partial({
url16x16: t.string,
title: t.string,
link: t.string
}),
status: t.partial({
resolved: t.boolean,
icon: t.partial({
url16x16: t.string,
title: t.string,
link: t.string
})
})
})
});
;

@@ -1,9 +0,8 @@

import * as t from 'io-ts/es6';
export declare const objs_resolution: t.PartialC<{
self: t.StringC;
description: t.StringC;
iconUrl: t.StringC;
name: t.StringC;
id: t.StringC;
}>;
export interface Resolution {
self?: string;
description?: string;
iconUrl?: string;
name?: string;
id?: string;
}
//# sourceMappingURL=objs_resolution.d.ts.map

@@ -1,8 +0,1 @@

import * as t from 'io-ts/es6';
export const objs_resolution = t.partial({
self: t.string,
description: t.string,
iconUrl: t.string,
name: t.string,
id: t.string
});
;

@@ -1,9 +0,8 @@

import * as t from 'io-ts/es6';
export declare const objs_role_actor: t.PartialC<{
id: t.NumberC;
displayName: t.StringC;
type: t.StringC;
name: t.StringC;
avatarUrl: t.StringC;
}>;
export interface RoleActor {
id?: number;
displayName?: string;
type?: string;
name?: string;
avatarUrl?: string;
}
//# sourceMappingURL=objs_role_actor.d.ts.map

@@ -1,8 +0,1 @@

import * as t from 'io-ts/es6';
export const objs_role_actor = t.partial({
id: t.number,
displayName: t.string,
type: t.string,
name: t.string,
avatarUrl: t.string
});
;

@@ -1,11 +0,10 @@

import * as t from 'io-ts/es6';
export declare const objs_simple_link: t.PartialC<{
id: t.StringC;
styleClass: t.StringC;
iconClass: t.StringC;
label: t.StringC;
title: t.StringC;
href: t.StringC;
weight: t.NumberC;
}>;
export interface SimpleLink {
id?: string;
styleClass?: string;
iconClass?: string;
label?: string;
title?: string;
href?: string;
weight?: number;
}
//# sourceMappingURL=objs_simple_link.d.ts.map

@@ -1,10 +0,1 @@

import * as t from 'io-ts/es6';
export const objs_simple_link = t.partial({
id: t.string,
styleClass: t.string,
iconClass: t.string,
label: t.string,
title: t.string,
href: t.string,
weight: t.number
});
;

@@ -1,11 +0,9 @@

import * as t from 'io-ts/es6';
export declare const objs_simple_list_wrapper: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
export interface SimpleListWrapper {
size: number;
'max-results'?: number;
items?: {
name?: string;
self?: string;
}[];
}
//# sourceMappingURL=objs_simple_list_wrapper.d.ts.map

@@ -1,13 +0,1 @@

import * as t from 'io-ts/es6';
export const objs_simple_list_wrapper = t.intersection([
t.type({
size: t.number
}),
t.partial({
'max-results': t.number,
items: t.array(t.partial({
name: t.string,
self: t.string
}))
})
]);
;

@@ -1,9 +0,8 @@

import * as t from 'io-ts/es6';
export declare const objs_status_category: t.PartialC<{
self: t.StringC;
id: t.StringC;
key: t.StringC;
colorName: t.StringC;
name: t.StringC;
}>;
export interface StatusCategory {
self?: string;
id?: string;
key?: string;
colorName?: string;
name?: string;
}
//# sourceMappingURL=objs_status_category.d.ts.map

@@ -1,8 +0,1 @@

import * as t from 'io-ts/es6';
export const objs_status_category = t.partial({
self: t.string,
id: t.string,
key: t.string,
colorName: t.string,
name: t.string
});
;

@@ -1,17 +0,11 @@

import * as t from 'io-ts/es6';
export declare const objs_status: t.PartialC<{
self: t.StringC;
statusColor: t.StringC;
description: t.StringC;
iconUrl: t.StringC;
name: t.StringC;
id: t.StringC;
statusCategory: t.PartialC<{
self: t.StringC;
id: t.StringC;
key: t.StringC;
colorName: t.StringC;
name: t.StringC;
}>;
}>;
import { StatusCategory } from './objs_status_category';
export interface Status {
self?: string;
statusColor?: string;
description?: string;
iconUrl?: string;
name?: string;
id?: string;
statusCategory?: StatusCategory;
}
//# sourceMappingURL=objs_status.d.ts.map

@@ -1,11 +0,1 @@

import * as t from 'io-ts/es6';
import { objs_status_category } from './objs_status_category';
export const objs_status = t.partial({
self: t.string,
statusColor: t.string,
description: t.string,
iconUrl: t.string,
name: t.string,
id: t.string,
statusCategory: objs_status_category
});
;

@@ -1,38 +0,10 @@

import * as t from 'io-ts/es6';
export declare const objs_transition: t.PartialC<{
id: t.StringC;
name: t.StringC;
to: t.PartialC<{
self: t.StringC;
statusColor: t.StringC;
description: t.StringC;
iconUrl: t.StringC;
name: t.StringC;
id: t.StringC;
statusCategory: t.PartialC<{
self: t.StringC;
id: t.StringC;
key: t.StringC;
colorName: t.StringC;
name: t.StringC;
}>;
}>;
fields: t.RecordC<t.StringC, t.IntersectionC<[t.TypeC<{
required: t.BooleanC;
}>, t.PartialC<{
schema: t.PartialC<{
type: t.StringC;
system: t.StringC;
items: t.StringC;
custom: t.StringC;
customId: t.NumberC;
}>;
name: t.StringC;
autoCompleteUrl: t.StringC;
hasDefaultValue: t.BooleanC;
operations: t.ArrayC<t.StringC>;
allowedValues: t.ArrayC<t.AnyC>;
}>]>>;
expand: t.StringC;
}>;
import { FieldMeta } from './objs_field_meta';
import { Status } from './objs_status';
export interface Transition {
id?: string;
name?: string;
to?: Status;
fields?: Record<string, FieldMeta>;
expand?: string;
}
//# sourceMappingURL=objs_transition.d.ts.map

@@ -1,10 +0,1 @@

import * as t from 'io-ts/es6';
import { objs_field_meta } from './objs_field_meta';
import { objs_status } from './objs_status';
export const objs_transition = t.partial({
id: t.string,
name: t.string,
to: objs_status,
fields: t.record(t.string, objs_field_meta),
expand: t.string
});
;

@@ -1,55 +0,19 @@

import * as t from 'io-ts/es6';
export declare const objs_user_partial: t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>;
export declare const objs_user_full: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>, t.PartialC<{
locale: t.StringC;
groups: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
applicationRoles: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
expand: t.StringC;
}>]>;
import { AvatarUrls } from './objs_avatarUrls';
import { SimpleListWrapper } from './objs_simple_list_wrapper';
export interface UserPartial {
active: boolean;
self?: string;
key?: string;
name?: string;
emailAddress?: string;
avatarUrls?: AvatarUrls;
displayName?: string;
timeZone?: string;
}
export interface UserFull extends UserPartial {
locale?: string;
groups?: SimpleListWrapper;
applicationRoles?: SimpleListWrapper;
expand?: string;
}
//# sourceMappingURL=objs_user.d.ts.map

@@ -1,26 +0,2 @@

import * as t from 'io-ts/es6';
import { objs_avatarUrls } from './objs_avatarUrls';
import { objs_simple_list_wrapper } from './objs_simple_list_wrapper';
export const objs_user_partial = t.intersection([
t.type({
active: t.boolean
}),
t.partial({
self: t.string,
key: t.string,
name: t.string,
emailAddress: t.string,
avatarUrls: objs_avatarUrls,
displayName: t.string,
timeZone: t.string
})
]);
export const objs_user_full = t.intersection([
objs_user_partial,
t.partial({
locale: t.string,
groups: objs_simple_list_wrapper,
applicationRoles: objs_simple_list_wrapper,
expand: t.string
})
]);
;
;

@@ -1,32 +0,24 @@

import * as t from 'io-ts/es6';
export declare const objs_version: t.PartialC<{
expand: t.StringC;
self: t.StringC;
id: t.StringC;
description: t.StringC;
name: t.StringC;
archived: t.BooleanC;
released: t.BooleanC;
overdue: t.BooleanC;
startDate: t.StringC;
releaseDate: t.StringC;
userStartDate: t.StringC;
userReleaseDate: t.StringC;
projectId: t.NumberC;
moveUnfixedIssuesTo: t.StringC;
operations: t.ArrayC<t.PartialC<{
id: t.StringC;
styleClass: t.StringC;
iconClass: t.StringC;
label: t.StringC;
title: t.StringC;
href: t.StringC;
weight: t.NumberC;
}>>;
remotelinks: t.ArrayC<t.PartialC<{
self: t.StringC;
name: t.StringC;
link: t.AnyC;
}>>;
}>;
import { SimpleLink } from './objs_simple_link';
export interface Version {
expand?: string;
self?: string;
id?: string;
description?: string;
name?: string;
archived?: boolean;
released?: boolean;
overdue?: boolean;
startDate?: string;
releaseDate?: string;
userStartDate?: string;
userReleaseDate?: string;
projectId?: number;
moveUnfixedIssuesTo?: string;
operations?: SimpleLink[];
remotelinks?: {
self?: string;
name?: string;
link?: any;
}[];
}
//# sourceMappingURL=objs_version.d.ts.map

@@ -1,24 +0,1 @@

import * as t from 'io-ts/es6';
import { objs_simple_link } from './objs_simple_link';
export const objs_version = t.partial({
expand: t.string,
self: t.string,
id: t.string,
description: t.string,
name: t.string,
archived: t.boolean,
released: t.boolean,
overdue: t.boolean,
startDate: t.string,
releaseDate: t.string,
userStartDate: t.string,
userReleaseDate: t.string,
projectId: t.number,
moveUnfixedIssuesTo: t.string,
operations: t.array(objs_simple_link),
remotelinks: t.array(t.partial({
self: t.string,
name: t.string,
link: t.any // TODO: find type
}))
});
;

@@ -1,49 +0,19 @@

import * as t from 'io-ts/es6';
export declare const objs_worklog: t.PartialC<{
self: t.StringC;
author: t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>;
updateAuthor: t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>;
comment: t.StringC;
created: t.StringC;
updated: t.StringC;
visibility: t.PartialC<{
type: t.UnionC<[t.LiteralC<"group">, t.LiteralC<"role">]>;
value: t.StringC;
}>;
started: t.StringC;
timeSpent: t.StringC;
timeSpentSeconds: t.NumberC;
id: t.StringC;
issueId: t.StringC;
}>;
import { UserPartial } from './objs_user';
export interface Worklog {
self?: string;
author?: UserPartial;
updateAuthor?: UserPartial;
comment?: string;
created?: string;
updated?: string;
visibility?: {
type?: 'group' | 'role';
value?: string;
};
started?: string;
timeSpent?: string;
timeSpentSeconds?: number;
id?: string;
issueId?: string;
}
//# sourceMappingURL=objs_worklog.d.ts.map

@@ -1,19 +0,1 @@

import * as t from 'io-ts/es6';
import { objs_user_partial } from './objs_user';
export const objs_worklog = t.partial({
self: t.string,
author: objs_user_partial,
updateAuthor: objs_user_partial,
comment: t.string,
created: t.string,
updated: t.string,
visibility: t.partial({
type: t.union([t.literal('group'), t.literal('role')]),
value: t.string
}),
started: t.string,
timeSpent: t.string,
timeSpentSeconds: t.number,
id: t.string,
issueId: t.string
});
;
import { BadRequestError, AnythingButUndefined, UnauthorizedError, ForbiddenError, NotFoundError, TooManyRequestsError, ServerError, HttpError, RequestValidationError, UnexpectedError, Response } from '@avst-api/commons';
import { TypedPromise } from '../common';
import { ErrorStrategyBuilder } from '../builder/errorStrategy';

@@ -71,4 +70,4 @@ export interface AtlassianErrorResponse {

}
export declare function executeRequest<T, E, O = any, Y = AtlassianErrorResponse>(promise: () => Promise<Response<any>>, errorHandlers?: ErrorStrategyHandlers, skipBodyParsing?: boolean, attempt?: number, postProcessingPromise?: (body: O, response: Response<any>) => Promise<T>): TypedPromise<T | E, HttpError<Y | AtlassianErrorResponse> | UnexpectedError>;
export declare function executeRequest<T, E, Y = AtlassianErrorResponse>(promise: () => Promise<Response<any>>, errorHandlers?: ErrorStrategyHandlers, attempt?: number): Promise<T>;
export declare function injectBuilders(options: any): any;
//# sourceMappingURL=common.d.ts.map
import { BadRequestError, UnauthorizedError, ForbiddenError, NotFoundError, TooManyRequestsError, ServerError, HttpError, RequestValidationError, UnexpectedError, RetryRequested, delay, PropagationRequested } from '@avst-api/commons';
import { ErrorStrategyBuilder } from '../builder/errorStrategy';
export function executeRequest(promise, errorHandlers, skipBodyParsing = false, attempt = 1, postProcessingPromise) {
export async function executeRequest(promise, errorHandlers, attempt = 1) {
const currentStack = new Error().stack;
const errorHandlersCopy = errorHandlers ? Object.assign({}, errorHandlers) : undefined; // Creating a shallow copy as the error handling methods will be progressively deleted when propagation is requested
return promise().then(res => {
try {
const res = await promise();
if (res.ok) {
if (skipBodyParsing) {
return Promise.resolve(undefined);
}
else {
if (postProcessingPromise) {
return res.json().then(body => postProcessingPromise(body, res));
}
else {
return res.json();
}
}
return res.json();
}
else {
return res.json().then((errors) => Promise.reject(mapStatusCodeToError(res, (errors && Array.isArray(errors.errorMessages)) ? errors.errorMessages.join(', ') : undefined)));
const errors = await res.json();
const err = mapStatusCodeToError(res, (errors && Array.isArray(errors.errorMessages)) ? errors.errorMessages.join(', ') : undefined);
if (currentStack && err.stack) {
err.stack = currentStack.replace('Error', err.stack.split('\n')[0]);
}
throw err;
}
}).catch(originalError => {
}
catch (originalError) {
try {

@@ -28,10 +26,11 @@ return handleError(originalError, attempt, errorHandlersCopy);

if (error instanceof RetryRequested) {
return delay(error.delay).then(() => executeRequest(promise, errorHandlers, skipBodyParsing, ++attempt));
await delay(error.delay);
return executeRequest(promise, errorHandlers, ++attempt);
}
if (error instanceof PropagationRequested) {
return Promise.reject(originalError);
throw originalError;
}
return Promise.reject(originalError);
throw error;
}
});
}
}

@@ -130,13 +129,14 @@ export function injectBuilders(options) {

function mapStatusCodeToError(response, reason) {
const fetchId = response.headers.get('x-hzn-fetch-id');
switch (response.status) {
case 400:
return new BadRequestError(response, getMessage(response.status, reason));
return new BadRequestError(response, getMessage(response.status, reason, fetchId));
case 401:
return new UnauthorizedError(response, getMessage(response.status, reason));
return new UnauthorizedError(response, getMessage(response.status, reason, fetchId));
case 403:
return new ForbiddenError(response, getMessage(response.status, reason));
return new ForbiddenError(response, getMessage(response.status, reason, fetchId));
case 404:
return new NotFoundError(response, getMessage(response.status, reason));
return new NotFoundError(response, getMessage(response.status, reason, fetchId));
case 429:
return new TooManyRequestsError(response, getMessage(response.status, reason));
return new TooManyRequestsError(response, getMessage(response.status, reason, fetchId));
case 500:

@@ -148,9 +148,12 @@ case 501:

case 505:
return new ServerError(response, getMessage(response.status, reason));
return new ServerError(response, getMessage(response.status, reason, fetchId));
default:
return new HttpError(response, getMessage(response.status, reason), 'ClientError');
return new HttpError(response, getMessage(response.status, reason, fetchId), 'ClientError');
}
}
function getMessage(statusCode, reason) {
function getMessage(statusCode, reason, fetchId) {
let message = `Unexpected HTTP response: ${statusCode}`;
if (fetchId) {
message += ` - Fetch ID: ${fetchId}`;
}
if (reason) {

@@ -157,0 +160,0 @@ message += ` - Reason: ${reason}`;

@@ -7,3 +7,3 @@ import { Filter } from '../types/filter';

*/
export declare function getFilter<T = Filter.GetFilter.Response.OK>(options: Filter.GetFilter.Options.HandledApi): import("../common").TypedPromise<Filter.GetFilter.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function getFilter<T = Filter.GetFilter.Response.OK>(options: Filter.GetFilter.Options.HandledApi): Promise<import("../definitions/objs_filter").GetFilterRespone>;
//# sourceMappingURL=filter.d.ts.map

@@ -7,3 +7,3 @@ import { Group } from '../types/group';

*/
export declare function createGroup<T = Group.CreateGroup.Response.OK>(options: Group.CreateGroup.Options.HandledApi): import("../common").TypedPromise<Group.CreateGroup.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function createGroup<T = Group.CreateGroup.Response.OK>(options: Group.CreateGroup.Options.HandledApi): Promise<import("../definitions/objs_group").GroupResponse>;
/**

@@ -14,3 +14,3 @@ * Deletes a group by given group parameter.

*/
export declare function removeGroup<T = undefined>(options: Group.RemoveGroup.Options.HandledApi): import("../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function removeGroup<T = Group.RemoveGroup.Response.OK>(options: Group.RemoveGroup.Options.HandledApi): Promise<undefined>;
//# sourceMappingURL=group.d.ts.map

@@ -7,3 +7,3 @@ import { Group } from '../../types/group';

*/
export declare function getUsersFromGroup<T = Group.User.GetUsers.Response.OK>(options: Group.User.GetUsers.Options.HandledApi): import("../../common").TypedPromise<Group.User.GetUsers.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getUsersFromGroup<T = Group.User.GetUsers.Response.OK>(options: Group.User.GetUsers.Options.HandledApi): Promise<import("../../definitions/objs_group").GetUsersResponse>;
/**

@@ -14,3 +14,3 @@ * Adds given user to a group.

*/
export declare function addUsersToGroup<T = Group.User.AddUsers.Response.OK>(options: Group.User.AddUsers.Options.HandledApi): import("../../common").TypedPromise<Group.User.AddUsers.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function addUsersToGroup<T = Group.User.AddUsers.Response.OK>(options: Group.User.AddUsers.Options.HandledApi): Promise<import("../../definitions/objs_group").GroupResponse>;
/**

@@ -21,3 +21,3 @@ * Removes given user from a group.

*/
export declare function removeUsersFromGroup<T = undefined>(options: Group.User.RemoveUsers.Options.HandledApi): import("../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function removeUsersFromGroup<T = Group.User.RemoveUsers.Response.OK>(options: Group.User.RemoveUsers.Options.HandledApi): Promise<undefined>;
//# sourceMappingURL=user.d.ts.map

@@ -7,3 +7,3 @@ import { Instance } from '../types/instance';

*/
export declare function getApplicationProperty<T = Instance.GetApplicationProperty.Response.OK>(options: Instance.GetApplicationProperty.Options.HandledApi): import("../common").TypedPromise<Instance.GetApplicationProperty.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function getApplicationProperty<T = Instance.GetApplicationProperty.Response.OK>(options: Instance.GetApplicationProperty.Options.HandledApi): Promise<import("../definitions/objs_property").Property>;
/**

@@ -14,3 +14,3 @@ * Modify an application property via PUT. The "value" field present in the PUT will override the existing value.

*/
export declare function setApplicationProperty<T = Instance.SetApplicationProperty.Response.OK>(options: Instance.SetApplicationProperty.Options.HandledApi): import("../common").TypedPromise<Instance.SetApplicationProperty.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function setApplicationProperty<T = Instance.SetApplicationProperty.Response.OK>(options: Instance.SetApplicationProperty.Options.HandledApi): Promise<import("../definitions/objs_property").Property>;
/**

@@ -21,3 +21,3 @@ * Returns the properties that are displayed on the "General Configuration > Advanced Settings" page.

*/
export declare function getAdvancedSettings<T = Instance.GetAdvancedSettings.Response.OK[]>(options: Instance.GetAdvancedSettings.Options.HandledApi): import("../common").TypedPromise<Instance.GetAdvancedSettings.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function getAdvancedSettings<T = Instance.GetAdvancedSettings.Response.OK>(options: Instance.GetAdvancedSettings.Options.HandledApi): Promise<Instance.GetAdvancedSettings.Response.OK>;
/**

@@ -28,3 +28,3 @@ * Returns the information if the optional features in JIRA are enabled or disabled. If the time tracking is enabled, it also returns the detailed information about time tracking configuration.

*/
export declare function getInstanceConfiguration<T = Instance.GetConfiguration.Response.OK>(options: Instance.GetConfiguration.Options.HandledApi): import("../common").TypedPromise<Instance.GetConfiguration.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function getInstanceConfiguration<T = Instance.GetConfiguration.Response.OK>(options: Instance.GetConfiguration.Options.HandledApi): Promise<import("../definitions/objs_instance").GetConfigurationResponse>;
/**

@@ -35,3 +35,3 @@ * Returns general information about the current JIRA server.

*/
export declare function getInstanceInfo<T = Instance.GetInfo.Response.OK>(options: Instance.GetInfo.Options.HandledApi): import("../common").TypedPromise<Instance.GetInfo.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function getInstanceInfo<T = Instance.GetInfo.Response.OK>(options: Instance.GetInfo.Options.HandledApi): Promise<import("../definitions/objs_instance").GetInfoResponse>;
//# sourceMappingURL=instance.d.ts.map

@@ -10,3 +10,3 @@ import { Issue } from '../types/issue';

*/
export declare function createIssue<T = Issue.CreateIssue.Response.OK>(options: Issue.CreateIssue.Options.HandledApi): import("../common").TypedPromise<Issue.CreateIssue.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function createIssue<T = Issue.CreateIssue.Response.OK>(options: Issue.CreateIssue.Options.HandledApi): Promise<Issue.CreateIssue.Response.OK>;
/**

@@ -17,3 +17,3 @@ * Delete an issue. If the issue has subtasks you must set the parameter deleteSubtasks=true to delete the issue. You cannot delete an issue without its subtasks also being deleted.

*/
export declare function deleteIssue<T = undefined>(options: Issue.DeleteIssue.Options.HandledApi): import("../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function deleteIssue<T = Issue.DeleteIssue.Response.OK>(options: Issue.DeleteIssue.Options.HandledApi): Promise<undefined>;
/**

@@ -25,3 +25,3 @@ * Returns a full representation of the issue for the given issue key.

*/
export declare function getIssue<T = Issue.GetIssue.Response.OK>(options: Issue.GetIssue.Options.HandledApi): import("../common").TypedPromise<Issue.GetIssue.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function getIssue<T = Issue.GetIssue.Response.OK>(options: Issue.GetIssue.Options.HandledApi): Promise<import("../definitions/objs_issue").IssueResponse>;
/**

@@ -37,3 +37,3 @@ * Edits an issue from a JSON representation.

*/
export declare function editIssue<T = undefined>(options: Issue.EditIssue.Options.HandledApi): import("../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function editIssue<T = Issue.EditIssue.Response.OK>(options: Issue.EditIssue.Options.HandledApi): Promise<undefined>;
/**

@@ -44,3 +44,3 @@ * Assigns an issue to a user. You can use this resource to assign issues when the user submitting the request has the assign permission but not the edit issue permission. If the name is "-1" automatic assignee is used. A null name will remove the assignee.

*/
export declare function assignIssue<T = undefined>(options: Issue.AssignIssue.Options.HandledApi): import("../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function assignIssue<T = Issue.AssignIssue.Response.OK>(options: Issue.AssignIssue.Options.HandledApi): Promise<undefined>;
/**

@@ -51,3 +51,3 @@ * Sends a notification (email) to the list or recipients defined in the request.

*/
export declare function sendNotificationForIssue<T = undefined>(options: Issue.SendNotification.Options.HandledApi): import("../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function sendNotificationForIssue<T = Issue.SendNotification.Response.OK>(options: Issue.SendNotification.Options.HandledApi): Promise<undefined>;
//# sourceMappingURL=issue.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssueAttachment<T = Issue.Attachment.GetAttachment.Response.OK>(options: Issue.Attachment.GetAttachment.Options.HandledApi): import("../../common").TypedPromise<Issue.Attachment.GetAttachment.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getIssueAttachment<T = Issue.Attachment.GetAttachment.Response.OK>(options: Issue.Attachment.GetAttachment.Options.HandledApi): Promise<import("../../definitions/objs_attachment").Attachment>;
/**

@@ -14,3 +14,3 @@ * Remove an attachment from an issue.

*/
export declare function removeIssueAttachment<T = undefined>(options: Issue.Attachment.RemoveAttachment.Options.HandledApi): import("../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function removeIssueAttachment<T = Issue.Attachment.RemoveAttachment.Response.OK>(options: Issue.Attachment.RemoveAttachment.Options.HandledApi): Promise<undefined>;
/**

@@ -21,3 +21,3 @@ * Add one or more attachments to an issue.

*/
export declare function addIssueAttachment<T = Issue.Attachment.AddAttachment.Response.OK[]>(options: Issue.Attachment.AddAttachment.Options.HandledApi): import("../../common").TypedPromise<Issue.Attachment.AddAttachment.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function addIssueAttachment<T = Issue.Attachment.AddAttachment.Response.OK>(options: Issue.Attachment.AddAttachment.Options.HandledApi): Promise<Issue.Attachment.AddAttachment.Response.OK>;
//# sourceMappingURL=attachment.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../../types/issue';

*/
export declare function getIssueAttachmentMetadata<T = Issue.Attachment.Metadata.GetMetadata.Response.OK>(options: Issue.Attachment.Metadata.GetMetadata.Options.HandledApi): import("../../../common").TypedPromise<Issue.Attachment.Metadata.GetMetadata.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../../common").AtlassianErrorResponse>>;
export declare function getIssueAttachmentMetadata<T = Issue.Attachment.Metadata.GetMetadata.Response.OK>(options: Issue.Attachment.Metadata.GetMetadata.Options.HandledApi): Promise<Issue.Attachment.Metadata.GetMetadata.Response.OK>;
//# sourceMappingURL=metadata.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssueComments<T = Issue.Comment.GetComments.Response.OK>(options: Issue.Comment.GetComments.Options.HandledApi): import("../../common").TypedPromise<Issue.Comment.GetComments.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getIssueComments<T = Issue.Comment.GetComments.Response.OK>(options: Issue.Comment.GetComments.Options.HandledApi): Promise<Issue.Comment.GetComments.Response.OK>;
/**

@@ -14,3 +14,3 @@ * Adds a new comment to an issue.

*/
export declare function addIssueComment<T = Issue.Comment.AddComment.Response.OK>(options: Issue.Comment.AddComment.Options.HandledApi): import("../../common").TypedPromise<Issue.Comment.AddComment.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function addIssueComment<T = Issue.Comment.AddComment.Response.OK>(options: Issue.Comment.AddComment.Options.HandledApi): Promise<import("../../definitions/objs_comment").Comment>;
/**

@@ -21,3 +21,3 @@ * Returns a single comment.

*/
export declare function getIssueComment<T = Issue.Comment.GetComment.Response.OK>(options: Issue.Comment.GetComment.Options.HandledApi): import("../../common").TypedPromise<Issue.Comment.GetComment.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getIssueComment<T = Issue.Comment.GetComment.Response.OK>(options: Issue.Comment.GetComment.Options.HandledApi): Promise<import("../../definitions/objs_comment").Comment>;
/**

@@ -28,3 +28,3 @@ * Updates an existing comment using its JSON representation.

*/
export declare function updateIssueComment<T = Issue.Comment.UpdateComment.Response.OK>(options: Issue.Comment.UpdateComment.Options.HandledApi): import("../../common").TypedPromise<Issue.Comment.UpdateComment.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function updateIssueComment<T = Issue.Comment.UpdateComment.Response.OK>(options: Issue.Comment.UpdateComment.Options.HandledApi): Promise<import("../../definitions/objs_comment").Comment>;
/**

@@ -35,3 +35,3 @@ * Deletes an existing comment.

*/
export declare function deleteIssueComment<T = undefined>(options: Issue.Comment.DeleteComment.Options.HandledApi): import("../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function deleteIssueComment<T = Issue.Comment.DeleteComment.Response.OK>(options: Issue.Comment.DeleteComment.Options.HandledApi): Promise<undefined>;
//# sourceMappingURL=comment.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssueFields<T = Issue.Field.GetFields.Response.OK[]>(options: Issue.Field.GetFields.Options.HandledApi): import("../../common").TypedPromise<Issue.Field.GetFields.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getIssueFields<T = Issue.Field.GetFields.Response.OK>(options: Issue.Field.GetFields.Options.HandledApi): Promise<Issue.Field.GetFields.Response.OK>;
//# sourceMappingURL=field.d.ts.map

@@ -6,3 +6,3 @@ import { Issue } from '../../../types/issue';

*/
export declare function getIssueCustomFields<T = Issue.Field.Custom.GetFields.Response.OK>(options: Issue.Field.Custom.GetFields.Options.HandledApi): import("../../../common").TypedPromise<Issue.Field.Custom.GetFields.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../../common").AtlassianErrorResponse>>;
export declare function getIssueCustomFields<T = Issue.Field.Custom.GetFields.Response.OK>(options: Issue.Field.Custom.GetFields.Options.HandledApi): Promise<Issue.Field.Custom.GetFields.Response.OK>;
//# sourceMappingURL=custom.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../../../types/issue';

*/
export declare function getIssueCustomFieldOption<T = Issue.Field.Custom.Option.GetOption.Response.OK>(options: Issue.Field.Custom.Option.GetOption.Options.HandledApi): import("../../../../common").TypedPromise<Issue.Field.Custom.Option.GetOption.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../../../common").AtlassianErrorResponse>>;
export declare function getIssueCustomFieldOption<T = Issue.Field.Custom.Option.GetOption.Response.OK>(options: Issue.Field.Custom.Option.GetOption.Options.HandledApi): Promise<Issue.Field.Custom.Option.GetOption.Response.OK>;
//# sourceMappingURL=option.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function createIssueLink<T = undefined>(options: Issue.Link.CreateLink.Options.HandledApi): import("../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function createIssueLink<T = Issue.Link.CreateLink.Response.OK>(options: Issue.Link.CreateLink.Options.HandledApi): Promise<undefined>;
/**

@@ -14,3 +14,3 @@ * Returns an issue link with the specified id.

*/
export declare function getIssueLink<T = Issue.Link.GetLink.Response.OK>(options: Issue.Link.GetLink.Options.HandledApi): import("../../common").TypedPromise<Issue.Link.GetLink.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getIssueLink<T = Issue.Link.GetLink.Response.OK>(options: Issue.Link.GetLink.Options.HandledApi): Promise<Issue.Link.GetLink.Response.OK>;
/**

@@ -21,3 +21,3 @@ * Deletes an issue link with the specified id. To be able to delete an issue link you must be able to view both issues and must have the link issue permission for at least one of the issues.

*/
export declare function deleteIssueLink<T = undefined>(options: Issue.Link.DeleteLink.Options.HandledApi): import("../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function deleteIssueLink<T = Issue.Link.DeleteLink.Response.OK>(options: Issue.Link.DeleteLink.Options.HandledApi): Promise<undefined>;
//# sourceMappingURL=link.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../../types/issue';

*/
export declare function getRemoteIssueLinks<T = Issue.Link.Remote.GetLinks.Response.OK[]>(options: Issue.Link.Remote.GetLinks.Options.HandledApi): import("../../../common").TypedPromise<Issue.Link.Remote.GetLinks.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../../common").AtlassianErrorResponse>>;
export declare function getRemoteIssueLinks<T = Issue.Link.Remote.GetLinks.Response.OK>(options: Issue.Link.Remote.GetLinks.Options.HandledApi): Promise<Issue.Link.Remote.GetLinks.Response.OK>;
/**

@@ -14,3 +14,3 @@ * Creates or updates a remote issue link from a JSON representation. If a globalId is provided and a remote issue link exists with that globalId, the remote issue link is updated. Otherwise, the remote issue link is created.

*/
export declare function createOrUpdateRemoteIssueLink<T = Issue.Link.Remote.CreateOrUpdateLink.Response.OK>(options: Issue.Link.Remote.CreateOrUpdateLink.Options.HandledApi): import("../../../common").TypedPromise<Issue.Link.Remote.CreateOrUpdateLink.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../../common").AtlassianErrorResponse>>;
export declare function createOrUpdateRemoteIssueLink<T = Issue.Link.Remote.CreateOrUpdateLink.Response.OK>(options: Issue.Link.Remote.CreateOrUpdateLink.Options.HandledApi): Promise<Issue.Link.Remote.CreateOrUpdateLink.Response.OK>;
/**

@@ -21,3 +21,3 @@ * Delete the remote issue link with the given global id on the issue.

*/
export declare function deleteRemoteIssueLinkByGlobalId<T = undefined>(options: Issue.Link.Remote.DeleteLinkByGlobalId.Options.HandledApi): import("../../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../../common").AtlassianErrorResponse>>;
export declare function deleteRemoteIssueLinkByGlobalId<T = Issue.Link.Remote.DeleteLinkByGlobalId.Response.OK>(options: Issue.Link.Remote.DeleteLinkByGlobalId.Options.HandledApi): Promise<undefined>;
/**

@@ -28,3 +28,3 @@ * Get the remote issue link with the given id on the issue.

*/
export declare function getRemoteIssueLink<T = Issue.Link.Remote.GetLink.Response.OK>(options: Issue.Link.Remote.GetLink.Options.HandledApi): import("../../../common").TypedPromise<Issue.Link.Remote.GetLink.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../../common").AtlassianErrorResponse>>;
export declare function getRemoteIssueLink<T = Issue.Link.Remote.GetLink.Response.OK>(options: Issue.Link.Remote.GetLink.Options.HandledApi): Promise<Issue.Link.Remote.GetLink.Response.OK>;
/**

@@ -35,3 +35,3 @@ * Updates a remote issue link from a JSON representation. Any fields not provided are set to null.

*/
export declare function updateRemoteIssueLink<T = undefined>(options: Issue.Link.Remote.UpdateLink.Options.HandledApi): import("../../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../../common").AtlassianErrorResponse>>;
export declare function updateRemoteIssueLink<T = Issue.Link.Remote.UpdateLink.Response.OK>(options: Issue.Link.Remote.UpdateLink.Options.HandledApi): Promise<undefined>;
/**

@@ -42,3 +42,3 @@ * Delete the remote issue link with the given id on the issue.

*/
export declare function deleteRemoteIssueLink<T = undefined>(options: Issue.Link.Remote.DeleteLink.Options.HandledApi): import("../../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../../common").AtlassianErrorResponse>>;
export declare function deleteRemoteIssueLink<T = Issue.Link.Remote.DeleteLink.Response.OK>(options: Issue.Link.Remote.DeleteLink.Options.HandledApi): Promise<undefined>;
//# sourceMappingURL=remote.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../../types/issue';

*/
export declare function getIssueLinkTypes<T = Issue.Link.Type.GetTypes.Response.OK>(options: Issue.Link.Type.GetTypes.Options.HandledApi): import("../../../common").TypedPromise<Issue.Link.Type.GetTypes.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../../common").AtlassianErrorResponse>>;
export declare function getIssueLinkTypes<T = Issue.Link.Type.GetTypes.Response.OK>(options: Issue.Link.Type.GetTypes.Options.HandledApi): Promise<Issue.Link.Type.GetTypes.Response.OK>;
/**

@@ -14,3 +14,3 @@ * Returns for a given issue link type id all information about this issue link type.

*/
export declare function getIssueLinkType<T = Issue.Link.Type.GetType.Response.OK>(options: Issue.Link.Type.GetType.Options.HandledApi): import("../../../common").TypedPromise<Issue.Link.Type.GetType.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../../common").AtlassianErrorResponse>>;
export declare function getIssueLinkType<T = Issue.Link.Type.GetType.Response.OK>(options: Issue.Link.Type.GetType.Options.HandledApi): Promise<import("../../../definitions/objs_issue_link_type").IssueLinkType>;
//# sourceMappingURL=type.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getEditIssueMetadata<T = Issue.Metadata.GetEditMetadata.Response.OK>(options: Issue.Metadata.GetEditMetadata.Options.HandledApi): import("../../common").TypedPromise<Issue.Metadata.GetEditMetadata.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getEditIssueMetadata<T = Issue.Metadata.GetEditMetadata.Response.OK>(options: Issue.Metadata.GetEditMetadata.Options.HandledApi): Promise<Issue.Metadata.GetEditMetadata.Response.OK>;
/**

@@ -17,3 +17,3 @@ * Returns the meta data for creating issues. This includes the available projects, issue types and fields, including field types and whether or not those fields are required. Projects will not be returned if the user does not have permission to create issues in that project.

*/
export declare function getCreateIssueMetadata<T = Issue.Metadata.GetCreateMetadata.Response.OK>(options: Issue.Metadata.GetCreateMetadata.Options.HandledApi): import("../../common").TypedPromise<Issue.Metadata.GetCreateMetadata.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getCreateIssueMetadata<T = Issue.Metadata.GetCreateMetadata.Response.OK>(options: Issue.Metadata.GetCreateMetadata.Options.HandledApi): Promise<Issue.Metadata.GetCreateMetadata.Response.OK>;
//# sourceMappingURL=metadata.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssuePriorities<T = Issue.Priority.GetPriorities.Response.OK[]>(options: Issue.Priority.GetPriorities.Options.HandledApi): import("../../common").TypedPromise<Issue.Priority.GetPriorities.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getIssuePriorities<T = Issue.Priority.GetPriorities.Response.OK>(options: Issue.Priority.GetPriorities.Options.HandledApi): Promise<Issue.Priority.GetPriorities.Response.OK>;
/**

@@ -14,3 +14,3 @@ * Returns an issue priority.

*/
export declare function getIssuePriority<T = Issue.Priority.GetPriority.Response.OK>(options: Issue.Priority.GetPriority.Options.HandledApi): import("../../common").TypedPromise<Issue.Priority.GetPriority.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getIssuePriority<T = Issue.Priority.GetPriority.Response.OK>(options: Issue.Priority.GetPriority.Options.HandledApi): Promise<import("../../definitions/objs_priority").Priority>;
//# sourceMappingURL=priority.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssueResolutions<T = Issue.Resolution.GetResolutions.Response.OK[]>(options: Issue.Resolution.GetResolutions.Options.HandledApi): import("../../common").TypedPromise<Issue.Resolution.GetResolutions.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getIssueResolutions<T = Issue.Resolution.GetResolutions.Response.OK>(options: Issue.Resolution.GetResolutions.Options.HandledApi): Promise<Issue.Resolution.GetResolutions.Response.OK>;
/**

@@ -14,3 +14,3 @@ * Returns a resolution.

*/
export declare function getIssueResolution<T = Issue.Resolution.GetResolution.Response.OK>(options: Issue.Resolution.GetResolution.Options.HandledApi): import("../../common").TypedPromise<Issue.Resolution.GetResolution.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getIssueResolution<T = Issue.Resolution.GetResolution.Response.OK>(options: Issue.Resolution.GetResolution.Options.HandledApi): Promise<import("../../definitions/objs_resolution").Resolution>;
//# sourceMappingURL=resolution.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function searchIssuesByJql<T = Issue.Search.SearchByJql.Response.OK>(options: Issue.Search.SearchByJql.Options.HandledApi): import("../../common").TypedPromise<Issue.Search.SearchByJql.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function searchIssuesByJql<T = Issue.Search.SearchByJql.Response.OK>(options: Issue.Search.SearchByJql.Options.HandledApi): Promise<Issue.Search.SearchByJql.Response.OK>;
//# sourceMappingURL=search.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssueSubTasks<T = Issue.SubTask.GetSubTasks.Response.OK[]>(options: Issue.SubTask.GetSubTasks.Options.HandledApi): import("../../common").TypedPromise<Issue.SubTask.GetSubTasks.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getIssueSubTasks<T = Issue.SubTask.GetSubTasks.Response.OK>(options: Issue.SubTask.GetSubTasks.Options.HandledApi): Promise<Issue.SubTask.GetSubTasks.Response.OK>;
/**

@@ -13,3 +13,3 @@ * Documentation: https://docs.atlassian.com/software/jira/docs/api/REST/7.13.9/#api/2/issue/{issueIdOrKey}/subtask-canMoveSubTask

*/
export declare function canMoveIssueSubTask<T = Issue.SubTask.CanMoveSubTask.Response.OK>(options: Issue.SubTask.CanMoveSubTask.Options.HandledApi): import("../../common").TypedPromise<boolean | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function canMoveIssueSubTask<T = Issue.SubTask.CanMoveSubTask.Response.OK>(options: Issue.SubTask.CanMoveSubTask.Options.HandledApi): Promise<boolean>;
/**

@@ -20,3 +20,3 @@ * Reorders an issue's subtasks by moving the subtask at index "from" to index "to".

*/
export declare function moveIssueSubTasks<T = undefined>(options: Issue.SubTask.MoveSubTasks.Options.HandledApi): import("../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function moveIssueSubTasks<T = Issue.SubTask.MoveSubTasks.Response.OK>(options: Issue.SubTask.MoveSubTasks.Options.HandledApi): Promise<undefined>;
//# sourceMappingURL=subTask.d.ts.map

@@ -9,3 +9,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssueTransitions<T = Issue.Transition.GetTransitions.Response.OK>(options: Issue.Transition.GetTransitions.Options.HandledApi): import("../../common").TypedPromise<Issue.Transition.GetTransitions.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getIssueTransitions<T = Issue.Transition.GetTransitions.Response.OK>(options: Issue.Transition.GetTransitions.Options.HandledApi): Promise<Issue.Transition.GetTransitions.Response.OK>;
/**

@@ -17,3 +17,3 @@ * Perform a transition on an issue. When performing the transition you can update or set other issue fields.

*/
export declare function performIssueTransition<T = undefined>(options: Issue.Transition.PerformTransition.Options.HandledApi): import("../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function performIssueTransition<T = Issue.Transition.PerformTransition.Response.OK>(options: Issue.Transition.PerformTransition.Options.HandledApi): Promise<undefined>;
//# sourceMappingURL=transition.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssueTypes<T = Issue.Type.GetTypes.Response.OK[]>(options: Issue.Type.GetTypes.Options.HandledApi): import("../../common").TypedPromise<Issue.Type.GetTypes.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getIssueTypes<T = Issue.Type.GetTypes.Response.OK>(options: Issue.Type.GetTypes.Options.HandledApi): Promise<Issue.Type.GetTypes.Response.OK>;
/**

@@ -14,3 +14,3 @@ * Returns a full representation of the issue type that has the given id.

*/
export declare function getIssueType<T = Issue.Type.GetType.Response.OK>(options: Issue.Type.GetType.Options.HandledApi): import("../../common").TypedPromise<Issue.Type.GetType.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getIssueType<T = Issue.Type.GetType.Response.OK>(options: Issue.Type.GetType.Options.HandledApi): Promise<import("../../definitions/objs_issue_type").IssueType>;
//# sourceMappingURL=type.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function removeIssueVote<T = undefined>(options: Issue.Vote.RemoveVote.Options.HandledApi): import("../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function removeIssueVote<T = Issue.Vote.RemoveVote.Response.OK>(options: Issue.Vote.RemoveVote.Options.HandledApi): Promise<undefined>;
/**

@@ -14,3 +14,3 @@ * Cast your vote in favour of an issue.

*/
export declare function addIssueVote<T = undefined>(options: Issue.Vote.AddVote.Options.HandledApi): import("../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function addIssueVote<T = Issue.Vote.AddVote.Response.OK>(options: Issue.Vote.AddVote.Options.HandledApi): Promise<undefined>;
/**

@@ -21,3 +21,3 @@ * A REST sub-resource representing the voters on the issue.

*/
export declare function getIssueVotes<T = Issue.Vote.GetVotes.Response.OK>(options: Issue.Vote.GetVotes.Options.HandledApi): import("../../common").TypedPromise<Issue.Vote.GetVotes.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getIssueVotes<T = Issue.Vote.GetVotes.Response.OK>(options: Issue.Vote.GetVotes.Options.HandledApi): Promise<Issue.Vote.GetVotes.Response.OK>;
//# sourceMappingURL=vote.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssueWatchers<T = Issue.Watcher.GetWatchers.Response.OK>(options: Issue.Watcher.GetWatchers.Options.HandledApi): import("../../common").TypedPromise<Issue.Watcher.GetWatchers.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getIssueWatchers<T = Issue.Watcher.GetWatchers.Response.OK>(options: Issue.Watcher.GetWatchers.Options.HandledApi): Promise<Issue.Watcher.GetWatchers.Response.OK>;
/**

@@ -14,3 +14,3 @@ * Adds a user to an issue's watcher list.

*/
export declare function addIssueWatcher<T = undefined>(options: Issue.Watcher.AddWatcher.Options.HandledApi): import("../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function addIssueWatcher<T = Issue.Watcher.AddWatcher.Response.OK>(options: Issue.Watcher.AddWatcher.Options.HandledApi): Promise<undefined>;
/**

@@ -21,3 +21,3 @@ * Removes a user from an issue's watcher list.

*/
export declare function removeIssueWatcher<T = undefined>(options: Issue.Watcher.RemoveWatcher.Options.HandledApi): import("../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function removeIssueWatcher<T = Issue.Watcher.RemoveWatcher.Response.OK>(options: Issue.Watcher.RemoveWatcher.Options.HandledApi): Promise<undefined>;
//# sourceMappingURL=watcher.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssueWorklogs<T = Issue.Worklog.GetWorklogs.Response.OK>(options: Issue.Worklog.GetWorklogs.Options.HandledApi): import("../../common").TypedPromise<Issue.Worklog.GetWorklogs.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getIssueWorklogs<T = Issue.Worklog.GetWorklogs.Response.OK>(options: Issue.Worklog.GetWorklogs.Options.HandledApi): Promise<Issue.Worklog.GetWorklogs.Response.OK>;
/**

@@ -14,3 +14,3 @@ * Adds a new worklog entry to an issue.

*/
export declare function addIssueWorklog<T = Issue.Worklog.AddWorklog.Response.OK>(options: Issue.Worklog.AddWorklog.Options.HandledApi): import("../../common").TypedPromise<Issue.Worklog.AddWorklog.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function addIssueWorklog<T = Issue.Worklog.AddWorklog.Response.OK>(options: Issue.Worklog.AddWorklog.Options.HandledApi): Promise<import("../../definitions/objs_worklog").Worklog>;
/**

@@ -21,3 +21,3 @@ * Returns a specific worklog. The work log won't be returned if the Log work field is hidden for the project.

*/
export declare function getIssueWorklog<T = Issue.Worklog.GetWorklog.Response.OK>(options: Issue.Worklog.GetWorklog.Options.HandledApi): import("../../common").TypedPromise<Issue.Worklog.GetWorklog.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getIssueWorklog<T = Issue.Worklog.GetWorklog.Response.OK>(options: Issue.Worklog.GetWorklog.Options.HandledApi): Promise<import("../../definitions/objs_worklog").Worklog>;
/**

@@ -28,3 +28,3 @@ * Updates an existing worklog entry. Fields possible for editing are: comment, visibility, started, timeSpent and timeSpentSeconds. Either timeSpent or timeSpentSeconds can be set. Fields which are not set will not be updated. For a request to be valid, it has to have at least one field change.

*/
export declare function updateIssueWorklog<T = Issue.Worklog.UpdateWorklog.Response.OK>(options: Issue.Worklog.UpdateWorklog.Options.HandledApi): import("../../common").TypedPromise<Issue.Worklog.UpdateWorklog.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function updateIssueWorklog<T = Issue.Worklog.UpdateWorklog.Response.OK>(options: Issue.Worklog.UpdateWorklog.Options.HandledApi): Promise<import("../../definitions/objs_worklog").Worklog>;
/**

@@ -35,3 +35,3 @@ * Deletes an existing worklog entry.

*/
export declare function deleteIssueWorklog<T = undefined>(options: Issue.Worklog.DeleteWorklog.Options.HandledApi): import("../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function deleteIssueWorklog<T = Issue.Worklog.DeleteWorklog.Response.OK>(options: Issue.Worklog.DeleteWorklog.Options.HandledApi): Promise<undefined>;
/**

@@ -42,3 +42,3 @@ * Returns worklogs id and delete time of worklogs that was deleted since given time. The returns set of worklogs is limited to 1000 elements. This API will not return worklogs deleted during last minute.

*/
export declare function getDeletedIssueWorklogIds<T = Issue.Worklog.GetDeletedWorklogIds.Response.OK>(options: Issue.Worklog.GetDeletedWorklogIds.Options.HandledApi): import("../../common").TypedPromise<Issue.Worklog.GetDeletedWorklogIds.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getDeletedIssueWorklogIds<T = Issue.Worklog.GetDeletedWorklogIds.Response.OK>(options: Issue.Worklog.GetDeletedWorklogIds.Options.HandledApi): Promise<Issue.Worklog.GetDeletedWorklogIds.Response.OK>;
/**

@@ -49,3 +49,3 @@ * Returns worklogs for given worklog ids. Only worklogs to which the calling user has permissions, will be included in the result. The returns set of worklogs is limited to 1000 elements.

*/
export declare function getIssueWorklogsForIds<T = Issue.Worklog.GetWorklogsForIds.Response.OK[]>(options: Issue.Worklog.GetWorklogsForIds.Options.HandledApi): import("../../common").TypedPromise<Issue.Worklog.GetWorklogsForIds.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getIssueWorklogsForIds<T = Issue.Worklog.GetWorklogsForIds.Response.OK>(options: Issue.Worklog.GetWorklogsForIds.Options.HandledApi): Promise<Issue.Worklog.GetWorklogsForIds.Response.OK>;
/**

@@ -56,3 +56,3 @@ * Returns worklogs id and update time of worklogs that was updated since given time. The returns set of worklogs is limited to 1000 elements. This API will not return worklogs updated during last minute.

*/
export declare function getUpdatedIssueWorklogIds<T = Issue.Worklog.GetUpdatedWorklogIds.Response.OK>(options: Issue.Worklog.GetUpdatedWorklogIds.Options.HandledApi): import("../../common").TypedPromise<Issue.Worklog.GetUpdatedWorklogIds.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getUpdatedIssueWorklogIds<T = Issue.Worklog.GetUpdatedWorklogIds.Response.OK>(options: Issue.Worklog.GetUpdatedWorklogIds.Options.HandledApi): Promise<Issue.Worklog.GetUpdatedWorklogIds.Response.OK>;
//# sourceMappingURL=worklog.d.ts.map

@@ -7,3 +7,3 @@ import { Myself } from '../types/myself';

*/
export declare function getCurrentUser<T = Myself.GetCurrentUser.Response.OK>(options: Myself.GetCurrentUser.Options.HandledApi): import("../common").TypedPromise<Myself.GetCurrentUser.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function getCurrentUser<T = Myself.GetCurrentUser.Response.OK>(options: Myself.GetCurrentUser.Options.HandledApi): Promise<import("../definitions/objs_user").UserFull>;
//# sourceMappingURL=myself.d.ts.map

@@ -7,3 +7,3 @@ import { Project } from '../types/project';

*/
export declare function getProjects<T = Project.GetProjects.Response.OK[]>(options: Project.GetProjects.Options.HandledApi): import("../common").TypedPromise<Project.GetProjects.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function getProjects<T = Project.GetProjects.Response.OK>(options: Project.GetProjects.Options.HandledApi): Promise<Project.GetProjects.Response.OK>;
/**

@@ -14,3 +14,3 @@ * Creates a new project.

*/
export declare function createProject<T = Project.CreateProject.Response.OK>(options: Project.CreateProject.Options.HandledApi): import("../common").TypedPromise<Project.CreateProject.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function createProject<T = Project.CreateProject.Response.OK>(options: Project.CreateProject.Options.HandledApi): Promise<Project.CreateProject.Response.OK>;
/**

@@ -21,3 +21,3 @@ * Contains a full representation of a project in JSON format.

*/
export declare function getProject<T = Project.GetProject.Response.OK>(options: Project.GetProject.Options.HandledApi): import("../common").TypedPromise<Project.GetProject.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function getProject<T = Project.GetProject.Response.OK>(options: Project.GetProject.Options.HandledApi): Promise<import("../definitions/objs_project").Project>;
/**

@@ -28,3 +28,3 @@ * Updates a project. Only non null values sent in JSON will be updated in the project.

*/
export declare function updateProject<T = Project.UpdateProject.Response.OK>(options: Project.UpdateProject.Options.HandledApi): import("../common").TypedPromise<Project.UpdateProject.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function updateProject<T = Project.UpdateProject.Response.OK>(options: Project.UpdateProject.Options.HandledApi): Promise<import("../definitions/objs_project").Project>;
/**

@@ -35,3 +35,3 @@ * Deletes a project.

*/
export declare function deleteProject<T = undefined>(options: Project.DeleteProject.Options.HandledApi): import("../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function deleteProject<T = Project.DeleteProject.Response.OK>(options: Project.DeleteProject.Options.HandledApi): Promise<undefined>;
/**

@@ -42,3 +42,3 @@ * Archives a project.

*/
export declare function archiveProject<T = undefined>(options: Project.ArchiveProject.Options.HandledApi): import("../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function archiveProject<T = Project.ArchiveProject.Response.OK>(options: Project.ArchiveProject.Options.HandledApi): Promise<undefined>;
/**

@@ -49,3 +49,3 @@ * Contains a full representation of a the specified project's components.

*/
export declare function getProjectComponents<T = Project.GetComponents.Response.OK[]>(options: Project.GetComponents.Options.HandledApi): import("../common").TypedPromise<Project.GetComponents.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function getProjectComponents<T = Project.GetComponents.Response.OK>(options: Project.GetComponents.Options.HandledApi): Promise<Project.GetComponents.Response.OK>;
/**

@@ -56,3 +56,3 @@ * Restore an archived project. In case of success restored project should be re-indexed.

*/
export declare function restoreProject<T = undefined>(options: Project.RestoreProject.Options.HandledApi): import("../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function restoreProject<T = Project.RestoreProject.Response.OK>(options: Project.RestoreProject.Options.HandledApi): Promise<undefined>;
/**

@@ -63,3 +63,3 @@ * Get all issue types with valid status values for a project.

*/
export declare function getProjectStatuses<T = Project.GetStatuses.Response.OK[]>(options: Project.GetStatuses.Options.HandledApi): import("../common").TypedPromise<Project.GetStatuses.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function getProjectStatuses<T = Project.GetStatuses.Response.OK>(options: Project.GetStatuses.Options.HandledApi): Promise<Project.GetStatuses.Response.OK>;
/**

@@ -70,3 +70,3 @@ * Updates the type of a project.

*/
export declare function updateProjectType<T = Project.UpdateProjectType.Response.OK>(options: Project.UpdateProjectType.Options.HandledApi): import("../common").TypedPromise<Project.UpdateProjectType.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function updateProjectType<T = Project.UpdateProjectType.Response.OK>(options: Project.UpdateProjectType.Options.HandledApi): Promise<import("../definitions/objs_project").Project>;
/**

@@ -77,3 +77,3 @@ * Returns all versions for the specified project. Results are paginated.

*/
export declare function getProjectVersionsPaginated<T = Project.GetVersionsPaginated.Response.OK>(options: Project.GetVersionsPaginated.Options.HandledApi): import("../common").TypedPromise<Project.GetVersionsPaginated.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function getProjectVersionsPaginated<T = Project.GetVersionsPaginated.Response.OK>(options: Project.GetVersionsPaginated.Options.HandledApi): Promise<Project.GetVersionsPaginated.Response.OK>;
/**

@@ -84,3 +84,3 @@ * Contains a full representation of a the specified project's versions.

*/
export declare function getProjectVersions<T = Project.GetVersions.Response.OK[]>(options: Project.GetVersions.Options.HandledApi): import("../common").TypedPromise<Project.GetVersions.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function getProjectVersions<T = Project.GetVersions.Response.OK>(options: Project.GetVersions.Options.HandledApi): Promise<Project.GetVersions.Response.OK>;
//# sourceMappingURL=project.d.ts.map

@@ -7,3 +7,3 @@ import { Project } from '../../types/project';

*/
export declare function createProjectComponent<T = Project.Component.CreateComponent.Response.OK>(options: Project.Component.CreateComponent.Options.HandledApi): import("../../common").TypedPromise<Project.Component.CreateComponent.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function createProjectComponent<T = Project.Component.CreateComponent.Response.OK>(options: Project.Component.CreateComponent.Options.HandledApi): Promise<import("../../definitions/objs_component").Component>;
/**

@@ -14,3 +14,3 @@ * Returns a project component.

*/
export declare function getProjectComponent<T = Project.Component.GetComponent.Response.OK>(options: Project.Component.GetComponent.Options.HandledApi): import("../../common").TypedPromise<Project.Component.GetComponent.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getProjectComponent<T = Project.Component.GetComponent.Response.OK>(options: Project.Component.GetComponent.Options.HandledApi): Promise<import("../../definitions/objs_component").Component>;
/**

@@ -21,3 +21,3 @@ * Modify a component via PUT. If leadUserName is an empty string ("") the component lead will be removed.

*/
export declare function updateProjectComponent<T = Project.Component.UpdateComponent.Response.OK>(options: Project.Component.UpdateComponent.Options.HandledApi): import("../../common").TypedPromise<Project.Component.UpdateComponent.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function updateProjectComponent<T = Project.Component.UpdateComponent.Response.OK>(options: Project.Component.UpdateComponent.Options.HandledApi): Promise<import("../../definitions/objs_component").Component>;
/**

@@ -28,3 +28,3 @@ * Delete a project component.

*/
export declare function deleteProjectComponent<T = undefined>(options: Project.Component.DeleteComponent.Options.HandledApi): import("../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function deleteProjectComponent<T = Project.Component.DeleteComponent.Response.OK>(options: Project.Component.DeleteComponent.Options.HandledApi): Promise<undefined>;
/**

@@ -35,3 +35,3 @@ * Returns counts of issues related to this component.

*/
export declare function getProjectComponentRelatedIssues<T = Project.Component.GetRelatedIssues.Response.OK>(options: Project.Component.GetRelatedIssues.Options.HandledApi): import("../../common").TypedPromise<Project.Component.GetRelatedIssues.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getProjectComponentRelatedIssues<T = Project.Component.GetRelatedIssues.Response.OK>(options: Project.Component.GetRelatedIssues.Options.HandledApi): Promise<Project.Component.GetRelatedIssues.Response.OK>;
//# sourceMappingURL=component.d.ts.map

@@ -7,3 +7,3 @@ import { Project } from '../../types/project';

*/
export declare function getProjectRoles<T = Project.Role.GetRoles.Response.OK>(options: Project.Role.GetRoles.Options.HandledApi): import("../../common").TypedPromise<Project.Role.GetRoles.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getProjectRoles<T = Project.Role.GetRoles.Response.OK>(options: Project.Role.GetRoles.Options.HandledApi): Promise<Record<string, string>>;
/**

@@ -14,3 +14,3 @@ * Returns the details for a given project role in a project.

*/
export declare function getProjectRole<T = Project.Role.GetRole.Response.OK>(options: Project.Role.GetRole.Options.HandledApi): import("../../common").TypedPromise<Project.Role.GetRole.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getProjectRole<T = Project.Role.GetRole.Response.OK>(options: Project.Role.GetRole.Options.HandledApi): Promise<import("../../definitions/objs_project_role").ProjectRole>;
//# sourceMappingURL=role.d.ts.map

@@ -7,3 +7,3 @@ import { Project } from '../../../types/project';

*/
export declare function setProjectRoleActors<T = Project.Role.Actor.SetActors.Response.OK>(options: Project.Role.Actor.SetActors.Options.HandledApi): import("../../../common").TypedPromise<Project.Role.Actor.SetActors.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../../common").AtlassianErrorResponse>>;
export declare function setProjectRoleActors<T = Project.Role.Actor.SetActors.Response.OK>(options: Project.Role.Actor.SetActors.Options.HandledApi): Promise<import("../../../definitions/objs_project_role").ProjectRole>;
/**

@@ -14,3 +14,3 @@ * Adds an actor (user or group) to a project role.

*/
export declare function addProjectRoleActorUsers<T = Project.Role.Actor.AddUsers.Response.OK>(options: Project.Role.Actor.AddUsers.Options.HandledApi): import("../../../common").TypedPromise<Project.Role.Actor.AddUsers.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../../common").AtlassianErrorResponse>>;
export declare function addProjectRoleActorUsers<T = Project.Role.Actor.AddUsers.Response.OK>(options: Project.Role.Actor.AddUsers.Options.HandledApi): Promise<import("../../../definitions/objs_project_role").ProjectRole>;
/**

@@ -23,3 +23,3 @@ * Deletes actors (users or groups) from a project role.

*/
export declare function deleteProjectRoleActor<T = undefined>(options: Project.Role.Actor.DeleteActor.Options.HandledApi): import("../../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../../common").AtlassianErrorResponse>>;
export declare function deleteProjectRoleActor<T = Project.Role.Actor.DeleteActor.Response.OK>(options: Project.Role.Actor.DeleteActor.Options.HandledApi): Promise<undefined>;
//# sourceMappingURL=actor.d.ts.map

@@ -7,3 +7,3 @@ import { Project } from '../../types/project';

*/
export declare function getProjectTypes<T = Project.Type.GetTypes.Response.OK[]>(options: Project.Type.GetTypes.Options.HandledApi): import("../../common").TypedPromise<Project.Type.GetTypes.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getProjectTypes<T = Project.Type.GetTypes.Response.OK>(options: Project.Type.GetTypes.Options.HandledApi): Promise<Project.Type.GetTypes.Response.OK>;
/**

@@ -14,3 +14,3 @@ * Returns the project type with the given key.

*/
export declare function getProjectType<T = Project.Type.GetType.Response.OK>(options: Project.Type.GetType.Options.HandledApi): import("../../common").TypedPromise<Project.Type.GetType.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getProjectType<T = Project.Type.GetType.Response.OK>(options: Project.Type.GetType.Options.HandledApi): Promise<import("../../definitions/objs_project_type").ProjectType>;
/**

@@ -21,3 +21,3 @@ * Returns the project type with the given key, if it is accessible to the logged in user. This takes into account whether the user is licensed on the Application that defines the project type.

*/
export declare function getAccessibleProjectType<T = Project.Type.GetAccessibleType.Response.OK>(options: Project.Type.GetAccessibleType.Options.HandledApi): import("../../common").TypedPromise<Project.Type.GetAccessibleType.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getAccessibleProjectType<T = Project.Type.GetAccessibleType.Response.OK>(options: Project.Type.GetAccessibleType.Options.HandledApi): Promise<import("../../definitions/objs_project_type").ProjectType>;
//# sourceMappingURL=type.d.ts.map

@@ -7,3 +7,3 @@ import { Project } from '../../types/project';

*/
export declare function validateProjectKey<T = Project.Validation.ValidateProjectKey.Response.OK>(options: Project.Validation.ValidateProjectKey.Options.HandledApi): import("../../common").TypedPromise<Project.Validation.ValidateProjectKey.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function validateProjectKey<T = Project.Validation.ValidateProjectKey.Response.OK>(options: Project.Validation.ValidateProjectKey.Options.HandledApi): Promise<Project.Validation.ValidateProjectKey.Response.OK>;
//# sourceMappingURL=validation.d.ts.map

@@ -7,3 +7,3 @@ import { Project } from '../../types/project';

*/
export declare function createProjectVersion<T = Project.Version.CreateVersion.Response.OK>(options: Project.Version.CreateVersion.Options.HandledApi): import("../../common").TypedPromise<Project.Version.CreateVersion.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function createProjectVersion<T = Project.Version.CreateVersion.Response.OK>(options: Project.Version.CreateVersion.Options.HandledApi): Promise<import("../../definitions/objs_version").Version>;
/**

@@ -14,3 +14,3 @@ * Modify a version's sequence within a project.

*/
export declare function moveProjectVersion<T = Project.Version.MoveVersion.Response.OK>(options: Project.Version.MoveVersion.Options.HandledApi): import("../../common").TypedPromise<Project.Version.MoveVersion.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function moveProjectVersion<T = Project.Version.MoveVersion.Response.OK>(options: Project.Version.MoveVersion.Options.HandledApi): Promise<import("../../definitions/objs_version").Version>;
/**

@@ -21,3 +21,3 @@ * Returns a project version.

*/
export declare function getProjectVersion<T = Project.Version.GetVersion.Response.OK>(options: Project.Version.GetVersion.Options.HandledApi): import("../../common").TypedPromise<Project.Version.GetVersion.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getProjectVersion<T = Project.Version.GetVersion.Response.OK>(options: Project.Version.GetVersion.Options.HandledApi): Promise<import("../../definitions/objs_version").Version>;
/**

@@ -28,3 +28,3 @@ * Modify a version via PUT. Any fields present in the PUT will override existing values. As a convenience, if a field is not present, it is silently ignored.

*/
export declare function updateProjectVersion<T = Project.Version.UpdateVersion.Response.OK>(options: Project.Version.UpdateVersion.Options.HandledApi): import("../../common").TypedPromise<Project.Version.UpdateVersion.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function updateProjectVersion<T = Project.Version.UpdateVersion.Response.OK>(options: Project.Version.UpdateVersion.Options.HandledApi): Promise<import("../../definitions/objs_version").Version>;
/**

@@ -35,3 +35,3 @@ * Delete a project version.

*/
export declare function deleteProjectVersion<T = undefined>(options: Project.Version.DeleteVersion.Options.HandledApi): import("../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function deleteProjectVersion<T = Project.Version.DeleteVersion.Response.OK>(options: Project.Version.DeleteVersion.Options.HandledApi): Promise<undefined>;
/**

@@ -42,3 +42,3 @@ * Merge versions.

*/
export declare function mergeProjectVersion<T = undefined>(options: Project.Version.MergeVersion.Options.HandledApi): import("../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function mergeProjectVersion<T = Project.Version.MergeVersion.Response.OK>(options: Project.Version.MergeVersion.Options.HandledApi): Promise<undefined>;
/**

@@ -49,3 +49,3 @@ * Delete a project version.

*/
export declare function removeAndReplaceProjectVersion<T = undefined>(options: Project.Version.RemoveAndReplaceVersion.Options.HandledApi): import("../../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function removeAndReplaceProjectVersion<T = Project.Version.RemoveAndReplaceVersion.Response.OK>(options: Project.Version.RemoveAndReplaceVersion.Options.HandledApi): Promise<undefined>;
//# sourceMappingURL=version.d.ts.map

@@ -7,3 +7,3 @@ import { Project } from '../../../types/project';

*/
export declare function getProjectVersionRelatedIssueCount<T = Project.Version.Count.GetVersionRelatedIssueCount.Response.OK>(options: Project.Version.Count.GetVersionRelatedIssueCount.Options.HandledApi): import("../../../common").TypedPromise<Project.Version.Count.GetVersionRelatedIssueCount.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../../common").AtlassianErrorResponse>>;
export declare function getProjectVersionRelatedIssueCount<T = Project.Version.Count.GetVersionRelatedIssueCount.Response.OK>(options: Project.Version.Count.GetVersionRelatedIssueCount.Options.HandledApi): Promise<Project.Version.Count.GetVersionRelatedIssueCount.Response.OK>;
/**

@@ -14,3 +14,3 @@ * Returns the number of unresolved issues for the given version

*/
export declare function getProjectVersionUnresolvedIssueCount<T = Project.Version.Count.GetVersionUnresolvedIssueCount.Response.OK>(options: Project.Version.Count.GetVersionUnresolvedIssueCount.Options.HandledApi): import("../../../common").TypedPromise<Project.Version.Count.GetVersionUnresolvedIssueCount.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../../common").AtlassianErrorResponse>>;
export declare function getProjectVersionUnresolvedIssueCount<T = Project.Version.Count.GetVersionUnresolvedIssueCount.Response.OK>(options: Project.Version.Count.GetVersionUnresolvedIssueCount.Options.HandledApi): Promise<Project.Version.Count.GetVersionUnresolvedIssueCount.Response.OK>;
//# sourceMappingURL=count.d.ts.map

@@ -7,3 +7,3 @@ import { Role } from '../../types/role';

*/
export declare function getGlobalProjectRoles<T = Role.Project.GetRoles.Response.OK[]>(options: Role.Project.GetRoles.Options.HandledApi): import("../../common").TypedPromise<Role.Project.GetRoles.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getGlobalProjectRoles<T = Role.Project.GetRoles.Response.OK>(options: Role.Project.GetRoles.Options.HandledApi): Promise<Role.Project.GetRoles.Response.OK>;
/**

@@ -14,3 +14,3 @@ * Get a specific ProjectRole available in JIRA.

*/
export declare function getGlobalProjectRole<T = Role.Project.GetRole.Response.OK>(options: Role.Project.GetRole.Options.HandledApi): import("../../common").TypedPromise<Role.Project.GetRole.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getGlobalProjectRole<T = Role.Project.GetRole.Response.OK>(options: Role.Project.GetRole.Options.HandledApi): Promise<import("../../definitions/objs_project_role").ProjectRole>;
//# sourceMappingURL=project.d.ts.map

@@ -7,3 +7,3 @@ import { User } from '../types/user';

*/
export declare function getUser<T = User.GetUser.Response.OK>(options: User.GetUser.Options.HandledApi): import("../common").TypedPromise<User.GetUser.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function getUser<T = User.GetUser.Response.OK>(options: User.GetUser.Options.HandledApi): Promise<import("../definitions/objs_user").UserFull>;
/**

@@ -14,3 +14,3 @@ * Modify user. The "value" fields present will override the existing value. Fields skipped in request will not be changed.

*/
export declare function updateUser<T = User.UpdateUser.Response.OK>(options: User.UpdateUser.Options.HandledApi): import("../common").TypedPromise<User.UpdateUser.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function updateUser<T = User.UpdateUser.Response.OK>(options: User.UpdateUser.Options.HandledApi): Promise<import("../definitions/objs_user").UserFull>;
/**

@@ -21,3 +21,3 @@ * Create user. By default created user will not be notified with email. If password field is not set then password will be randomly generated.

*/
export declare function createUser<T = User.CreateUser.Response.OK>(options: User.CreateUser.Options.HandledApi): import("../common").TypedPromise<User.CreateUser.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function createUser<T = User.CreateUser.Response.OK>(options: User.CreateUser.Options.HandledApi): Promise<import("../definitions/objs_user").UserFull>;
/**

@@ -28,3 +28,3 @@ * Removes user and its references (like project roles associations, watches, history).

*/
export declare function removeUser<T = undefined>(options: User.RemoveUser.Options.HandledApi): import("../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function removeUser<T = User.RemoveUser.Response.OK>(options: User.RemoveUser.Options.HandledApi): Promise<undefined>;
/**

@@ -35,3 +35,3 @@ * Add user to given application. Admin permission will be required to perform this operation.

*/
export declare function addUserToApplication<T = undefined>(options: User.AddUserToApplication.Options.HandledApi): import("../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function addUserToApplication<T = User.AddUserToApplication.Response.OK>(options: User.AddUserToApplication.Options.HandledApi): Promise<undefined>;
/**

@@ -42,3 +42,3 @@ * Remove user from given application. Admin permission will be required to perform this operation.

*/
export declare function removeUserFromApplication<T = undefined>(options: User.RemoveUserFromApplication.Options.HandledApi): import("../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function removeUserFromApplication<T = User.RemoveUserFromApplication.Response.OK>(options: User.RemoveUserFromApplication.Options.HandledApi): Promise<undefined>;
/**

@@ -49,3 +49,3 @@ * Modify user password.

*/
export declare function changeUserPassword<T = undefined>(options: User.ChangeUserPassword.Options.HandledApi): import("../common").TypedPromise<T | undefined, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("./common").AtlassianErrorResponse>>;
export declare function changeUserPassword<T = User.ChangeUserPassword.Response.OK>(options: User.ChangeUserPassword.Options.HandledApi): Promise<undefined>;
//# sourceMappingURL=user.d.ts.map

@@ -7,3 +7,3 @@ import { User } from '../../types/user';

*/
export declare function findAssignableUsers<T = User.Search.FindAssignableUsers.Response.OK[]>(options: User.Search.FindAssignableUsers.Options.HandledApi): import("../../common").TypedPromise<User.Search.FindAssignableUsers.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function findAssignableUsers<T = User.Search.FindAssignableUsers.Response.OK>(options: User.Search.FindAssignableUsers.Options.HandledApi): Promise<User.Search.FindAssignableUsers.Response.OK>;
/**

@@ -15,3 +15,3 @@ * Returns a list of active users that match the search string and have all specified permissions for the project or issue.

*/
export declare function findUsersWithAllPermissions<T = User.Search.FindUsersWithAllPermissions.Response.OK[]>(options: User.Search.FindUsersWithAllPermissions.Options.HandledApi): import("../../common").TypedPromise<User.Search.FindUsersWithAllPermissions.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function findUsersWithAllPermissions<T = User.Search.FindUsersWithAllPermissions.Response.OK>(options: User.Search.FindUsersWithAllPermissions.Options.HandledApi): Promise<User.Search.FindUsersWithAllPermissions.Response.OK>;
/**

@@ -22,3 +22,3 @@ * Returns a list of users that match the search string. This resource cannot be accessed anonymously.

*/
export declare function findUsers<T = User.Search.FindUsers.Response.OK[]>(options: User.Search.FindUsers.Options.HandledApi): import("../../common").TypedPromise<User.Search.FindUsers.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function findUsers<T = User.Search.FindUsers.Response.OK>(options: User.Search.FindUsers.Options.HandledApi): Promise<User.Search.FindUsers.Response.OK>;
/**

@@ -29,3 +29,3 @@ * Returns a list of active users that match the search string. This resource cannot be accessed anonymously and requires the Browse Users global permission. Given an issue key this resource will provide a list of users that match the search string and have the browse issue permission for the issue provided.

*/
export declare function findUsersWithBrowsePermission<T = User.Search.FindUsersWithBrowsePermission.Response.OK[]>(options: User.Search.FindUsersWithBrowsePermission.Options.HandledApi): import("../../common").TypedPromise<User.Search.FindUsersWithBrowsePermission.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function findUsersWithBrowsePermission<T = User.Search.FindUsersWithBrowsePermission.Response.OK>(options: User.Search.FindUsersWithBrowsePermission.Options.HandledApi): Promise<User.Search.FindUsersWithBrowsePermission.Response.OK>;
//# sourceMappingURL=search.d.ts.map

@@ -7,3 +7,3 @@ import { Workflow } from '../../types/workflow';

*/
export declare function getWorkflowStatuses<T = Workflow.Status.GetStatuses.Response.OK[]>(options: Workflow.Status.GetStatuses.Options.HandledApi): import("../../common").TypedPromise<Workflow.Status.GetStatuses.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getWorkflowStatuses<T = Workflow.Status.GetStatuses.Response.OK>(options: Workflow.Status.GetStatuses.Options.HandledApi): Promise<Workflow.Status.GetStatuses.Response.OK>;
/**

@@ -14,3 +14,3 @@ * Returns a full representation of the Status having the given id or name.

*/
export declare function getWorkflowStatus<T = Workflow.Status.GetStatus.Response.OK>(options: Workflow.Status.GetStatus.Options.HandledApi): import("../../common").TypedPromise<Workflow.Status.GetStatus.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../common").AtlassianErrorResponse>>;
export declare function getWorkflowStatus<T = Workflow.Status.GetStatus.Response.OK>(options: Workflow.Status.GetStatus.Options.HandledApi): Promise<import("../../definitions/objs_status").Status>;
//# sourceMappingURL=status.d.ts.map

@@ -7,3 +7,3 @@ import { Workflow } from '../../../types/workflow';

*/
export declare function getWorkflowStatusCategories<T = Workflow.Status.Category.GetCategories.Response.OK[]>(options: Workflow.Status.Category.GetCategories.Options.HandledApi): import("../../../common").TypedPromise<Workflow.Status.Category.GetCategories.Response.OK[] | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../../common").AtlassianErrorResponse>>;
export declare function getWorkflowStatusCategories<T = Workflow.Status.Category.GetCategories.Response.OK>(options: Workflow.Status.Category.GetCategories.Options.HandledApi): Promise<Workflow.Status.Category.GetCategories.Response.OK>;
/**

@@ -14,3 +14,3 @@ * Returns a full representation of the StatusCategory having the given id or key.

*/
export declare function getWorkflowStatusCategory<T = Workflow.Status.Category.GetCategory.Response.OK>(options: Workflow.Status.Category.GetCategory.Options.HandledApi): import("../../../common").TypedPromise<Workflow.Status.Category.GetCategory.Response.OK | T, import("@avst-api/commons").UnexpectedError | import("@avst-api/commons").HttpError<import("../../common").AtlassianErrorResponse>>;
export declare function getWorkflowStatusCategory<T = Workflow.Status.Category.GetCategory.Response.OK>(options: Workflow.Status.Category.GetCategory.Options.HandledApi): Promise<import("../../../definitions/objs_status_category").StatusCategory>;
//# sourceMappingURL=category.d.ts.map
{
"name": "@avst-api/jira7-server",
"version": "0.1.9",
"version": "0.1.10",
"description": "Adaptavist Managed API for Jira Server 7.13.9",

@@ -15,6 +15,4 @@ "main": "index.js",

"dependencies": {
"@avst-api/commons": "0.1.9",
"@avst-types/runtime": "^0.12.0",
"fp-ts": "^2.9.3",
"io-ts": "^2.2.13"
"@avst-api/commons": "^0.2.0",
"@avst-types/runtime": "^0.13.0"
},

@@ -21,0 +19,0 @@ "devDependencies": {

@@ -1,30 +0,15 @@

import * as t from 'io-ts/es6';
import { AtlassianErrorResponse } from '../handled-api/common';
import { HeadersType as Headers, Response } from '@avst-api/commons';
export interface IdProperty extends t.TypeOf<typeof IdPropertyCodec> {
import { HeadersType as Headers } from '@avst-api/commons';
export interface EntityProperty {
key?: string;
value?: any;
}
export interface EntityProperty extends t.TypeOf<typeof EntityPropertyCodec> {
export interface IdProperty {
id?: string;
}
export interface NameProperty extends t.TypeOf<typeof NamePropertyCodec> {
export interface KeyProperty {
key?: string;
}
export interface KeyProperty extends t.TypeOf<typeof KeyPropertyCodec> {
export interface NameProperty {
name?: string;
}
export declare const IdPropertyCodec: t.PartialC<{
id: t.StringC;
}>;
export declare const KeyPropertyCodec: t.PartialC<{
key: t.StringC;
}>;
export declare const NamePropertyCodec: t.PartialC<{
name: t.StringC;
}>;
export declare const EntityPropertyCodec: t.PartialC<{
key: t.StringC;
value: t.AnyC;
}>;
export declare const ErrorCollectionCodec: t.PartialC<{
errorMessages: t.ArrayC<t.StringC>;
errors: t.RecordC<t.StringC, t.StringC>;
status: t.NumberC;
}>;
export interface CustomFieldIdentifier {

@@ -39,7 +24,7 @@ id?: string;

}
export declare function httpGet<T>(connection: string, urlPath: string, headers?: Headers, skipBodyParsing?: boolean): Promise<Response<string | AtlassianErrorResponse | T | undefined>>;
export declare function httpPost<T>(connection: string, decoder: t.Decoder<any, any>, skipValidation: boolean, urlPath: string, request: any, headers?: Headers, skipBodyParsing?: boolean): Promise<Response<string | AtlassianErrorResponse | T | undefined>>;
export declare function httpPut<T>(connection: string, decoder: t.Decoder<any, any>, skipValidation: boolean, urlPath: string, request: any, headers?: Headers, skipBodyParsing?: boolean): Promise<Response<string | AtlassianErrorResponse | T | undefined>>;
export declare function httpDelete<T>(connection: string, urlPath: string, headers?: Headers, skipBodyParsing?: boolean): Promise<Response<string | AtlassianErrorResponse | T | undefined>>;
export declare function httpGet<Ok, Err>(connection: string, urlPath: string, headers?: Headers, skipBodyParsing?: boolean): Promise<import("@avst-api/commons").Response<Ok | Err>>;
export declare function httpPost<Ok, Err>(connection: string, urlPath: string, request: any, headers?: Headers, skipBodyParsing?: boolean): Promise<import("@avst-api/commons").Response<Ok | Err>>;
export declare function httpPut<Ok, Err>(connection: string, urlPath: string, request: any, headers?: Headers, skipBodyParsing?: boolean): Promise<import("@avst-api/commons").Response<Ok | Err>>;
export declare function httpDelete<Ok, Err>(connection: string, urlPath: string, headers?: Headers, skipBodyParsing?: boolean): Promise<import("@avst-api/commons").Response<Ok | Err>>;
export declare function getFields<T extends CustomFieldIdentifier>(fields: T[], customFieldIdOrName: number | string): T[];
//# sourceMappingURL=common.d.ts.map

@@ -1,39 +0,14 @@

import * as t from 'io-ts/es6';
import { looksLikeNumber, getHeaders, getResponse, UnexpectedError } from '@avst-api/commons';
export const IdPropertyCodec = t.partial({
id: t.string
});
export const KeyPropertyCodec = t.partial({
key: t.string
});
export const NamePropertyCodec = t.partial({
name: t.string
});
export const EntityPropertyCodec = t.partial({
key: t.string,
value: t.any
});
export const ErrorCollectionCodec = t.partial({
errorMessages: t.array(t.string),
errors: t.record(t.string, t.string),
status: t.number
});
import { looksLikeNumber, performHttpCall } from '@avst-api/commons';
;
;
;
;
export function httpGet(connection, urlPath, headers, skipBodyParsing = false) {
return performHttpCall(connection, urlPath, 'GET', undefined, headers, skipBodyParsing);
}
export function httpPost(connection, decoder, skipValidation, urlPath, request, headers, skipBodyParsing = false) {
if (skipValidation) {
return performHttpCall(connection, urlPath, 'POST', request, headers, skipBodyParsing);
}
else {
return performHttpCallWithRequestValidation(connection, decoder, urlPath, 'POST', request, headers, skipBodyParsing);
}
export function httpPost(connection, urlPath, request, headers, skipBodyParsing = false) {
return performHttpCall(connection, urlPath, 'POST', request, headers, skipBodyParsing);
}
export function httpPut(connection, decoder, skipValidation, urlPath, request, headers, skipBodyParsing = false) {
if (skipValidation) {
return performHttpCall(connection, urlPath, 'PUT', request, headers, skipBodyParsing);
}
else {
return performHttpCallWithRequestValidation(connection, decoder, urlPath, 'PUT', request, headers, skipBodyParsing);
}
export function httpPut(connection, urlPath, request, headers, skipBodyParsing = false) {
return performHttpCall(connection, urlPath, 'PUT', request, headers, skipBodyParsing);
}

@@ -55,33 +30,1 @@ export function httpDelete(connection, urlPath, headers, skipBodyParsing = false) {

}
function performHttpCallWithRequestValidation(connection, decoder, urlPath, method, body, headers, skipBodyParsing = false) {
return performHttpCall(connection, urlPath, method, body, headers, skipBodyParsing);
}
function performHttpCall(connection, urlPath, method, body, additionalHeaders, skipBodyParsing = false) {
const headers = getHeaders(body, { ...additionalHeaders, 'x-hzn-connection-id': connection });
if (body && !(body instanceof FormData) && !(body instanceof ArrayBuffer)) {
body = JSON.stringify(body);
}
return fetch(urlPath, {
method,
headers,
body
}).then(res => {
if (skipBodyParsing) {
return res.text()
.then(body => Promise.resolve(getResponse(res.headers, res.status, res.statusText, body)));
}
else {
return res.json()
.then(json => Promise.resolve(getResponse(res.headers, res.status, res.statusText, json)))
.catch(error => res.text().then(body => Promise.reject(new UnexpectedError(error, `Failed to parse body, original body: ${body ? body : '<empty>'}`))));
}
}).catch(error => {
if (error instanceof Error) {
return Promise.reject(error);
}
else {
// Internal Node errors that are not Errors by default
return Promise.reject(new Error(error));
}
});
}

@@ -7,3 +7,3 @@ import { Filter } from '../types/filter';

*/
export declare function getFilter(options: Filter.GetFilter.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Filter.GetFilter.Response.OK | undefined>>;
export declare function getFilter(options: Filter.GetFilter.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../definitions/objs_filter").GetFilterRespone | undefined>>;
//# sourceMappingURL=filter.d.ts.map

@@ -7,3 +7,3 @@ import { Group } from '../types/group';

*/
export declare function createGroup(options: Group.CreateGroup.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Group.CreateGroup.Response.OK | undefined>>;
export declare function createGroup(options: Group.CreateGroup.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../definitions/objs_group").GroupResponse | undefined>>;
/**

@@ -14,3 +14,3 @@ * Deletes a group by given group parameter.

*/
export declare function removeGroup(options: Group.RemoveGroup.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function removeGroup(options: Group.RemoveGroup.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
//# sourceMappingURL=group.d.ts.map

@@ -1,2 +0,1 @@

import { GroupCodec } from '../types/group';
import { httpPost, httpDelete } from './common';

@@ -10,4 +9,4 @@ import { constructUrl } from '@avst-api/commons';

export function createGroup(options) {
const { connectionId: instanceId, body, headers, skipValidation } = options;
return httpPost(instanceId, GroupCodec.CreateGroup.Body, !!skipValidation, '/rest/api/2/group', body, headers);
const { connectionId: instanceId, body, headers } = options;
return httpPost(instanceId, '/rest/api/2/group', body, headers);
}

@@ -14,0 +13,0 @@ /**

@@ -7,3 +7,3 @@ import { Group } from '../../types/group';

*/
export declare function getUsersFromGroup(options: Group.User.GetUsers.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Group.User.GetUsers.Response.OK | undefined>>;
export declare function getUsersFromGroup(options: Group.User.GetUsers.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_group").GetUsersResponse | undefined>>;
/**

@@ -14,3 +14,3 @@ * Adds given user to a group.

*/
export declare function addUsersToGroup(options: Group.User.AddUsers.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Group.User.AddUsers.Response.OK | undefined>>;
export declare function addUsersToGroup(options: Group.User.AddUsers.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_group").GroupResponse | undefined>>;
/**

@@ -21,3 +21,3 @@ * Removes given user from a group.

*/
export declare function removeUsersFromGroup(options: Group.User.RemoveUsers.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function removeUsersFromGroup(options: Group.User.RemoveUsers.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
//# sourceMappingURL=user.d.ts.map

@@ -1,2 +0,1 @@

import { GroupCodec } from '../../types/group';
import { httpPost, httpGet, httpDelete } from '../common';

@@ -20,5 +19,5 @@ import { constructUrl } from '@avst-api/commons';

export function addUsersToGroup(options) {
const { connectionId: instanceId, body, headers, skipValidation, groupname } = options;
const { connectionId: instanceId, body, headers, groupname } = options;
const queryParams = { groupname };
return httpPost(instanceId, GroupCodec.User.AddUsers.Body, !!skipValidation, constructUrl('/rest/api/2/group/user', queryParams), body, headers);
return httpPost(instanceId, constructUrl('/rest/api/2/group/user', queryParams), body, headers);
}

@@ -25,0 +24,0 @@ /**

@@ -7,3 +7,3 @@ import { Instance } from '../types/instance';

*/
export declare function getInstanceConfiguration(options: Instance.GetConfiguration.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Instance.GetConfiguration.Response.OK | undefined>>;
export declare function getInstanceConfiguration(options: Instance.GetConfiguration.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../definitions/objs_instance").GetConfigurationResponse | undefined>>;
/**

@@ -14,3 +14,3 @@ * Returns an application property.

*/
export declare function getApplicationProperty(options: Instance.GetApplicationProperty.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Instance.GetApplicationProperty.Response.OK | undefined>>;
export declare function getApplicationProperty(options: Instance.GetApplicationProperty.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../definitions/objs_property").Property | undefined>>;
/**

@@ -21,3 +21,3 @@ * Modify an application property via PUT. The "value" field present in the PUT will override the existing value.

*/
export declare function setApplicationProperty(options: Instance.SetApplicationProperty.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Instance.SetApplicationProperty.Response.OK | undefined>>;
export declare function setApplicationProperty(options: Instance.SetApplicationProperty.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../definitions/objs_property").Property | undefined>>;
/**

@@ -28,3 +28,3 @@ * Returns the properties that are displayed on the "General Configuration > Advanced Settings" page.

*/
export declare function getAdvancedSettings(options: Instance.GetAdvancedSettings.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Instance.GetAdvancedSettings.Response.OK[] | undefined>>;
export declare function getAdvancedSettings(options: Instance.GetAdvancedSettings.Options.RawApi): Promise<import("@avst-api/commons").Response<Instance.GetAdvancedSettings.Response.OK | undefined>>;
/**

@@ -35,3 +35,3 @@ * Returns general information about the current JIRA server.

*/
export declare function getInstanceInfo(options: Instance.GetInfo.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Instance.GetInfo.Response.OK | undefined>>;
export declare function getInstanceInfo(options: Instance.GetInfo.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../definitions/objs_instance").GetInfoResponse | undefined>>;
//# sourceMappingURL=instance.d.ts.map

@@ -1,2 +0,1 @@

import { InstanceCodec } from '../types/instance';
import { httpGet, httpPut } from './common';

@@ -29,4 +28,4 @@ import { constructUrl } from '@avst-api/commons';

export function setApplicationProperty(options) {
const { connectionId: instanceId, id, body, headers, skipValidation } = options;
return httpPut(instanceId, InstanceCodec.SetApplicationProperty.Body, !!skipValidation, `/rest/api/2/application-properties/${id}`, body, headers);
const { connectionId: instanceId, id, body, headers } = options;
return httpPut(instanceId, `/rest/api/2/application-properties/${id}`, body, headers);
}

@@ -33,0 +32,0 @@ /**

@@ -10,3 +10,3 @@ import { Issue } from '../types/issue';

*/
export declare function createIssue(options: Issue.CreateIssue.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Issue.CreateIssue.Response.OK | undefined>>;
export declare function createIssue(options: Issue.CreateIssue.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.CreateIssue.Response.OK | undefined>>;
/**

@@ -17,3 +17,3 @@ * Delete an issue. If the issue has subtasks you must set the parameter deleteSubtasks=true to delete the issue. You cannot delete an issue without its subtasks also being deleted.

*/
export declare function deleteIssue(options: Issue.DeleteIssue.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function deleteIssue(options: Issue.DeleteIssue.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -25,3 +25,3 @@ * Returns a full representation of the issue for the given issue key.

*/
export declare function getIssue(options: Issue.GetIssue.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Issue.GetIssue.Response.OK | undefined>>;
export declare function getIssue(options: Issue.GetIssue.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../definitions/objs_issue").IssueResponse | undefined>>;
/**

@@ -37,3 +37,3 @@ * Edits an issue from a JSON representation.

*/
export declare function editIssue(options: Issue.EditIssue.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function editIssue(options: Issue.EditIssue.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -44,3 +44,3 @@ * Assigns an issue to a user. You can use this resource to assign issues when the user submitting the request has the assign permission but not the edit issue permission. If the name is "-1" automatic assignee is used. A null name will remove the assignee.

*/
export declare function assignIssue(options: Issue.AssignIssue.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function assignIssue(options: Issue.AssignIssue.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -51,3 +51,3 @@ * Sends a notification (email) to the list or recipients defined in the request.

*/
export declare function sendNotificationForIssue(options: Issue.SendNotification.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function sendNotificationForIssue(options: Issue.SendNotification.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
//# sourceMappingURL=issue.d.ts.map

@@ -1,2 +0,1 @@

import { IssueCodec } from '../types/issue';
import { httpPost, httpGet, httpDelete, httpPut } from './common';

@@ -13,4 +12,4 @@ import { constructUrl } from '@avst-api/commons';

export function createIssue(options) {
const { connectionId: instanceId, body, headers, skipValidation } = options;
return httpPost(instanceId, IssueCodec.CreateIssue.Body, !!skipValidation, '/rest/api/2/issue', body, headers);
const { connectionId: instanceId, body, headers } = options;
return httpPost(instanceId, '/rest/api/2/issue', body, headers);
}

@@ -49,5 +48,5 @@ /**

export function editIssue(options) {
const { connectionId: instanceId, issueIdOrKey, body, headers, skipValidation, notifyUsers } = options;
const { connectionId: instanceId, issueIdOrKey, body, headers, notifyUsers } = options;
const queryParams = { notifyUsers };
return httpPut(instanceId, IssueCodec.EditIssue.Body, !!skipValidation, constructUrl(`/rest/api/2/issue/${issueIdOrKey}`, queryParams), body, headers, true);
return httpPut(instanceId, constructUrl(`/rest/api/2/issue/${issueIdOrKey}`, queryParams), body, headers, true);
}

@@ -60,4 +59,4 @@ /**

export function assignIssue(options) {
const { connectionId: instanceId, issueIdOrKey, body, headers, skipValidation } = options;
return httpPut(instanceId, IssueCodec.AssignIssue.Body, !!skipValidation, `/rest/api/2/issue/${issueIdOrKey}/assignee`, body, headers, true);
const { connectionId: instanceId, issueIdOrKey, body, headers } = options;
return httpPut(instanceId, `/rest/api/2/issue/${issueIdOrKey}/assignee`, body, headers, true);
}

@@ -70,4 +69,4 @@ /**

export function sendNotificationForIssue(options) {
const { connectionId: instanceId, issueIdOrKey, body, headers, skipValidation } = options;
return httpPost(instanceId, IssueCodec.SendNotification.Body, !!skipValidation, `/rest/api/2/issue/${issueIdOrKey}/notify`, body, headers, true);
const { connectionId: instanceId, issueIdOrKey, body, headers } = options;
return httpPost(instanceId, `/rest/api/2/issue/${issueIdOrKey}/notify`, body, headers, true);
}

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssueAttachment(options: Issue.Attachment.GetAttachment.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Attachment.GetAttachment.Response.OK | undefined>>;
export declare function getIssueAttachment(options: Issue.Attachment.GetAttachment.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_attachment").Attachment | undefined>>;
/**

@@ -14,3 +14,3 @@ * Remove an attachment from an issue.

*/
export declare function removeIssueAttachment(options: Issue.Attachment.RemoveAttachment.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function removeIssueAttachment(options: Issue.Attachment.RemoveAttachment.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -21,3 +21,3 @@ * Add one or more attachments to an issue.

*/
export declare function addIssueAttachment(options: Issue.Attachment.AddAttachment.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Attachment.AddAttachment.Response.OK[] | undefined>>;
export declare function addIssueAttachment(options: Issue.Attachment.AddAttachment.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Attachment.AddAttachment.Response.OK | undefined>>;
//# sourceMappingURL=attachment.d.ts.map
import { httpDelete, httpGet, httpPost } from '../common';
import * as t from 'io-ts/es6';
import { getBodyForFileUpload } from '@avst-api/commons';

@@ -29,3 +28,3 @@ /**

const { connectionId: instanceId, issueIdOrKey, body, headers } = options;
return httpPost(instanceId, t.undefined, true, `/rest/api/2/issue/${issueIdOrKey}/attachments`, getBodyForFileUpload(body), headers);
return httpPost(instanceId, `/rest/api/2/issue/${issueIdOrKey}/attachments`, getBodyForFileUpload(body), headers);
}

@@ -7,3 +7,3 @@ import { Issue } from '../../../types/issue';

*/
export declare function getIssueAttachmentMetadata(options: Issue.Attachment.Metadata.GetMetadata.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../../handled-api/common").AtlassianErrorResponse | Issue.Attachment.Metadata.GetMetadata.Response.OK | undefined>>;
export declare function getIssueAttachmentMetadata(options: Issue.Attachment.Metadata.GetMetadata.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Attachment.Metadata.GetMetadata.Response.OK | undefined>>;
//# sourceMappingURL=metadata.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssueComments(options: Issue.Comment.GetComments.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Comment.GetComments.Response.OK | undefined>>;
export declare function getIssueComments(options: Issue.Comment.GetComments.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Comment.GetComments.Response.OK | undefined>>;
/**

@@ -14,3 +14,3 @@ * Adds a new comment to an issue.

*/
export declare function addIssueComment(options: Issue.Comment.AddComment.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Comment.AddComment.Response.OK | undefined>>;
export declare function addIssueComment(options: Issue.Comment.AddComment.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_comment").Comment | undefined>>;
/**

@@ -21,3 +21,3 @@ * Returns a single comment.

*/
export declare function getIssueComment(options: Issue.Comment.GetComment.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Comment.GetComment.Response.OK | undefined>>;
export declare function getIssueComment(options: Issue.Comment.GetComment.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_comment").Comment | undefined>>;
/**

@@ -28,3 +28,3 @@ * Updates an existing comment using its JSON representation.

*/
export declare function updateIssueComment(options: Issue.Comment.UpdateComment.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Comment.UpdateComment.Response.OK | undefined>>;
export declare function updateIssueComment(options: Issue.Comment.UpdateComment.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_comment").Comment | undefined>>;
/**

@@ -35,3 +35,3 @@ * Deletes an existing comment.

*/
export declare function deleteIssueComment(options: Issue.Comment.DeleteComment.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function deleteIssueComment(options: Issue.Comment.DeleteComment.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
//# sourceMappingURL=comment.d.ts.map

@@ -1,2 +0,1 @@

import { IssueCodec } from '../../types/issue';
import { httpPost, httpGet, httpDelete, httpPut } from '../common';

@@ -20,5 +19,5 @@ import { constructUrl } from '@avst-api/commons';

export function addIssueComment(options) {
const { connectionId: instanceId, issueIdOrKey, body, headers, skipValidation, expand } = options;
const { connectionId: instanceId, issueIdOrKey, body, headers, expand } = options;
const queryParams = { expand };
return httpPost(instanceId, IssueCodec.Comment.AddComment.Body, !!skipValidation, constructUrl(`/rest/api/2/issue/${issueIdOrKey}/comment`, queryParams), body, headers);
return httpPost(instanceId, constructUrl(`/rest/api/2/issue/${issueIdOrKey}/comment`, queryParams), body, headers);
}

@@ -41,5 +40,5 @@ /**

export function updateIssueComment(options) {
const { connectionId: instanceId, issueIdOrKey, id, body, headers, skipValidation, expand } = options;
const { connectionId: instanceId, issueIdOrKey, id, body, headers, expand } = options;
const queryParams = { expand };
return httpPut(instanceId, IssueCodec.Comment.UpdateComment.Body, !!skipValidation, constructUrl(`/rest/api/2/issue/${issueIdOrKey}/comment/${id}`, queryParams), body, headers);
return httpPut(instanceId, constructUrl(`/rest/api/2/issue/${issueIdOrKey}/comment/${id}`, queryParams), body, headers);
}

@@ -46,0 +45,0 @@ /**

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssueFields(options: Issue.Field.GetFields.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Field.GetFields.Response.OK[] | undefined>>;
export declare function getIssueFields(options: Issue.Field.GetFields.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Field.GetFields.Response.OK | undefined>>;
//# sourceMappingURL=field.d.ts.map

@@ -6,3 +6,3 @@ import { Issue } from '../../../types/issue';

*/
export declare function getIssueCustomFields(options: Issue.Field.Custom.GetFields.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../../handled-api/common").AtlassianErrorResponse | Issue.Field.Custom.GetFields.Response.OK | undefined>>;
export declare function getIssueCustomFields(options: Issue.Field.Custom.GetFields.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Field.Custom.GetFields.Response.OK | undefined>>;
//# sourceMappingURL=custom.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../../../types/issue';

*/
export declare function getIssueCustomFieldOption(options: Issue.Field.Custom.Option.GetOption.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../../../handled-api/common").AtlassianErrorResponse | Issue.Field.Custom.Option.GetOption.Response.OK | undefined>>;
export declare function getIssueCustomFieldOption(options: Issue.Field.Custom.Option.GetOption.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Field.Custom.Option.GetOption.Response.OK | undefined>>;
//# sourceMappingURL=option.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function createIssueLink(options: Issue.Link.CreateLink.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function createIssueLink(options: Issue.Link.CreateLink.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -14,3 +14,3 @@ * Returns an issue link with the specified id.

*/
export declare function getIssueLink(options: Issue.Link.GetLink.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Link.GetLink.Response.OK | undefined>>;
export declare function getIssueLink(options: Issue.Link.GetLink.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Link.GetLink.Response.OK | undefined>>;
/**

@@ -21,3 +21,3 @@ * Deletes an issue link with the specified id. To be able to delete an issue link you must be able to view both issues and must have the link issue permission for at least one of the issues.

*/
export declare function deleteIssueLink(options: Issue.Link.DeleteLink.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function deleteIssueLink(options: Issue.Link.DeleteLink.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
//# sourceMappingURL=link.d.ts.map

@@ -1,2 +0,1 @@

import { IssueCodec } from '../../types/issue';
import { httpPost, httpGet, httpDelete } from '../common';

@@ -9,4 +8,4 @@ /**

export function createIssueLink(options) {
const { connectionId: instanceId, body, headers, skipValidation } = options;
return httpPost(instanceId, IssueCodec.Link.CreateLink.Body, !!skipValidation, '/rest/api/2/issueLink', body, headers, true);
const { connectionId: instanceId, body, headers } = options;
return httpPost(instanceId, '/rest/api/2/issueLink', body, headers, true);
}

@@ -13,0 +12,0 @@ /**

@@ -7,3 +7,3 @@ import { Issue } from '../../../types/issue';

*/
export declare function getRemoteIssueLinks(options: Issue.Link.Remote.GetLinks.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../../handled-api/common").AtlassianErrorResponse | Issue.Link.Remote.GetLinks.Response.OK[] | undefined>>;
export declare function getRemoteIssueLinks(options: Issue.Link.Remote.GetLinks.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Link.Remote.GetLinks.Response.OK | undefined>>;
/**

@@ -14,3 +14,3 @@ * Creates or updates a remote issue link from a JSON representation. If a globalId is provided and a remote issue link exists with that globalId, the remote issue link is updated. Otherwise, the remote issue link is created.

*/
export declare function createOrUpdateRemoteIssueLink(options: Issue.Link.Remote.CreateOrUpdateLink.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../../handled-api/common").AtlassianErrorResponse | Issue.Link.Remote.CreateOrUpdateLink.Response.OK | undefined>>;
export declare function createOrUpdateRemoteIssueLink(options: Issue.Link.Remote.CreateOrUpdateLink.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Link.Remote.CreateOrUpdateLink.Response.OK | undefined>>;
/**

@@ -21,3 +21,3 @@ * Delete the remote issue link with the given global id on the issue.

*/
export declare function deleteRemoteIssueLinkByGlobalId(options: Issue.Link.Remote.DeleteLinkByGlobalId.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function deleteRemoteIssueLinkByGlobalId(options: Issue.Link.Remote.DeleteLinkByGlobalId.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -28,3 +28,3 @@ * Get the remote issue link with the given id on the issue.

*/
export declare function getRemoteIssueLink(options: Issue.Link.Remote.GetLink.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../../handled-api/common").AtlassianErrorResponse | Issue.Link.Remote.GetLink.Response.OK | undefined>>;
export declare function getRemoteIssueLink(options: Issue.Link.Remote.GetLink.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Link.Remote.GetLink.Response.OK | undefined>>;
/**

@@ -35,3 +35,3 @@ * Updates a remote issue link from a JSON representation. Any fields not provided are set to null.

*/
export declare function updateRemoteIssueLink(options: Issue.Link.Remote.UpdateLink.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function updateRemoteIssueLink(options: Issue.Link.Remote.UpdateLink.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -42,3 +42,3 @@ * Delete the remote issue link with the given id on the issue.

*/
export declare function deleteRemoteIssueLink(options: Issue.Link.Remote.DeleteLink.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function deleteRemoteIssueLink(options: Issue.Link.Remote.DeleteLink.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
//# sourceMappingURL=remote.d.ts.map

@@ -1,2 +0,1 @@

import { IssueCodec } from '../../../types/issue';
import { httpPost, httpGet, httpDelete, httpPut } from '../../common';

@@ -19,4 +18,4 @@ import { constructUrl } from '@avst-api/commons';

export function createOrUpdateRemoteIssueLink(options) {
const { connectionId: instanceId, issueIdOrKey, body, headers, skipValidation } = options;
return httpPost(instanceId, IssueCodec.Link.Remote.CreateOrUpdateLink.Body, !!skipValidation, `/rest/api/2/issue/${issueIdOrKey}/remotelink`, body, headers);
const { connectionId: instanceId, issueIdOrKey, body, headers } = options;
return httpPost(instanceId, `/rest/api/2/issue/${issueIdOrKey}/remotelink`, body, headers);
}

@@ -48,4 +47,4 @@ /**

export function updateRemoteIssueLink(options) {
const { connectionId: instanceId, issueIdOrKey, linkId, body, headers, skipValidation } = options;
return httpPut(instanceId, IssueCodec.Link.Remote.UpdateLink.Body, !!skipValidation, `/rest/api/2/issue/${issueIdOrKey}/remotelink/${linkId}`, body, headers, true);
const { connectionId: instanceId, issueIdOrKey, linkId, body, headers } = options;
return httpPut(instanceId, `/rest/api/2/issue/${issueIdOrKey}/remotelink/${linkId}`, body, headers, true);
}

@@ -52,0 +51,0 @@ /**

@@ -7,3 +7,3 @@ import { Issue } from '../../../types/issue';

*/
export declare function getIssueLinkTypes(options: Issue.Link.Type.GetTypes.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../../handled-api/common").AtlassianErrorResponse | Issue.Link.Type.GetTypes.Response.OK | undefined>>;
export declare function getIssueLinkTypes(options: Issue.Link.Type.GetTypes.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Link.Type.GetTypes.Response.OK | undefined>>;
/**

@@ -14,3 +14,3 @@ * Returns for a given issue link type id all information about this issue link type.

*/
export declare function getIssueLinkType(options: Issue.Link.Type.GetType.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../../handled-api/common").AtlassianErrorResponse | Issue.Link.Type.GetType.Response.OK | undefined>>;
export declare function getIssueLinkType(options: Issue.Link.Type.GetType.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../../definitions/objs_issue_link_type").IssueLinkType | undefined>>;
//# sourceMappingURL=type.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getEditIssueMetadata(options: Issue.Metadata.GetEditMetadata.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Metadata.GetEditMetadata.Response.OK | undefined>>;
export declare function getEditIssueMetadata(options: Issue.Metadata.GetEditMetadata.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Metadata.GetEditMetadata.Response.OK | undefined>>;
/**

@@ -17,3 +17,3 @@ * Returns the meta data for creating issues. This includes the available projects, issue types and fields, including field types and whether or not those fields are required. Projects will not be returned if the user does not have permission to create issues in that project.

*/
export declare function getCreateIssueMetadata(options: Issue.Metadata.GetCreateMetadata.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Metadata.GetCreateMetadata.Response.OK | undefined>>;
export declare function getCreateIssueMetadata(options: Issue.Metadata.GetCreateMetadata.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Metadata.GetCreateMetadata.Response.OK | undefined>>;
//# sourceMappingURL=metadata.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssuePriorities(options: Issue.Priority.GetPriorities.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Priority.GetPriorities.Response.OK[] | undefined>>;
export declare function getIssuePriorities(options: Issue.Priority.GetPriorities.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Priority.GetPriorities.Response.OK | undefined>>;
/**

@@ -14,3 +14,3 @@ * Returns an issue priority.

*/
export declare function getIssuePriority(options: Issue.Priority.GetPriority.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Priority.GetPriority.Response.OK | undefined>>;
export declare function getIssuePriority(options: Issue.Priority.GetPriority.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_priority").Priority | undefined>>;
//# sourceMappingURL=priority.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssueResolutions(options: Issue.Resolution.GetResolutions.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Resolution.GetResolutions.Response.OK[] | undefined>>;
export declare function getIssueResolutions(options: Issue.Resolution.GetResolutions.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Resolution.GetResolutions.Response.OK | undefined>>;
/**

@@ -14,3 +14,3 @@ * Returns a resolution.

*/
export declare function getIssueResolution(options: Issue.Resolution.GetResolution.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Resolution.GetResolution.Response.OK | undefined>>;
export declare function getIssueResolution(options: Issue.Resolution.GetResolution.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_resolution").Resolution | undefined>>;
//# sourceMappingURL=resolution.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function searchIssuesByJql(options: Issue.Search.SearchByJql.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Search.SearchByJql.Response.OK | undefined>>;
export declare function searchIssuesByJql(options: Issue.Search.SearchByJql.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Search.SearchByJql.Response.OK | undefined>>;
//# sourceMappingURL=search.d.ts.map

@@ -1,2 +0,1 @@

import { IssueCodec } from '../../types/issue';
import { httpPost } from '../common';

@@ -9,4 +8,4 @@ /**

export function searchIssuesByJql(options) {
const { connectionId: instanceId, body, headers, skipValidation } = options;
return httpPost(instanceId, IssueCodec.Search.SearchByJql.Body, !!skipValidation, '/rest/api/2/search', body, headers);
const { connectionId: instanceId, body, headers } = options;
return httpPost(instanceId, '/rest/api/2/search', body, headers);
}

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssueSubTasks(options: Issue.SubTask.GetSubTasks.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.SubTask.GetSubTasks.Response.OK[] | undefined>>;
export declare function getIssueSubTasks(options: Issue.SubTask.GetSubTasks.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.SubTask.GetSubTasks.Response.OK | undefined>>;
/**

@@ -13,3 +13,3 @@ * Documentation: https://docs.atlassian.com/software/jira/docs/api/REST/7.13.9/#api/2/issue/{issueIdOrKey}/subtask-canMoveSubTask

*/
export declare function canMoveIssueSubTask(options: Issue.SubTask.CanMoveSubTask.Options.RawApi): Promise<import("@avst-api/commons").Response<string | boolean | import("../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function canMoveIssueSubTask(options: Issue.SubTask.CanMoveSubTask.Options.RawApi): Promise<import("@avst-api/commons").Response<boolean | undefined>>;
/**

@@ -20,3 +20,3 @@ * Reorders an issue's subtasks by moving the subtask at index "from" to index "to".

*/
export declare function moveIssueSubTasks(options: Issue.SubTask.MoveSubTasks.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function moveIssueSubTasks(options: Issue.SubTask.MoveSubTasks.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
//# sourceMappingURL=subTask.d.ts.map

@@ -1,2 +0,1 @@

import { IssueCodec } from '../../types/issue';
import { httpPost, httpGet } from '../common';

@@ -26,4 +25,4 @@ /**

export function moveIssueSubTasks(options) {
const { connectionId: instanceId, issueIdOrKey, body, headers, skipValidation } = options;
return httpPost(instanceId, IssueCodec.SubTask.MoveSubTasks.Body, !!skipValidation, `/rest/api/2/issue/${issueIdOrKey}/subtask/move`, body, headers, true);
const { connectionId: instanceId, issueIdOrKey, body, headers } = options;
return httpPost(instanceId, `/rest/api/2/issue/${issueIdOrKey}/subtask/move`, body, headers, true);
}

@@ -9,3 +9,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssueTransitions(options: Issue.Transition.GetTransitions.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Transition.GetTransitions.Response.OK | undefined>>;
export declare function getIssueTransitions(options: Issue.Transition.GetTransitions.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Transition.GetTransitions.Response.OK | undefined>>;
/**

@@ -17,3 +17,3 @@ * Perform a transition on an issue. When performing the transition you can update or set other issue fields.

*/
export declare function performIssueTransition(options: Issue.Transition.PerformTransition.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function performIssueTransition(options: Issue.Transition.PerformTransition.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
//# sourceMappingURL=transition.d.ts.map

@@ -1,2 +0,1 @@

import { IssueCodec } from '../../types/issue';
import { httpPost, httpGet } from '../common';

@@ -23,4 +22,4 @@ import { constructUrl } from '@avst-api/commons';

export function performIssueTransition(options) {
const { connectionId: instanceId, issueIdOrKey, body, headers, skipValidation } = options;
return httpPost(instanceId, IssueCodec.Transition.PerformTransition.Body, !!skipValidation, `/rest/api/2/issue/${issueIdOrKey}/transitions`, body, headers, true);
const { connectionId: instanceId, issueIdOrKey, body, headers } = options;
return httpPost(instanceId, `/rest/api/2/issue/${issueIdOrKey}/transitions`, body, headers, true);
}

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssueTypes(options: Issue.Type.GetTypes.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Type.GetTypes.Response.OK[] | undefined>>;
export declare function getIssueTypes(options: Issue.Type.GetTypes.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Type.GetTypes.Response.OK | undefined>>;
/**

@@ -14,3 +14,3 @@ * Returns a full representation of the issue type that has the given id.

*/
export declare function getIssueType(options: Issue.Type.GetType.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Type.GetType.Response.OK | undefined>>;
export declare function getIssueType(options: Issue.Type.GetType.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_issue_type").IssueType | undefined>>;
//# sourceMappingURL=type.d.ts.map

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function removeIssueVote(options: Issue.Vote.RemoveVote.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function removeIssueVote(options: Issue.Vote.RemoveVote.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -14,3 +14,3 @@ * Cast your vote in favour of an issue.

*/
export declare function addIssueVote(options: Issue.Vote.AddVote.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function addIssueVote(options: Issue.Vote.AddVote.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -21,3 +21,3 @@ * A REST sub-resource representing the voters on the issue.

*/
export declare function getIssueVotes(options: Issue.Vote.GetVotes.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Vote.GetVotes.Response.OK | undefined>>;
export declare function getIssueVotes(options: Issue.Vote.GetVotes.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Vote.GetVotes.Response.OK | undefined>>;
//# sourceMappingURL=vote.d.ts.map
import { httpPost, httpGet, httpDelete } from '../common';
import * as t from 'io-ts/es6';
/**

@@ -19,3 +18,3 @@ * Remove your vote from an issue. (i.e. "unvote").

const { connectionId: instanceId, issueIdOrKey, headers } = options;
return httpPost(instanceId, t.undefined, true, `/rest/api/2/issue/${issueIdOrKey}/votes`, undefined, headers, true);
return httpPost(instanceId, `/rest/api/2/issue/${issueIdOrKey}/votes`, undefined, headers, true);
}

@@ -22,0 +21,0 @@ /**

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssueWatchers(options: Issue.Watcher.GetWatchers.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Watcher.GetWatchers.Response.OK | undefined>>;
export declare function getIssueWatchers(options: Issue.Watcher.GetWatchers.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Watcher.GetWatchers.Response.OK | undefined>>;
/**

@@ -14,3 +14,3 @@ * Adds a user to an issue's watcher list.

*/
export declare function addIssueWatcher(options: Issue.Watcher.AddWatcher.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function addIssueWatcher(options: Issue.Watcher.AddWatcher.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -21,3 +21,3 @@ * Removes a user from an issue's watcher list.

*/
export declare function removeIssueWatcher(options: Issue.Watcher.RemoveWatcher.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function removeIssueWatcher(options: Issue.Watcher.RemoveWatcher.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
//# sourceMappingURL=watcher.d.ts.map
import { httpPost, httpGet, httpDelete } from '../common';
import * as t from 'io-ts/es6';
import { constructUrl } from '@avst-api/commons';

@@ -19,4 +18,4 @@ /**

export function addIssueWatcher(options) {
const { connectionId: instanceId, issueIdOrKey, body, headers, skipValidation } = options;
return httpPost(instanceId, t.string, !!skipValidation, `/rest/api/2/issue/${issueIdOrKey}/watchers`, body, headers, true);
const { connectionId: instanceId, issueIdOrKey, body, headers } = options;
return httpPost(instanceId, `/rest/api/2/issue/${issueIdOrKey}/watchers`, body, headers, true);
}

@@ -23,0 +22,0 @@ /**

@@ -7,3 +7,3 @@ import { Issue } from '../../types/issue';

*/
export declare function getIssueWorklogs(options: Issue.Worklog.GetWorklogs.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Worklog.GetWorklogs.Response.OK | undefined>>;
export declare function getIssueWorklogs(options: Issue.Worklog.GetWorklogs.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Worklog.GetWorklogs.Response.OK | undefined>>;
/**

@@ -14,3 +14,3 @@ * Adds a new worklog entry to an issue.

*/
export declare function addIssueWorklog(options: Issue.Worklog.AddWorklog.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Worklog.AddWorklog.Response.OK | undefined>>;
export declare function addIssueWorklog(options: Issue.Worklog.AddWorklog.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_worklog").Worklog | undefined>>;
/**

@@ -21,3 +21,3 @@ * Returns a specific worklog. The work log won't be returned if the Log work field is hidden for the project.

*/
export declare function getIssueWorklog(options: Issue.Worklog.GetWorklog.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Worklog.GetWorklog.Response.OK | undefined>>;
export declare function getIssueWorklog(options: Issue.Worklog.GetWorklog.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_worklog").Worklog | undefined>>;
/**

@@ -28,3 +28,3 @@ * Updates an existing worklog entry. Fields possible for editing are: comment, visibility, started, timeSpent and timeSpentSeconds. Either timeSpent or timeSpentSeconds can be set. Fields which are not set will not be updated. For a request to be valid, it has to have at least one field change.

*/
export declare function updateIssueWorklog(options: Issue.Worklog.UpdateWorklog.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Worklog.UpdateWorklog.Response.OK | undefined>>;
export declare function updateIssueWorklog(options: Issue.Worklog.UpdateWorklog.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_worklog").Worklog | undefined>>;
/**

@@ -35,3 +35,3 @@ * Deletes an existing worklog entry.

*/
export declare function deleteIssueWorklog(options: Issue.Worklog.DeleteWorklog.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function deleteIssueWorklog(options: Issue.Worklog.DeleteWorklog.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -42,3 +42,3 @@ * Returns worklogs id and delete time of worklogs that was deleted since given time. The returns set of worklogs is limited to 1000 elements. This API will not return worklogs deleted during last minute.

*/
export declare function getDeletedIssueWorklogIds(options: Issue.Worklog.GetDeletedWorklogIds.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Worklog.GetDeletedWorklogIds.Response.OK | undefined>>;
export declare function getDeletedIssueWorklogIds(options: Issue.Worklog.GetDeletedWorklogIds.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Worklog.GetDeletedWorklogIds.Response.OK | undefined>>;
/**

@@ -49,3 +49,3 @@ * Returns worklogs for given worklog ids. Only worklogs to which the calling user has permissions, will be included in the result. The returns set of worklogs is limited to 1000 elements.

*/
export declare function getIssueWorklogsForIds(options: Issue.Worklog.GetWorklogsForIds.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Worklog.GetWorklogsForIds.Response.OK[] | undefined>>;
export declare function getIssueWorklogsForIds(options: Issue.Worklog.GetWorklogsForIds.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Worklog.GetWorklogsForIds.Response.OK | undefined>>;
/**

@@ -56,3 +56,3 @@ * Returns worklogs id and update time of worklogs that was updated since given time. The returns set of worklogs is limited to 1000 elements. This API will not return worklogs updated during last minute.

*/
export declare function getUpdatedIssueWorklogIds(options: Issue.Worklog.GetUpdatedWorklogIds.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Issue.Worklog.GetUpdatedWorklogIds.Response.OK | undefined>>;
export declare function getUpdatedIssueWorklogIds(options: Issue.Worklog.GetUpdatedWorklogIds.Options.RawApi): Promise<import("@avst-api/commons").Response<Issue.Worklog.GetUpdatedWorklogIds.Response.OK | undefined>>;
//# sourceMappingURL=worklog.d.ts.map

@@ -1,2 +0,1 @@

import { IssueCodec } from '../../types/issue';
import { httpPost, httpGet, httpDelete, httpPut } from '../common';

@@ -19,5 +18,5 @@ import { constructUrl } from '@avst-api/commons';

export function addIssueWorklog(options) {
const { connectionId: instanceId, issueIdOrKey, body, headers, skipValidation, adjustEstimate, newEstimate, reduceBy } = options;
const { connectionId: instanceId, issueIdOrKey, body, headers, adjustEstimate, newEstimate, reduceBy } = options;
const queryParams = { adjustEstimate, newEstimate, reduceBy };
return httpPost(instanceId, IssueCodec.Worklog.AddWorklog.Body, !!skipValidation, constructUrl(`/rest/api/2/issue/${issueIdOrKey}/worklog`, queryParams), body, headers);
return httpPost(instanceId, constructUrl(`/rest/api/2/issue/${issueIdOrKey}/worklog`, queryParams), body, headers);
}

@@ -39,5 +38,5 @@ /**

export function updateIssueWorklog(options) {
const { connectionId: instanceId, issueIdOrKey, id, body, headers, skipValidation, newEstimate, adjustEstimate } = options;
const { connectionId: instanceId, issueIdOrKey, id, body, headers, newEstimate, adjustEstimate } = options;
const queryParams = { adjustEstimate, newEstimate };
return httpPut(instanceId, IssueCodec.Worklog.UpdateWorklog.Body, !!skipValidation, constructUrl(`/rest/api/2/issue/${issueIdOrKey}/worklog/${id}`, queryParams), body, headers);
return httpPut(instanceId, constructUrl(`/rest/api/2/issue/${issueIdOrKey}/worklog/${id}`, queryParams), body, headers);
}

@@ -70,4 +69,4 @@ /**

export function getIssueWorklogsForIds(options) {
const { connectionId: instanceId, body, headers, skipValidation } = options;
return httpPost(instanceId, IssueCodec.Worklog.GetWorklogsForIds.Body, !!skipValidation, '/rest/api/2/worklog/list', body, headers);
const { connectionId: instanceId, body, headers } = options;
return httpPost(instanceId, '/rest/api/2/worklog/list', body, headers);
}

@@ -74,0 +73,0 @@ /**

@@ -7,3 +7,3 @@ import { Myself } from '../types/myself';

*/
export declare function getCurrentUser(options: Myself.GetCurrentUser.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Myself.GetCurrentUser.Response.OK | undefined>>;
export declare function getCurrentUser(options: Myself.GetCurrentUser.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../definitions/objs_user").UserFull | undefined>>;
//# sourceMappingURL=myself.d.ts.map

@@ -7,3 +7,3 @@ import { Project } from '../types/project';

*/
export declare function getProjects(options: Project.GetProjects.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Project.GetProjects.Response.OK[] | undefined>>;
export declare function getProjects(options: Project.GetProjects.Options.RawApi): Promise<import("@avst-api/commons").Response<Project.GetProjects.Response.OK | undefined>>;
/**

@@ -14,3 +14,3 @@ * Creates a new project.

*/
export declare function createProject(options: Project.CreateProject.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Project.CreateProject.Response.OK | undefined>>;
export declare function createProject(options: Project.CreateProject.Options.RawApi): Promise<import("@avst-api/commons").Response<Project.CreateProject.Response.OK | undefined>>;
/**

@@ -21,3 +21,3 @@ * Contains a full representation of a project in JSON format.

*/
export declare function getProject(options: Project.GetProject.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Project.GetProject.Response.OK | undefined>>;
export declare function getProject(options: Project.GetProject.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../definitions/objs_project").Project | undefined>>;
/**

@@ -28,3 +28,3 @@ * Updates a project. Only non null values sent in JSON will be updated in the project.

*/
export declare function updateProject(options: Project.UpdateProject.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Project.UpdateProject.Response.OK | undefined>>;
export declare function updateProject(options: Project.UpdateProject.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../definitions/objs_project").Project | undefined>>;
/**

@@ -35,3 +35,3 @@ * Deletes a project.

*/
export declare function deleteProject(options: Project.DeleteProject.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function deleteProject(options: Project.DeleteProject.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -42,3 +42,3 @@ * Archives a project.

*/
export declare function archiveProject(options: Project.ArchiveProject.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function archiveProject(options: Project.ArchiveProject.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -49,3 +49,3 @@ * Contains a full representation of a the specified project's components.

*/
export declare function getProjectComponents(options: Project.GetComponents.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Project.GetComponents.Response.OK[] | undefined>>;
export declare function getProjectComponents(options: Project.GetComponents.Options.RawApi): Promise<import("@avst-api/commons").Response<Project.GetComponents.Response.OK | undefined>>;
/**

@@ -56,3 +56,3 @@ * Restore an archived project. In case of success restored project should be re-indexed.

*/
export declare function restoreProject(options: Project.RestoreProject.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function restoreProject(options: Project.RestoreProject.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -63,3 +63,3 @@ * Get all issue types with valid status values for a project.

*/
export declare function getProjectStatuses(options: Project.GetStatuses.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Project.GetStatuses.Response.OK[] | undefined>>;
export declare function getProjectStatuses(options: Project.GetStatuses.Options.RawApi): Promise<import("@avst-api/commons").Response<Project.GetStatuses.Response.OK | undefined>>;
/**

@@ -70,3 +70,3 @@ * Updates the type of a project.

*/
export declare function updateProjectType(options: Project.UpdateProjectType.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Project.UpdateProjectType.Response.OK | undefined>>;
export declare function updateProjectType(options: Project.UpdateProjectType.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../definitions/objs_project").Project | undefined>>;
/**

@@ -77,3 +77,3 @@ * Returns all versions for the specified project. Results are paginated.

*/
export declare function getProjectVersionsPaginated(options: Project.GetVersionsPaginated.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Project.GetVersionsPaginated.Response.OK | undefined>>;
export declare function getProjectVersionsPaginated(options: Project.GetVersionsPaginated.Options.RawApi): Promise<import("@avst-api/commons").Response<Project.GetVersionsPaginated.Response.OK | undefined>>;
/**

@@ -84,3 +84,3 @@ * Contains a full representation of a the specified project's versions.

*/
export declare function getProjectVersions(options: Project.GetVersions.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | Project.GetVersions.Response.OK[] | undefined>>;
export declare function getProjectVersions(options: Project.GetVersions.Options.RawApi): Promise<import("@avst-api/commons").Response<Project.GetVersions.Response.OK | undefined>>;
//# sourceMappingURL=project.d.ts.map

@@ -1,5 +0,3 @@

import { ProjectCodec } from '../types/project';
import { httpGet, httpPost, httpPut, httpDelete } from './common';
import { constructUrl } from '@avst-api/commons';
import * as t from 'io-ts/es6';
/**

@@ -21,4 +19,4 @@ * Returns all projects which are visible for the currently logged in user. If no user is logged in, it returns the list of projects that are visible when using anonymous access.

export function createProject(options) {
const { connectionId: instanceId, body, headers, skipValidation } = options;
return httpPost(instanceId, ProjectCodec.CreateProject.Body, !!skipValidation, '/rest/api/2/project', body, headers);
const { connectionId: instanceId, body, headers } = options;
return httpPost(instanceId, '/rest/api/2/project', body, headers);
}

@@ -41,5 +39,5 @@ /**

export function updateProject(options) {
const { connectionId: instanceId, projectIdOrKey, body, headers, skipValidation, expand } = options;
const { connectionId: instanceId, projectIdOrKey, body, headers, expand } = options;
const queryParams = { expand };
return httpPut(instanceId, ProjectCodec.UpdateProject.Body, !!skipValidation, constructUrl(`/rest/api/2/project/${projectIdOrKey}`, queryParams), body, headers);
return httpPut(instanceId, constructUrl(`/rest/api/2/project/${projectIdOrKey}`, queryParams), body, headers);
}

@@ -62,3 +60,3 @@ /**

const { connectionId: instanceId, projectIdOrKey, headers } = options;
return httpPut(instanceId, t.undefined, true, `/rest/api/2/project/${projectIdOrKey}/archive`, undefined, headers, true);
return httpPut(instanceId, `/rest/api/2/project/${projectIdOrKey}/archive`, undefined, headers, true);
}

@@ -81,3 +79,3 @@ /**

const { connectionId: instanceId, projectIdOrKey, headers } = options;
return httpPut(instanceId, t.undefined, true, `/rest/api/2/project/${projectIdOrKey}/restore`, undefined, headers, true);
return httpPut(instanceId, `/rest/api/2/project/${projectIdOrKey}/restore`, undefined, headers, true);
}

@@ -100,3 +98,3 @@ /**

const { connectionId: instanceId, projectIdOrKey, newProjectTypeKey, headers } = options;
return httpPut(instanceId, t.undefined, true, `/rest/api/2/project/${projectIdOrKey}/type/${newProjectTypeKey}`, undefined, headers);
return httpPut(instanceId, `/rest/api/2/project/${projectIdOrKey}/type/${newProjectTypeKey}`, undefined, headers);
}

@@ -103,0 +101,0 @@ /**

@@ -7,3 +7,3 @@ import { Project } from '../../types/project';

*/
export declare function createProjectComponent(options: Project.Component.CreateComponent.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Project.Component.CreateComponent.Response.OK | undefined>>;
export declare function createProjectComponent(options: Project.Component.CreateComponent.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_component").Component | undefined>>;
/**

@@ -14,3 +14,3 @@ * Returns a project component.

*/
export declare function getProjectComponent(options: Project.Component.GetComponent.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Project.Component.GetComponent.Response.OK | undefined>>;
export declare function getProjectComponent(options: Project.Component.GetComponent.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_component").Component | undefined>>;
/**

@@ -21,3 +21,3 @@ * Modify a component via PUT. If leadUserName is an empty string ("") the component lead will be removed.

*/
export declare function updateProjectComponent(options: Project.Component.UpdateComponent.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Project.Component.UpdateComponent.Response.OK | undefined>>;
export declare function updateProjectComponent(options: Project.Component.UpdateComponent.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_component").Component | undefined>>;
/**

@@ -28,3 +28,3 @@ * Delete a project component.

*/
export declare function deleteProjectComponent(options: Project.Component.DeleteComponent.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function deleteProjectComponent(options: Project.Component.DeleteComponent.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -35,3 +35,3 @@ * Returns counts of issues related to this component.

*/
export declare function getProjectComponentRelatedIssues(options: Project.Component.GetRelatedIssues.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Project.Component.GetRelatedIssues.Response.OK | undefined>>;
export declare function getProjectComponentRelatedIssues(options: Project.Component.GetRelatedIssues.Options.RawApi): Promise<import("@avst-api/commons").Response<Project.Component.GetRelatedIssues.Response.OK | undefined>>;
//# sourceMappingURL=component.d.ts.map

@@ -1,2 +0,1 @@

import { ProjectCodec } from '../../types/project';
import { httpPost, httpGet, httpPut, httpDelete } from '../common';

@@ -10,4 +9,4 @@ import { constructUrl } from '@avst-api/commons';

export function createProjectComponent(options) {
const { connectionId: instanceId, body, headers, skipValidation } = options;
return httpPost(instanceId, ProjectCodec.Component.CreateComponent.Body, !!skipValidation, '/rest/api/2/component', body, headers);
const { connectionId: instanceId, body, headers } = options;
return httpPost(instanceId, '/rest/api/2/component', body, headers);
}

@@ -29,4 +28,4 @@ /**

export function updateProjectComponent(options) {
const { connectionId: instanceId, id, body, headers, skipValidation } = options;
return httpPut(instanceId, ProjectCodec.Component.UpdateComponent.Body, !!skipValidation, `/rest/api/2/component/${id}`, body, headers);
const { connectionId: instanceId, id, body, headers } = options;
return httpPut(instanceId, `/rest/api/2/component/${id}`, body, headers);
}

@@ -33,0 +32,0 @@ /**

@@ -7,3 +7,3 @@ import { Project } from '../../types/project';

*/
export declare function getProjectRoles(options: Project.Role.GetRoles.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Project.Role.GetRoles.Response.OK | undefined>>;
export declare function getProjectRoles(options: Project.Role.GetRoles.Options.RawApi): Promise<import("@avst-api/commons").Response<Record<string, string> | undefined>>;
/**

@@ -14,3 +14,3 @@ * Returns the details for a given project role in a project.

*/
export declare function getProjectRole(options: Project.Role.GetRole.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Project.Role.GetRole.Response.OK | undefined>>;
export declare function getProjectRole(options: Project.Role.GetRole.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_project_role").ProjectRole | undefined>>;
//# sourceMappingURL=role.d.ts.map

@@ -7,3 +7,3 @@ import { Project } from '../../../types/project';

*/
export declare function setProjectRoleActors(options: Project.Role.Actor.SetActors.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../../handled-api/common").AtlassianErrorResponse | Project.Role.Actor.SetActors.Response.OK | undefined>>;
export declare function setProjectRoleActors(options: Project.Role.Actor.SetActors.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../../definitions/objs_project_role").ProjectRole | undefined>>;
/**

@@ -14,3 +14,3 @@ * Adds an actor (user or group) to a project role.

*/
export declare function addProjectRoleActorUsers(options: Project.Role.Actor.AddUsers.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../../handled-api/common").AtlassianErrorResponse | Project.Role.Actor.AddUsers.Response.OK | undefined>>;
export declare function addProjectRoleActorUsers(options: Project.Role.Actor.AddUsers.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../../definitions/objs_project_role").ProjectRole | undefined>>;
/**

@@ -23,3 +23,3 @@ * Deletes actors (users or groups) from a project role.

*/
export declare function deleteProjectRoleActor(options: Project.Role.Actor.DeleteActor.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function deleteProjectRoleActor(options: Project.Role.Actor.DeleteActor.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
//# sourceMappingURL=actor.d.ts.map

@@ -1,2 +0,1 @@

import { ProjectCodec } from '../../../types/project';
import { httpDelete, httpPut, httpPost } from '../../common';

@@ -10,4 +9,4 @@ import { constructUrl } from '@avst-api/commons';

export function setProjectRoleActors(options) {
const { connectionId: instanceId, projectIdOrKey, id, body, headers, skipValidation } = options;
return httpPut(instanceId, ProjectCodec.Role.Actor.SetActors.Body, !!skipValidation, `/rest/api/2/project/${projectIdOrKey}/role/${id}`, body, headers);
const { connectionId: instanceId, projectIdOrKey, id, body, headers } = options;
return httpPut(instanceId, `/rest/api/2/project/${projectIdOrKey}/role/${id}`, body, headers);
}

@@ -20,4 +19,4 @@ /**

export function addProjectRoleActorUsers(options) {
const { connectionId: instanceId, projectIdOrKey, id, body, headers, skipValidation } = options;
return httpPost(instanceId, ProjectCodec.Role.Actor.AddUsers.Body, !!skipValidation, `/rest/api/2/project/${projectIdOrKey}/role/${id}`, body, headers);
const { connectionId: instanceId, projectIdOrKey, id, body, headers } = options;
return httpPost(instanceId, `/rest/api/2/project/${projectIdOrKey}/role/${id}`, body, headers);
}

@@ -24,0 +23,0 @@ /**

@@ -7,3 +7,3 @@ import { Project } from '../../types/project';

*/
export declare function getProjectTypes(options: Project.Type.GetTypes.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Project.Type.GetTypes.Response.OK[] | undefined>>;
export declare function getProjectTypes(options: Project.Type.GetTypes.Options.RawApi): Promise<import("@avst-api/commons").Response<Project.Type.GetTypes.Response.OK | undefined>>;
/**

@@ -14,3 +14,3 @@ * Returns the project type with the given key.

*/
export declare function getProjectType(options: Project.Type.GetType.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Project.Type.GetType.Response.OK | undefined>>;
export declare function getProjectType(options: Project.Type.GetType.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_project_type").ProjectType | undefined>>;
/**

@@ -21,3 +21,3 @@ * Returns the project type with the given key, if it is accessible to the logged in user. This takes into account whether the user is licensed on the Application that defines the project type.

*/
export declare function getAccessibleProjectType(options: Project.Type.GetAccessibleType.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Project.Type.GetAccessibleType.Response.OK | undefined>>;
export declare function getAccessibleProjectType(options: Project.Type.GetAccessibleType.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_project_type").ProjectType | undefined>>;
//# sourceMappingURL=type.d.ts.map

@@ -7,3 +7,3 @@ import { Project } from '../../types/project';

*/
export declare function validateProjectKey(options: Project.Validation.ValidateProjectKey.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Project.Validation.ValidateProjectKey.Response.OK | undefined>>;
export declare function validateProjectKey(options: Project.Validation.ValidateProjectKey.Options.RawApi): Promise<import("@avst-api/commons").Response<Project.Validation.ValidateProjectKey.Response.OK | undefined>>;
//# sourceMappingURL=validation.d.ts.map

@@ -7,3 +7,3 @@ import { Project } from '../../types/project';

*/
export declare function createProjectVersion(options: Project.Version.CreateVersion.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Project.Version.CreateVersion.Response.OK | undefined>>;
export declare function createProjectVersion(options: Project.Version.CreateVersion.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_version").Version | undefined>>;
/**

@@ -14,3 +14,3 @@ * Modify a version's sequence within a project.

*/
export declare function moveProjectVersion(options: Project.Version.MoveVersion.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Project.Version.MoveVersion.Response.OK | undefined>>;
export declare function moveProjectVersion(options: Project.Version.MoveVersion.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_version").Version | undefined>>;
/**

@@ -21,3 +21,3 @@ * Returns a project version.

*/
export declare function getProjectVersion(options: Project.Version.GetVersion.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Project.Version.GetVersion.Response.OK | undefined>>;
export declare function getProjectVersion(options: Project.Version.GetVersion.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_version").Version | undefined>>;
/**

@@ -28,3 +28,3 @@ * Modify a version via PUT. Any fields present in the PUT will override existing values. As a convenience, if a field is not present, it is silently ignored.

*/
export declare function updateProjectVersion(options: Project.Version.UpdateVersion.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Project.Version.UpdateVersion.Response.OK | undefined>>;
export declare function updateProjectVersion(options: Project.Version.UpdateVersion.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_version").Version | undefined>>;
/**

@@ -35,3 +35,3 @@ * Delete a project version.

*/
export declare function deleteProjectVersion(options: Project.Version.DeleteVersion.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function deleteProjectVersion(options: Project.Version.DeleteVersion.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -42,3 +42,3 @@ * Merge versions.

*/
export declare function mergeProjectVersion(options: Project.Version.MergeVersion.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function mergeProjectVersion(options: Project.Version.MergeVersion.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -49,3 +49,3 @@ * Delete a project version.

*/
export declare function removeAndReplaceProjectVersion(options: Project.Version.RemoveAndReplaceVersion.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function removeAndReplaceProjectVersion(options: Project.Version.RemoveAndReplaceVersion.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
//# sourceMappingURL=version.d.ts.map

@@ -1,5 +0,3 @@

import { ProjectCodec } from '../../types/project';
import { httpGet, httpPost, httpPut, httpDelete } from '../common';
import { constructUrl } from '@avst-api/commons';
import * as t from 'io-ts/es6';
/**

@@ -11,4 +9,4 @@ * Create a version via POST.

export function createProjectVersion(options) {
const { connectionId: instanceId, body, headers, skipValidation } = options;
return httpPost(instanceId, ProjectCodec.Version.CreateVersion.Body, !!skipValidation, '/rest/api/2/version', body, headers);
const { connectionId: instanceId, body, headers } = options;
return httpPost(instanceId, '/rest/api/2/version', body, headers);
}

@@ -21,4 +19,4 @@ /**

export function moveProjectVersion(options) {
const { connectionId: instanceId, id, body, headers, skipValidation } = options;
return httpPost(instanceId, ProjectCodec.Version.MoveVersion.Body, !!skipValidation, `/rest/api/2/version/${id}/move`, body, headers);
const { connectionId: instanceId, id, body, headers } = options;
return httpPost(instanceId, `/rest/api/2/version/${id}/move`, body, headers);
}

@@ -41,4 +39,4 @@ /**

export function updateProjectVersion(options) {
const { connectionId: instanceId, id, body, headers, skipValidation } = options;
return httpPut(instanceId, ProjectCodec.Version.UpdateVersion.Body, !!skipValidation, `/rest/api/2/version/${id}`, body, headers);
const { connectionId: instanceId, id, body, headers } = options;
return httpPut(instanceId, `/rest/api/2/version/${id}`, body, headers);
}

@@ -62,3 +60,3 @@ /**

const { connectionId: instanceId, id, moveIssuesTo, headers } = options;
return httpPut(instanceId, t.undefined, true, `/rest/api/2/version/${id}/mergeto/${moveIssuesTo}`, undefined, headers, true);
return httpPut(instanceId, `/rest/api/2/version/${id}/mergeto/${moveIssuesTo}`, undefined, headers, true);
}

@@ -71,4 +69,4 @@ /**

export function removeAndReplaceProjectVersion(options) {
const { connectionId: instanceId, id, body, headers, skipValidation } = options;
return httpPost(instanceId, ProjectCodec.Version.RemoveAndReplaceVersion.Body, !!skipValidation, `/rest/api/2/version/${id}/removeAndSwap`, body, headers, true);
const { connectionId: instanceId, id, body, headers } = options;
return httpPost(instanceId, `/rest/api/2/version/${id}/removeAndSwap`, body, headers, true);
}

@@ -7,3 +7,3 @@ import { Project } from '../../../types/project';

*/
export declare function getProjectVersionRelatedIssueCount(options: Project.Version.Count.GetVersionRelatedIssueCount.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../../handled-api/common").AtlassianErrorResponse | Project.Version.Count.GetVersionRelatedIssueCount.Response.OK | undefined>>;
export declare function getProjectVersionRelatedIssueCount(options: Project.Version.Count.GetVersionRelatedIssueCount.Options.RawApi): Promise<import("@avst-api/commons").Response<Project.Version.Count.GetVersionRelatedIssueCount.Response.OK | undefined>>;
/**

@@ -14,3 +14,3 @@ * Returns the number of unresolved issues for the given version

*/
export declare function getProjectVersionUnresolvedIssueCount(options: Project.Version.Count.GetVersionUnresolvedIssueCount.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../../handled-api/common").AtlassianErrorResponse | Project.Version.Count.GetVersionUnresolvedIssueCount.Response.OK | undefined>>;
export declare function getProjectVersionUnresolvedIssueCount(options: Project.Version.Count.GetVersionUnresolvedIssueCount.Options.RawApi): Promise<import("@avst-api/commons").Response<Project.Version.Count.GetVersionUnresolvedIssueCount.Response.OK | undefined>>;
//# sourceMappingURL=count.d.ts.map

@@ -7,3 +7,3 @@ import { Role } from '../../types/role';

*/
export declare function getGlobalProjectRoles(options: Role.Project.GetRoles.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Role.Project.GetRoles.Response.OK[] | undefined>>;
export declare function getGlobalProjectRoles(options: Role.Project.GetRoles.Options.RawApi): Promise<import("@avst-api/commons").Response<Role.Project.GetRoles.Response.OK | undefined>>;
/**

@@ -14,3 +14,3 @@ * Get a specific ProjectRole available in JIRA.

*/
export declare function getGlobalProjectRole(options: Role.Project.GetRole.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Role.Project.GetRole.Response.OK | undefined>>;
export declare function getGlobalProjectRole(options: Role.Project.GetRole.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_project_role").ProjectRole | undefined>>;
//# sourceMappingURL=project.d.ts.map

@@ -7,3 +7,3 @@ import { User } from '../types/user';

*/
export declare function getUser(options: User.GetUser.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | User.GetUser.Response.OK | undefined>>;
export declare function getUser(options: User.GetUser.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../definitions/objs_user").UserFull | undefined>>;
/**

@@ -14,3 +14,3 @@ * Modify user. The "value" fields present will override the existing value. Fields skipped in request will not be changed.

*/
export declare function updateUser(options: User.UpdateUser.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | User.UpdateUser.Response.OK | undefined>>;
export declare function updateUser(options: User.UpdateUser.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../definitions/objs_user").UserFull | undefined>>;
/**

@@ -21,3 +21,3 @@ * Create user. By default created user will not be notified with email. If password field is not set then password will be randomly generated.

*/
export declare function createUser(options: User.CreateUser.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | User.CreateUser.Response.OK | undefined>>;
export declare function createUser(options: User.CreateUser.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../definitions/objs_user").UserFull | undefined>>;
/**

@@ -28,3 +28,3 @@ * Removes user and its references (like project roles associations, watches, history).

*/
export declare function removeUser(options: User.RemoveUser.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function removeUser(options: User.RemoveUser.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -35,3 +35,3 @@ * Add user to given application. Admin permission will be required to perform this operation.

*/
export declare function addUserToApplication(options: User.AddUserToApplication.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function addUserToApplication(options: User.AddUserToApplication.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -42,3 +42,3 @@ * Remove user from given application. Admin permission will be required to perform this operation.

*/
export declare function removeUserFromApplication(options: User.RemoveUserFromApplication.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function removeUserFromApplication(options: User.RemoveUserFromApplication.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
/**

@@ -49,3 +49,3 @@ * Modify user password.

*/
export declare function changeUserPassword(options: User.ChangeUserPassword.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../handled-api/common").AtlassianErrorResponse | undefined>>;
export declare function changeUserPassword(options: User.ChangeUserPassword.Options.RawApi): Promise<import("@avst-api/commons").Response<undefined>>;
//# sourceMappingURL=user.d.ts.map

@@ -1,5 +0,3 @@

import { UserCodec } from '../types/user';
import { httpGet, httpDelete, httpPost, httpPut } from './common';
import { constructUrl } from '@avst-api/commons';
import * as t from 'io-ts/es6';
/**

@@ -21,5 +19,5 @@ * Returns a user.

export function updateUser(options) {
const { connectionId: instanceId, body, headers, skipValidation, key, username } = options;
const { connectionId: instanceId, body, headers, key, username } = options;
const queryParams = { key, username };
return httpPut(instanceId, UserCodec.UpdateUser.Body, !!skipValidation, constructUrl('/rest/api/2/user', queryParams), body, headers);
return httpPut(instanceId, constructUrl('/rest/api/2/user', queryParams), body, headers);
}

@@ -32,4 +30,4 @@ /**

export function createUser(options) {
const { connectionId: instanceId, body, headers, skipValidation } = options;
return httpPost(instanceId, UserCodec.CreateUser.Body, !!skipValidation, '/rest/api/2/user', body, headers);
const { connectionId: instanceId, body, headers } = options;
return httpPost(instanceId, '/rest/api/2/user', body, headers);
}

@@ -54,3 +52,3 @@ /**

const queryParams = { applicationKey, username };
return httpPost(instanceId, t.undefined, true, constructUrl('/rest/api/2/user/application', queryParams), undefined, headers, true);
return httpPost(instanceId, constructUrl('/rest/api/2/user/application', queryParams), undefined, headers, true);
}

@@ -73,5 +71,5 @@ /**

export function changeUserPassword(options) {
const { connectionId: instanceId, body, headers, skipValidation, key, username } = options;
const { connectionId: instanceId, body, headers, key, username } = options;
const queryParams = { key, username };
return httpPut(instanceId, UserCodec.ChangeUserPassword.Body, !!skipValidation, constructUrl('/rest/api/2/user/password', queryParams), body, headers, true);
return httpPut(instanceId, constructUrl('/rest/api/2/user/password', queryParams), body, headers, true);
}

@@ -7,3 +7,3 @@ import { User } from '../../types/user';

*/
export declare function findAssignableUsers(options: User.Search.FindAssignableUsers.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | User.Search.FindAssignableUsers.Response.OK[] | undefined>>;
export declare function findAssignableUsers(options: User.Search.FindAssignableUsers.Options.RawApi): Promise<import("@avst-api/commons").Response<User.Search.FindAssignableUsers.Response.OK | undefined>>;
/**

@@ -15,3 +15,3 @@ * Returns a list of active users that match the search string and have all specified permissions for the project or issue.

*/
export declare function findUsersWithAllPermissions(options: User.Search.FindUsersWithAllPermissions.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | User.Search.FindUsersWithAllPermissions.Response.OK[] | undefined>>;
export declare function findUsersWithAllPermissions(options: User.Search.FindUsersWithAllPermissions.Options.RawApi): Promise<import("@avst-api/commons").Response<User.Search.FindUsersWithAllPermissions.Response.OK | undefined>>;
/**

@@ -22,3 +22,3 @@ * Returns a list of users that match the search string. This resource cannot be accessed anonymously.

*/
export declare function findUsers(options: User.Search.FindUsers.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | User.Search.FindUsers.Response.OK[] | undefined>>;
export declare function findUsers(options: User.Search.FindUsers.Options.RawApi): Promise<import("@avst-api/commons").Response<User.Search.FindUsers.Response.OK | undefined>>;
/**

@@ -29,3 +29,3 @@ * Returns a list of active users that match the search string. This resource cannot be accessed anonymously and requires the Browse Users global permission. Given an issue key this resource will provide a list of users that match the search string and have the browse issue permission for the issue provided.

*/
export declare function findUsersWithBrowsePermission(options: User.Search.FindUsersWithBrowsePermission.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | User.Search.FindUsersWithBrowsePermission.Response.OK[] | undefined>>;
export declare function findUsersWithBrowsePermission(options: User.Search.FindUsersWithBrowsePermission.Options.RawApi): Promise<import("@avst-api/commons").Response<User.Search.FindUsersWithBrowsePermission.Response.OK | undefined>>;
//# sourceMappingURL=search.d.ts.map

@@ -7,3 +7,3 @@ import { Workflow } from '../../types/workflow';

*/
export declare function getWorkflowStatuses(options: Workflow.Status.GetStatuses.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Workflow.Status.GetStatuses.Response.OK[] | undefined>>;
export declare function getWorkflowStatuses(options: Workflow.Status.GetStatuses.Options.RawApi): Promise<import("@avst-api/commons").Response<Workflow.Status.GetStatuses.Response.OK | undefined>>;
/**

@@ -14,3 +14,3 @@ * Returns a full representation of the Status having the given id or name.

*/
export declare function getWorkflowStatus(options: Workflow.Status.GetStatus.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../handled-api/common").AtlassianErrorResponse | Workflow.Status.GetStatus.Response.OK | undefined>>;
export declare function getWorkflowStatus(options: Workflow.Status.GetStatus.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../definitions/objs_status").Status | undefined>>;
//# sourceMappingURL=status.d.ts.map

@@ -7,3 +7,3 @@ import { Workflow } from '../../../types/workflow';

*/
export declare function getWorkflowStatusCategories(options: Workflow.Status.Category.GetCategories.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../../handled-api/common").AtlassianErrorResponse | Workflow.Status.Category.GetCategories.Response.OK[] | undefined>>;
export declare function getWorkflowStatusCategories(options: Workflow.Status.Category.GetCategories.Options.RawApi): Promise<import("@avst-api/commons").Response<Workflow.Status.Category.GetCategories.Response.OK | undefined>>;
/**

@@ -14,3 +14,3 @@ * Returns a full representation of the StatusCategory having the given id or key.

*/
export declare function getWorkflowStatusCategory(options: Workflow.Status.Category.GetCategory.Options.RawApi): Promise<import("@avst-api/commons").Response<string | import("../../../handled-api/common").AtlassianErrorResponse | Workflow.Status.Category.GetCategory.Response.OK | undefined>>;
export declare function getWorkflowStatusCategory(options: Workflow.Status.Category.GetCategory.Options.RawApi): Promise<import("@avst-api/commons").Response<import("../../../definitions/objs_status_category").StatusCategory | undefined>>;
//# sourceMappingURL=category.d.ts.map

@@ -1,6 +0,9 @@

# 0.1.8
# 0.1.10
- Removed `io-ts` and `fp-ts` packages.
# 0.1.9
- Removed ADF from creating issue request.
# 0.1.8

@@ -7,0 +10,0 @@

@@ -1,4 +0,4 @@

import * as t from 'io-ts/es6';
import { ErrorStrategyOption, AssistedErrorStrategyOption } from '../handled-api/common';
import { HeadersOption, ConnectionOption } from '@avst-api/commons';
import { GetFilterRespone } from '../definitions/objs_filter';
export declare namespace Filter {

@@ -9,11 +9,13 @@ namespace GetFilter {

namespace Response {
interface OK extends t.TypeOf<typeof FilterCodec.GetFilter.Response.OK> {
}
type OK = GetFilterRespone;
type Error = undefined;
}
namespace Options {
interface Base extends QueryParams {
interface Base {
id: string;
/**
* the parameters to expand
*/
expand?: string[];
}
interface QueryParams extends t.TypeOf<typeof FilterCodec.GetFilter.QueryParams> {
}
interface RawApi extends Base, ConnectionOption, HeadersOption {

@@ -26,384 +28,2 @@ }

}
export declare namespace FilterCodec {
namespace GetFilter {
const QueryParams: t.PartialC<{
/**
* the parameters to expand
*/
expand: t.ArrayC<t.StringC>;
}>;
namespace Response {
const OK: t.IntersectionC<[t.TypeC<{
favourite: t.BooleanC;
editable: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
id: t.StringC;
name: t.StringC;
description: t.StringC;
owner: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>, t.PartialC<{
locale: t.StringC;
groups: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
applicationRoles: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
expand: t.StringC;
}>]>;
jql: t.StringC;
viewUrl: t.StringC;
searchUrl: t.StringC;
sharePermissions: t.ArrayC<t.IntersectionC<[t.TypeC<{
view: t.BooleanC;
edit: t.BooleanC;
}>, t.PartialC<{
id: t.NumberC;
type: t.StringC;
project: t.PartialC<{
expand: t.StringC;
self: t.StringC;
id: t.StringC;
key: t.StringC;
description: t.StringC;
lead: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>, t.PartialC<{
locale: t.StringC;
groups: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
applicationRoles: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
expand: t.StringC;
}>]>;
components: t.ArrayC<t.IntersectionC<[t.TypeC<{
isAssigneeTypeValid: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
id: t.StringC;
name: t.StringC;
description: t.StringC;
lead: t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>;
leadUserName: t.StringC;
assigneeType: t.UnionC<[t.LiteralC<"PROJECT_DEFAULT">, t.LiteralC<"COMPONENT_LEAD">, t.LiteralC<"PROJECT_LEAD">, t.LiteralC<"UNASSIGNED">]>;
assignee: t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>;
realAssigneeType: t.UnionC<[t.LiteralC<"PROJECT_DEFAULT">, t.LiteralC<"COMPONENT_LEAD">, t.LiteralC<"PROJECT_LEAD">, t.LiteralC<"UNASSIGNED">]>;
realAssignee: t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>;
project: t.StringC;
projectId: t.NumberC;
}>]>>;
issueTypes: t.ArrayC<t.IntersectionC<[t.TypeC<{
subtask: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
id: t.StringC;
description: t.StringC;
iconUrl: t.StringC;
name: t.StringC;
avatarId: t.NumberC;
}>]>>;
url: t.StringC;
email: t.StringC;
assigneeType: t.UnionC<[t.LiteralC<"PROJECT_LEAD">, t.LiteralC<"UNASSIGNED">]>;
versions: t.ArrayC<t.PartialC<{
expand: t.StringC;
self: t.StringC;
id: t.StringC;
description: t.StringC;
name: t.StringC;
archived: t.BooleanC;
released: t.BooleanC;
overdue: t.BooleanC;
startDate: t.StringC;
releaseDate: t.StringC;
userStartDate: t.StringC;
userReleaseDate: t.StringC;
projectId: t.NumberC;
moveUnfixedIssuesTo: t.StringC;
operations: t.ArrayC<t.PartialC<{
id: t.StringC;
styleClass: t.StringC;
iconClass: t.StringC;
label: t.StringC;
title: t.StringC;
href: t.StringC;
weight: t.NumberC;
}>>;
remotelinks: t.ArrayC<t.PartialC<{
self: t.StringC;
name: t.StringC;
link: t.AnyC;
}>>;
}>>;
name: t.StringC;
roles: t.RecordC<t.StringC, t.StringC>;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
projectKeys: t.ArrayC<t.StringC>;
projectCategory: t.PartialC<{
self: t.StringC;
id: t.StringC;
name: t.StringC;
description: t.StringC;
}>;
projectTypeKey: t.StringC;
archived: t.BooleanC;
}>;
role: t.PartialC<{
self: t.StringC;
name: t.StringC;
id: t.NumberC;
description: t.StringC;
actors: t.ArrayC<t.PartialC<{
id: t.NumberC;
displayName: t.StringC;
type: t.StringC;
name: t.StringC;
avatarUrl: t.StringC;
}>>;
}>;
group: t.PartialC<{
name: t.StringC;
self: t.StringC;
}>;
user: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>, t.PartialC<{
locale: t.StringC;
groups: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
applicationRoles: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
expand: t.StringC;
}>]>;
}>]>>;
sharedUsers: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
'max-results': t.NumberC;
'start-index': t.NumberC;
'end-index': t.NumberC;
}>, t.PartialC<{
items: t.ArrayC<t.IntersectionC<[t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>, t.PartialC<{
locale: t.StringC;
groups: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
applicationRoles: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
expand: t.StringC;
}>]>>;
}>]>;
subscriptions: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
'max-results': t.NumberC;
'start-index': t.NumberC;
'end-index': t.NumberC;
}>, t.PartialC<{
items: t.ArrayC<t.PartialC<{
id: t.NumberC;
user: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>, t.PartialC<{
locale: t.StringC;
groups: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
applicationRoles: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
expand: t.StringC;
}>]>;
group: t.PartialC<{
name: t.StringC;
self: t.StringC;
}>;
}>>;
}>]>;
}>]>;
}
}
}
//# sourceMappingURL=filter.d.ts.map

@@ -1,4 +0,4 @@

import * as t from 'io-ts/es6';
import { ErrorStrategyOption, AssistedErrorStrategyOption } from '../handled-api/common';
import { HeadersOption, SkipValidationOption, ConnectionOption } from '@avst-api/commons';
import { HeadersOption, ConnectionOption } from '@avst-api/commons';
import { GetUsersResponse, GroupResponse } from '../definitions/objs_group';
export declare namespace Group {

@@ -8,10 +8,14 @@ namespace CreateGroup {

}
interface Body extends t.TypeOf<typeof GroupCodec.CreateGroup.Body> {
}
type Body = {
/**
* The name of the group to create.
*/
name: string;
};
namespace Response {
interface OK extends t.TypeOf<typeof GroupCodec.CreateGroup.Response.OK> {
}
type OK = GroupResponse;
type Error = undefined;
}
namespace Options {
interface Base extends SkipValidationOption {
interface Base {
body: Group.CreateGroup.Body;

@@ -28,7 +32,17 @@ }

}
namespace Response {
type OK = undefined;
type Error = undefined;
}
namespace Options {
interface Base extends QueryParams {
interface Base {
/**
* The name of the group to delete.
*/
groupname: string;
/**
* If you delete a group and content is restricted to that group, the content will be hidden from all users. To prevent this, use this parameter to specify a different group to transfer the restrictions (comments and worklogs only) to.
*/
swapGroup?: string;
}
interface QueryParams extends t.TypeOf<typeof GroupCodec.RemoveGroup.QueryParams> {
}
interface RawApi extends Base, ConnectionOption, HeadersOption {

@@ -45,10 +59,24 @@ }

namespace Response {
interface OK extends t.TypeOf<typeof GroupCodec.User.GetUsers.Response.OK> {
}
type OK = GetUsersResponse;
type Error = undefined;
}
namespace Options {
interface Base extends QueryParams {
interface Base {
/**
* a name of the group for which members will be returned.
*/
groupname: string;
/**
* inactive users will be included in the response if set to true.
*/
includeInactiveUsers?: boolean;
/**
* the index of the first user in group to return (0 based).
*/
startAt?: number;
/**
* the maximum number of users to return (max 50).
*/
maxResults?: number;
}
interface QueryParams extends t.TypeOf<typeof GroupCodec.User.GetUsers.QueryParams> {
}
interface RawApi extends Base, ConnectionOption, HeadersOption {

@@ -63,14 +91,20 @@ }

}
interface Body extends t.TypeOf<typeof GroupCodec.User.AddUsers.Body> {
}
type Body = {
/**
* A name of the added user.
*/
name: string;
};
namespace Response {
interface OK extends t.TypeOf<typeof GroupCodec.User.AddUsers.Response.OK> {
}
type OK = GroupResponse;
type Error = undefined;
}
namespace Options {
interface Base extends SkipValidationOption, QueryParams {
interface Base {
/**
* A name of requested group.
*/
groupname: string;
body: Group.User.AddUsers.Body;
}
interface QueryParams extends t.TypeOf<typeof GroupCodec.User.AddUsers.QueryParams> {
}
interface RawApi extends Base, ConnectionOption, HeadersOption {

@@ -85,7 +119,17 @@ }

}
namespace Response {
type OK = undefined;
type Error = undefined;
}
namespace Options {
interface Base extends QueryParams {
interface Base {
/**
* A name of requested group.
*/
groupname: string;
/**
* User to remove from a group
*/
username: string;
}
interface QueryParams extends t.TypeOf<typeof GroupCodec.User.RemoveUsers.QueryParams> {
}
interface RawApi extends Base, ConnectionOption, HeadersOption {

@@ -99,160 +143,2 @@ }

}
export declare namespace GroupCodec {
namespace CreateGroup {
const Body: t.TypeC<{
/**
* The name of the group to create.
*/
name: t.StringC;
}>;
namespace Response {
const OK: t.PartialC<{
name: t.StringC;
self: t.StringC;
users: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
'max-results': t.NumberC;
'start-index': t.NumberC;
'end-index': t.NumberC;
}>, t.PartialC<{
items: t.ArrayC<t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>>;
}>]>;
expand: t.StringC;
}>;
}
}
namespace RemoveGroup {
const QueryParams: t.IntersectionC<[t.TypeC<{
/**
* The name of the group to delete.
*/
groupname: t.StringC;
}>, t.PartialC<{
/**
* If you delete a group and content is restricted to that group, the content will be hidden from all users. To prevent this, use this parameter to specify a different group to transfer the restrictions (comments and worklogs only) to.
*/
swapGroup: t.StringC;
}>]>;
}
namespace User {
namespace GetUsers {
const QueryParams: t.IntersectionC<[t.TypeC<{
/**
* a name of the group for which members will be returned.
*/
groupname: t.StringC;
}>, t.PartialC<{
/**
* inactive users will be included in the response if set to true.
*/
includeInactiveUsers: t.BooleanC;
/**
* the index of the first user in group to return (0 based).
*/
startAt: t.NumberC;
/**
* the maximum number of users to return (max 50).
*/
maxResults: t.NumberC;
}>]>;
namespace Response {
const OK: t.PartialC<{
self: t.StringC;
nextPage: t.StringC;
maxResults: t.NumberC;
startAt: t.NumberC;
total: t.NumberC;
isLast: t.BooleanC;
values: t.ArrayC<t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>>;
}>;
}
}
namespace AddUsers {
const QueryParams: t.TypeC<{
/**
* A name of requested group.
*/
groupname: t.StringC;
}>;
const Body: t.TypeC<{
/**
* A name of the added user.
*/
name: t.StringC;
}>;
namespace Response {
const OK: t.PartialC<{
name: t.StringC;
self: t.StringC;
users: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
'max-results': t.NumberC;
'start-index': t.NumberC;
'end-index': t.NumberC;
}>, t.PartialC<{
items: t.ArrayC<t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>>;
}>]>;
expand: t.StringC;
}>;
}
}
namespace RemoveUsers {
const QueryParams: t.TypeC<{
/**
* A name of requested group.
*/
groupname: t.StringC;
/**
* User to remove from a group
*/
username: t.StringC;
}>;
}
}
}
//# sourceMappingURL=group.d.ts.map

@@ -1,4 +0,5 @@

import * as t from 'io-ts/es6';
import { ErrorStrategyOption, AssistedErrorStrategyOption } from '../handled-api/common';
import { HeadersOption, ConnectionOption, SkipValidationOption } from '@avst-api/commons';
import { Property } from '../definitions/objs_property';
import { HeadersOption, ConnectionOption } from '@avst-api/commons';
import { GetConfigurationResponse, GetInfoResponse } from '../definitions/objs_instance';
export declare namespace Instance {

@@ -9,4 +10,4 @@ namespace GetConfiguration {

namespace Response {
interface OK extends t.TypeOf<typeof InstanceCodec.GetConfiguration.Response.OK> {
}
type OK = GetConfigurationResponse;
type Error = undefined;
}

@@ -24,10 +25,20 @@ namespace Options {

namespace Response {
interface OK extends t.TypeOf<typeof InstanceCodec.GetApplicationProperty.Response.OK> {
}
type OK = Property;
type Error = undefined;
}
namespace Options {
interface Base extends QueryParams {
interface Base {
/**
* a String containing the property key
*/
key?: string;
/**
* when fetching a list specifies the permission level of all items in the list see {@link com.atlassian.jira.bc.admin.ApplicationPropertiesService.EditPermissionLevel}
*/
permissionLevel?: string;
/**
* when fetching a list allows the list to be filtered by the property's start of key e.g. "jira.lf.*" whould fetch only those permissions that are editable and whose keys start with "jira.lf.". This is a regex.
*/
keyFilter?: string;
}
interface QueryParams extends t.TypeOf<typeof InstanceCodec.GetApplicationProperty.QueryParams> {
}
interface RawApi extends Base, ConnectionOption, HeadersOption {

@@ -42,10 +53,12 @@ }

}
interface Body extends t.TypeOf<typeof InstanceCodec.SetApplicationProperty.Body> {
}
type Body = {
id: string;
value: string;
};
namespace Response {
interface OK extends t.TypeOf<typeof InstanceCodec.SetApplicationProperty.Response.OK> {
}
type OK = Property;
type Error = undefined;
}
namespace Options {
interface Base extends SkipValidationOption {
interface Base {
id: string;

@@ -64,4 +77,4 @@ body: Instance.SetApplicationProperty.Body;

namespace Response {
interface OK extends t.TypeOf<typeof InstanceCodec.GetAdvancedSettings.Response.OK> {
}
type OK = Property[];
type Error = undefined;
}

@@ -79,10 +92,9 @@ namespace Options {

namespace Response {
interface OK extends t.TypeOf<typeof InstanceCodec.GetInfo.Response.OK> {
}
type OK = GetInfoResponse;
type Error = undefined;
}
namespace Options {
interface Base extends QueryParams {
interface Base {
doHealthCheck?: boolean;
}
interface QueryParams extends t.TypeOf<typeof InstanceCodec.GetInfo.QueryParams> {
}
interface RawApi extends Base, ConnectionOption, HeadersOption {

@@ -95,112 +107,2 @@ }

}
export declare namespace InstanceCodec {
namespace GetConfiguration {
namespace Response {
const OK: t.IntersectionC<[t.TypeC<{
votingEnabled: t.BooleanC;
watchingEnabled: t.BooleanC;
unassignedIssuesAllowed: t.BooleanC;
subTasksEnabled: t.BooleanC;
issueLinkingEnabled: t.BooleanC;
timeTrackingEnabled: t.BooleanC;
attachmentsEnabled: t.BooleanC;
}>, t.PartialC<{
timeTrackingConfiguration: t.IntersectionC<[t.TypeC<{
workingHoursPerDay: t.NumberC;
workingDaysPerWeek: t.NumberC;
}>, t.PartialC<{
timeFormat: t.UnionC<[t.LiteralC<"pretty">, t.LiteralC<"days">, t.LiteralC<"hours">]>;
defaultUnit: t.UnionC<[t.LiteralC<"minute">, t.LiteralC<"hour">, t.LiteralC<"day">, t.LiteralC<"week">]>;
}>]>;
}>]>;
}
}
namespace GetApplicationProperty {
const QueryParams: t.PartialC<{
/**
* a String containing the property key
*/
key: t.StringC;
/**
* when fetching a list specifies the permission level of all items in the list see {@link com.atlassian.jira.bc.admin.ApplicationPropertiesService.EditPermissionLevel}
*/
permissionLevel: t.StringC;
/**
* when fetching a list allows the list to be filtered by the property's start of key e.g. "jira.lf.*" whould fetch only those permissions that are editable and whose keys start with "jira.lf.". This is a regex.
*/
keyFilter: t.StringC;
}>;
namespace Response {
const OK: t.PartialC<{
id: t.StringC;
key: t.StringC;
value: t.StringC;
name: t.StringC;
desc: t.StringC;
type: t.StringC;
defaultValue: t.StringC;
example: t.StringC;
allowedValues: t.ArrayC<t.StringC>;
}>;
}
}
namespace SetApplicationProperty {
const Body: t.PartialC<{
id: t.StringC;
value: t.StringC;
}>;
namespace Response {
const OK: t.PartialC<{
id: t.StringC;
key: t.StringC;
value: t.StringC;
name: t.StringC;
desc: t.StringC;
type: t.StringC;
defaultValue: t.StringC;
example: t.StringC;
allowedValues: t.ArrayC<t.StringC>;
}>;
}
}
namespace GetAdvancedSettings {
namespace Response {
const OK: t.PartialC<{
id: t.StringC;
key: t.StringC;
value: t.StringC;
name: t.StringC;
desc: t.StringC;
type: t.StringC;
defaultValue: t.StringC;
example: t.StringC;
allowedValues: t.ArrayC<t.StringC>;
}>;
}
}
namespace GetInfo {
const QueryParams: t.PartialC<{
doHealthCheck: t.BooleanC;
}>;
namespace Response {
const OK: t.PartialC<{
baseUrl: t.StringC;
version: t.StringC;
versionNumbers: t.ArrayC<t.NumberC>;
deploymentType: t.StringC;
buildNumber: t.NumberC;
buildDate: t.StringC;
serverTime: t.StringC;
scmInfo: t.StringC;
buildPartnerName: t.StringC;
serverTitle: t.StringC;
healthChecks: t.ArrayC<t.PartialC<{
name: t.StringC;
description: t.StringC;
passed: t.BooleanC;
}>>;
}>;
}
}
}
//# sourceMappingURL=instance.d.ts.map

@@ -1,4 +0,4 @@

import * as t from 'io-ts/es6';
import { ErrorStrategyOption, AssistedErrorStrategyOption } from '../handled-api/common';
import { HeadersOption, ConnectionOption } from '@avst-api/commons';
import { UserFull } from '../definitions/objs_user';
export declare namespace Myself {

@@ -9,4 +9,4 @@ namespace GetCurrentUser {

namespace Response {
interface OK extends t.TypeOf<typeof MyselfCodec.GetCurrentUser.Response.OK> {
}
type OK = UserFull;
type Error = undefined;
}

@@ -21,45 +21,2 @@ namespace Options {

}
export declare namespace MyselfCodec {
namespace GetCurrentUser {
namespace Response {
const OK: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>, t.PartialC<{
locale: t.StringC;
groups: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
applicationRoles: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
expand: t.StringC;
}>]>;
}
}
}
//# sourceMappingURL=myself.d.ts.map

@@ -1,4 +0,4 @@

import * as t from 'io-ts/es6';
import { ErrorStrategyOption, AssistedErrorStrategyOption } from '../handled-api/common';
import { HeadersOption, ConnectionOption } from '@avst-api/commons';
import { ProjectRole } from '../definitions/objs_project_role';
export declare namespace Role {

@@ -10,4 +10,4 @@ namespace Project {

namespace Response {
interface OK extends t.TypeOf<typeof RoleCodec.Project.GetRoles.Response.OK> {
}
type OK = ProjectRole[];
type Error = undefined;
}

@@ -25,4 +25,4 @@ namespace Options {

namespace Response {
interface OK extends t.TypeOf<typeof RoleCodec.Project.GetRole.Response.OK> {
}
type OK = ProjectRole;
type Error = undefined;
}

@@ -41,40 +41,2 @@ namespace Options {

}
export declare namespace RoleCodec {
namespace Project {
namespace GetRoles {
namespace Response {
const OK: t.PartialC<{
self: t.StringC;
name: t.StringC;
id: t.NumberC;
description: t.StringC;
actors: t.ArrayC<t.PartialC<{
id: t.NumberC;
displayName: t.StringC;
type: t.StringC;
name: t.StringC;
avatarUrl: t.StringC;
}>>;
}>;
}
}
namespace GetRole {
namespace Response {
const OK: t.PartialC<{
self: t.StringC;
name: t.StringC;
id: t.NumberC;
description: t.StringC;
actors: t.ArrayC<t.PartialC<{
id: t.NumberC;
displayName: t.StringC;
type: t.StringC;
name: t.StringC;
avatarUrl: t.StringC;
}>>;
}>;
}
}
}
}
//# sourceMappingURL=role.d.ts.map

@@ -1,4 +0,4 @@

import * as t from 'io-ts/es6';
import { ErrorStrategyOption, AssistedErrorStrategyOption } from '../handled-api/common';
import { HeadersOption, ConnectionOption, SkipValidationOption } from '@avst-api/commons';
import { HeadersOption, ConnectionOption } from '@avst-api/commons';
import { UserFull } from '../definitions/objs_user';
export declare namespace User {

@@ -9,10 +9,16 @@ namespace GetUser {

namespace Response {
interface OK extends t.TypeOf<typeof UserCodec.GetUser.Response.OK> {
}
type OK = UserFull;
type Error = undefined;
}
namespace Options {
interface Base extends QueryParams {
interface Base {
/**
* the username
*/
username?: string;
/**
* user key
*/
key?: string;
}
interface QueryParams extends t.TypeOf<typeof UserCodec.GetUser.QueryParams> {
}
interface RawApi extends Base, ConnectionOption, HeadersOption {

@@ -27,14 +33,23 @@ }

}
interface Body extends t.TypeOf<typeof UserCodec.UpdateUser.Body> {
}
type Body = {
name?: string;
emailAddress?: string;
displayName?: string;
};
namespace Response {
interface OK extends t.TypeOf<typeof UserCodec.UpdateUser.Response.OK> {
}
type OK = UserFull;
type Error = undefined;
}
namespace Options {
interface Base extends SkipValidationOption, QueryParams {
interface Base {
/**
* the username
*/
username?: string;
/**
* user key
*/
key?: string;
body: User.UpdateUser.Body;
}
interface QueryParams extends t.TypeOf<typeof UserCodec.UpdateUser.QueryParams> {
}
interface RawApi extends Base, ConnectionOption, HeadersOption {

@@ -49,10 +64,16 @@ }

}
interface Body extends t.TypeOf<typeof UserCodec.CreateUser.Body> {
}
type Body = {
name: string;
emailAddress: string;
displayName: string;
password?: string;
notification?: string;
applicationKeys?: string[];
};
namespace Response {
interface OK extends t.TypeOf<typeof UserCodec.CreateUser.Response.OK> {
}
type OK = UserFull;
type Error = undefined;
}
namespace Options {
interface Base extends SkipValidationOption {
interface Base {
body: User.CreateUser.Body;

@@ -69,7 +90,17 @@ }

}
namespace Response {
type OK = undefined;
type Error = undefined;
}
namespace Options {
interface Base extends QueryParams {
interface Base {
/**
* the username
*/
username: string;
/**
* user key
*/
key: string;
}
interface QueryParams extends t.TypeOf<typeof UserCodec.RemoveUser.QueryParams> {
}
interface RawApi extends Base, ConnectionOption, HeadersOption {

@@ -84,7 +115,17 @@ }

}
namespace Response {
type OK = undefined;
type Error = undefined;
}
namespace Options {
interface Base extends QueryParams {
interface Base {
/**
* username
*/
username: string;
/**
* application key
*/
applicationKey: string;
}
interface QueryParams extends t.TypeOf<typeof UserCodec.AddUserToApplication.QueryParams> {
}
interface RawApi extends Base, ConnectionOption, HeadersOption {

@@ -99,7 +140,17 @@ }

}
namespace Response {
type OK = undefined;
type Error = undefined;
}
namespace Options {
interface Base extends QueryParams {
interface Base {
/**
* username
*/
username: string;
/**
* application key
*/
applicationKey: string;
}
interface QueryParams extends t.TypeOf<typeof UserCodec.RemoveUserFromApplication.QueryParams> {
}
interface RawApi extends Base, ConnectionOption, HeadersOption {

@@ -114,10 +165,22 @@ }

}
interface Body extends t.TypeOf<typeof UserCodec.ChangeUserPassword.Body> {
type Body = {
password: string;
currentPassword: string;
};
namespace Response {
type OK = undefined;
type Error = undefined;
}
namespace Options {
interface Base extends SkipValidationOption, QueryParams {
interface Base {
/**
* the username
*/
username?: string;
/**
* user key
*/
key?: string;
body: User.ChangeUserPassword.Body;
}
interface QueryParams extends t.TypeOf<typeof UserCodec.ChangeUserPassword.QueryParams> {
}
interface RawApi extends Base, ConnectionOption, HeadersOption {

@@ -134,10 +197,29 @@ }

namespace Response {
interface OK extends t.TypeOf<typeof UserCodec.Search.FindAssignableUsers.Response.OK> {
}
type OK = UserFull[];
type Error = undefined;
}
namespace Options {
interface Base extends QueryParams {
interface Base {
/**
* the username
*/
username?: string;
/**
* the key of the project we are finding assignable users for
*/
project?: string;
/**
* the issue key for the issue being edited we need to find assignable users for.
*/
issueKey?: string;
/**
* the index of the first user to return (0-based)
*/
startAt?: number;
/**
* the maximum number of users to return (defaults to 50). The maximum allowed value is 1000. If you specify a value that is higher than this number, your search results will be truncated.
*/
maxResults?: number;
actionDescriptorId?: number;
}
interface QueryParams extends t.TypeOf<typeof UserCodec.Search.FindAssignableUsers.QueryParams> {
}
interface RawApi extends Base, ConnectionOption, HeadersOption {

@@ -153,10 +235,32 @@ }

namespace Response {
interface OK extends t.TypeOf<typeof UserCodec.Search.FindUsersWithAllPermissions.Response.OK> {
}
type OK = UserFull[];
type Error = undefined;
}
namespace Options {
interface Base extends QueryParams {
interface Base {
/**
* comma separated list of permissions for project or issue returned users must have, see Permissions JavaDoc for the list of all possible permissions.
*/
permissions: string;
/**
* the username filter, list includes all users if unspecified
*/
username?: string;
/**
* the issue key for the issue for which returned users have specified permissions.
*/
issueKey?: string;
/**
* the optional project key to search for users with if no issueKey is supplied.
*/
projectKey?: string;
/**
* the index of the first user to return (0-based)
*/
startAt?: number;
/**
* the maximum number of users to return (defaults to 50). The maximum allowed value is 1000. If you specify a value that is higher than this number, your search results will be truncated.
*/
maxResults?: number;
}
interface QueryParams extends t.TypeOf<typeof UserCodec.Search.FindUsersWithAllPermissions.QueryParams> {
}
interface RawApi extends Base, ConnectionOption, HeadersOption {

@@ -172,10 +276,28 @@ }

namespace Response {
interface OK extends t.TypeOf<typeof UserCodec.Search.FindUsers.Response.OK> {
}
type OK = UserFull[];
type Error = undefined;
}
namespace Options {
interface Base extends QueryParams {
interface Base {
/**
* A query string used to search username, name or e-mail address
*/
username: string;
/**
* the index of the first user to return (0-based)
*/
startAt?: number;
/**
* the maximum number of users to return (defaults to 50). The maximum allowed value is 1000. If you specify a value that is higher than this number, your search results will be truncated.
*/
maxResults?: number;
/**
* If true, then active users are included in the results (default true)
*/
includeActive?: boolean;
/**
* If true, then inactive users are included in the results (default false)
*/
includeInactive?: boolean;
}
interface QueryParams extends t.TypeOf<typeof UserCodec.Search.FindUsers.QueryParams> {
}
interface RawApi extends Base, ConnectionOption, HeadersOption {

@@ -191,10 +313,28 @@ }

namespace Response {
interface OK extends t.TypeOf<typeof UserCodec.Search.FindUsersWithBrowsePermission.Response.OK> {
}
type OK = UserFull[];
type Error = undefined;
}
namespace Options {
interface Base extends QueryParams {
interface Base {
/**
* the username filter, no users returned if left blank
*/
username: string;
/**
* the issue key for the issue being edited we need to find viewable users for.
*/
issueKey?: string;
/**
* the optional project key to search for users with if no issueKey is supplied.
*/
projectKey?: string;
/**
* the index of the first user to return (0-based)
*/
startAt?: number;
/**
* the maximum number of users to return (defaults to 50). The maximum allowed value is 1000. If you specify a value that is higher than this number, your search results will be truncated.
*/
maxResults?: number;
}
interface QueryParams extends t.TypeOf<typeof UserCodec.Search.FindUsersWithBrowsePermission.QueryParams> {
}
interface RawApi extends Base, ConnectionOption, HeadersOption {

@@ -208,475 +348,2 @@ }

}
export declare namespace UserCodec {
namespace GetUser {
const QueryParams: t.PartialC<{
/**
* the username
*/
username: t.StringC;
/**
* user key
*/
key: t.StringC;
}>;
namespace Response {
const OK: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>, t.PartialC<{
locale: t.StringC;
groups: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
applicationRoles: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
expand: t.StringC;
}>]>;
}
}
namespace UpdateUser {
const QueryParams: t.PartialC<{
/**
* the username
*/
username: t.StringC;
/**
* user key
*/
key: t.StringC;
}>;
const Body: t.PartialC<{
name: t.StringC;
emailAddress: t.StringC;
displayName: t.StringC;
}>;
namespace Response {
const OK: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>, t.PartialC<{
locale: t.StringC;
groups: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
applicationRoles: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
expand: t.StringC;
}>]>;
}
}
namespace CreateUser {
const Body: t.IntersectionC<[t.TypeC<{
name: t.StringC;
emailAddress: t.StringC;
displayName: t.StringC;
}>, t.PartialC<{
password: t.StringC;
notification: t.StringC;
applicationKeys: t.ArrayC<t.StringC>;
}>]>;
namespace Response {
const OK: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>, t.PartialC<{
locale: t.StringC;
groups: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
applicationRoles: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
expand: t.StringC;
}>]>;
}
}
namespace RemoveUser {
const QueryParams: t.PartialC<{
/**
* the username
*/
username: t.StringC;
/**
* user key
*/
key: t.StringC;
}>;
}
namespace AddUserToApplication {
const QueryParams: t.TypeC<{
/**
* username
*/
username: t.StringC;
/**
* application key
*/
applicationKey: t.StringC;
}>;
}
namespace RemoveUserFromApplication {
const QueryParams: t.TypeC<{
/**
* username
*/
username: t.StringC;
/**
* application key
*/
applicationKey: t.StringC;
}>;
}
namespace ChangeUserPassword {
const QueryParams: t.PartialC<{
/**
* the username
*/
username: t.StringC;
/**
* user key
*/
key: t.StringC;
}>;
const Body: t.TypeC<{
password: t.StringC;
currentPassword: t.StringC;
}>;
}
namespace Search {
namespace FindAssignableUsers {
const QueryParams: t.PartialC<{
/**
* the username
*/
username: t.StringC;
/**
* the key of the project we are finding assignable users for
*/
project: t.StringC;
/**
* the issue key for the issue being edited we need to find assignable users for.
*/
issueKey: t.StringC;
/**
* the index of the first user to return (0-based)
*/
startAt: t.NumberC;
/**
* the maximum number of users to return (defaults to 50). The maximum allowed value is 1000. If you specify a value that is higher than this number, your search results will be truncated.
*/
maxResults: t.NumberC;
actionDescriptorId: t.NumberC;
}>;
namespace Response {
const OK: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>, t.PartialC<{
locale: t.StringC;
groups: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
applicationRoles: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
expand: t.StringC;
}>]>;
}
}
namespace FindUsersWithAllPermissions {
const QueryParams: t.IntersectionC<[t.TypeC<{
/**
* comma separated list of permissions for project or issue returned users must have, see Permissions JavaDoc for the list of all possible permissions.
*/
permissions: t.StringC;
}>, t.PartialC<{
/**
* the username filter, list includes all users if unspecified
*/
username: t.StringC;
/**
* the issue key for the issue for which returned users have specified permissions.
*/
issueKey: t.StringC;
/**
* the optional project key to search for users with if no issueKey is supplied.
*/
projectKey: t.StringC;
/**
* the index of the first user to return (0-based)
*/
startAt: t.NumberC;
/**
* the maximum number of users to return (defaults to 50). The maximum allowed value is 1000. If you specify a value that is higher than this number, your search results will be truncated.
*/
maxResults: t.NumberC;
}>]>;
namespace Response {
const OK: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>, t.PartialC<{
locale: t.StringC;
groups: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
applicationRoles: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
expand: t.StringC;
}>]>;
}
}
namespace FindUsers {
const QueryParams: t.IntersectionC<[t.TypeC<{
/**
* A query string used to search username, name or e-mail address
*/
username: t.StringC;
}>, t.PartialC<{
/**
* the index of the first user to return (0-based)
*/
startAt: t.NumberC;
/**
* the maximum number of users to return (defaults to 50). The maximum allowed value is 1000. If you specify a value that is higher than this number, your search results will be truncated.
*/
maxResults: t.NumberC;
/**
* If true, then active users are included in the results (default true)
*/
includeActive: t.BooleanC;
/**
* If true, then inactive users are included in the results (default false)
*/
includeInactive: t.BooleanC;
}>]>;
namespace Response {
const OK: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>, t.PartialC<{
locale: t.StringC;
groups: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
applicationRoles: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
expand: t.StringC;
}>]>;
}
}
namespace FindUsersWithBrowsePermission {
const QueryParams: t.IntersectionC<[t.TypeC<{
/**
* the username filter, no users returned if left blank
*/
username: t.StringC;
}>, t.PartialC<{
/**
* the issue key for the issue being edited we need to find viewable users for.
*/
issueKey: t.StringC;
/**
* the optional project key to search for users with if no issueKey is supplied.
*/
projectKey: t.StringC;
/**
* the index of the first user to return (0-based)
*/
startAt: t.NumberC;
/**
* the maximum number of users to return (defaults to 50). The maximum allowed value is 1000. If you specify a value that is higher than this number, your search results will be truncated.
*/
maxResults: t.NumberC;
}>]>;
namespace Response {
const OK: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
active: t.BooleanC;
}>, t.PartialC<{
self: t.StringC;
key: t.StringC;
name: t.StringC;
emailAddress: t.StringC;
avatarUrls: t.PartialC<{
'48x48': t.StringC;
'24x24': t.StringC;
'16x16': t.StringC;
'32x32': t.StringC;
}>;
displayName: t.StringC;
timeZone: t.StringC;
}>]>, t.PartialC<{
locale: t.StringC;
groups: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
applicationRoles: t.IntersectionC<[t.TypeC<{
size: t.NumberC;
}>, t.PartialC<{
'max-results': t.NumberC;
items: t.ArrayC<t.PartialC<{
name: t.StringC;
self: t.StringC;
}>>;
}>]>;
expand: t.StringC;
}>]>;
}
}
}
}
//# sourceMappingURL=user.d.ts.map

@@ -1,4 +0,5 @@

import * as t from 'io-ts/es6';
import { ErrorStrategyOption, AssistedErrorStrategyOption } from '../handled-api/common';
import { HeadersOption, ConnectionOption } from '@avst-api/commons';
import { Status } from '../definitions/objs_status';
import { StatusCategory } from '../definitions/objs_status_category';
export declare namespace Workflow {

@@ -10,4 +11,4 @@ namespace Status {

namespace Response {
interface OK extends t.TypeOf<typeof WorkflowCodec.Status.GetStatuses.Response.OK> {
}
type OK = Status[];
type Error = undefined;
}

@@ -25,4 +26,4 @@ namespace Options {

namespace Response {
interface OK extends t.TypeOf<typeof WorkflowCodec.Status.GetStatus.Response.OK> {
}
type OK = Status;
type Error = undefined;
}

@@ -44,4 +45,4 @@ namespace Options {

namespace Response {
interface OK extends t.TypeOf<typeof WorkflowCodec.Status.Category.GetCategories.Response.OK> {
}
type OK = StatusCategory[];
type Error = undefined;
}

@@ -59,4 +60,4 @@ namespace Options {

namespace Response {
interface OK extends t.TypeOf<typeof WorkflowCodec.Status.Category.GetCategory.Response.OK> {
}
type OK = StatusCategory;
type Error = undefined;
}

@@ -76,68 +77,2 @@ namespace Options {

}
export declare namespace WorkflowCodec {
namespace Status {
namespace GetStatuses {
namespace Response {
const OK: t.PartialC<{
self: t.StringC;
statusColor: t.StringC;
description: t.StringC;
iconUrl: t.StringC;
name: t.StringC;
id: t.StringC;
statusCategory: t.PartialC<{
self: t.StringC;
id: t.StringC;
key: t.StringC;
colorName: t.StringC;
name: t.StringC;
}>;
}>;
}
}
namespace GetStatus {
namespace Response {
const OK: t.PartialC<{
self: t.StringC;
statusColor: t.StringC;
description: t.StringC;
iconUrl: t.StringC;
name: t.StringC;
id: t.StringC;
statusCategory: t.PartialC<{
self: t.StringC;
id: t.StringC;
key: t.StringC;
colorName: t.StringC;
name: t.StringC;
}>;
}>;
}
}
namespace Category {
namespace GetCategories {
namespace Response {
const OK: t.PartialC<{
self: t.StringC;
id: t.StringC;
key: t.StringC;
colorName: t.StringC;
name: t.StringC;
}>;
}
}
namespace GetCategory {
namespace Response {
const OK: t.PartialC<{
self: t.StringC;
id: t.StringC;
key: t.StringC;
colorName: t.StringC;
name: t.StringC;
}>;
}
}
}
}
}
//# sourceMappingURL=workflow.d.ts.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc