Skip to content

Commit

Permalink
ULMS-1812 Added FVS api client
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkonst committed May 18, 2022
1 parent 421b1f4 commit f19b345
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ulms/api-clients",
"version": "5.5.0",
"version": "5.6.0",
"description": "JavaScript API clients for ULMS platform",
"keywords": [],
"homepage": "https://github.com/foxford/ulms-api-clients-js#readme",
Expand Down
30 changes: 30 additions & 0 deletions src/fvs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import BasicClient from './basic-client'

class FVS extends BasicClient {
/**
* Get issue types
* @returns {Promise}
*/
getIssueTypes() {
return this.get(`${this.baseUrl}/ulms-issues/types`)
}

/**
* Get issue types
* @param {string} scope
* @param {number} typeId
* @param {string} description
* @returns {Promise}
*/
createIssue(scope, typeId, description) {
const payload = {
description,
scope,
typeId,
}

return this.post(`${this.baseUrl}/ulms-issues/issues`, payload)
}
}

export default FVS
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export { default as Conference } from './conference'
export { default as Dispatcher } from './dispatcher'
export { default as Event } from './event'
export { default as FVS } from './fvs'
export { default as FetchHttpClient } from './http-client'
export { default as HTTPEvent } from './http-event'
export { default as Presence } from './presence'
Expand Down

0 comments on commit f19b345

Please sign in to comment.