UNPKG

oa-jira

Version:

Octet Agile's JIRA connectivity project.

46 lines (44 loc) 1.88 kB
const cache = require('./src/cache'); const connection = require('./src/connection'); const core = require('./src/core/services/core.services'); module.exports = { boards: { getById: ({ connection, id, cache } = {}) => core.getBoardById({ connection, id, cache }) }, cache: { init: () => cache.init() }, categories: { getById: ({ connection, id, cache } = {}) => core.getCategoryById({ connection, id, cache }) }, connection: { createBasic: ({ baseUrl, user, token } = {}) => connection.createBasic({ baseUrl, user, token }), createBearer: ({ baseUrl, token } = {}) => connection.createBearer({ baseUrl, token }) }, issues: { getByKey: ({ connection, key, cache } = {}) => core.getIssueByKey({ connection, key, cache }), getByBoardId: ({ connection, boardId, cache, offset, size } = {}) => { return core.getIssuesByBoardId({ connection, boardId, cache, offset, size }); } }, projects: { getById: ({ connection, id, cache } = {}) => core.getProjectById({ connection, id, cache }) }, resolutions: { getById: ({ connection, id, cache } = {}) => core.getResolutionById({ connection, id, cache }) }, sprints: { getById: ({ connection, id, cache } = {}) => core.getSprintById({ connection, id, cache }), getByIds: ({ connection, ids, cache } = {}) => core.getSprintsByIds({ connection, ids, cache }), getLastByIds: ({ connection, ids, cache } = {}) => core.getLastSprintByIds({ connection, ids, cache }) }, statuses: { getById: ({ connection, id, cache } = {}) => core.getStatusById({ connection, id, cache }) }, types: { getById: ({ connection, id, cache } = {}) => core.getTypeById({ connection, id, cache }) }, versions: { getById: ({ connection, id, cache } = {}) => core.getVersionById({ connection, id, cache }) } };