Skip to content

Commit

Permalink
ULMS-3205 Updated FVS client methods
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkonst authored and dkvovik committed Aug 7, 2024
1 parent e9f735e commit d9e3db9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 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": "7.10.0",
"version": "7.11.0-dev.0-ULMS-3205",
"description": "JavaScript API clients for ULMS platform",
"keywords": [],
"homepage": "https://github.com/foxford/ulms-api-clients-js#readme",
Expand Down
25 changes: 15 additions & 10 deletions src/fvs.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,44 +32,49 @@ class FVS extends BasicClient {
}

/**
* Get issue types in Minigroup
* Get issue categories for Minigroup
* @returns {Promise}
*/
getIssueTypes() {
return this.get(`${this.baseUrl}/ulms-issues/types`)
getMinigroupIssueCategories() {
return this.get(
`${this.baseUrl}/api/livestreaming/ulms/miniGroup/issueCategories`,
)
}

/**
* Create issue in Minigroup
* @param {string} scope
* @param {string} externalId
* @param {number} typeId
* @param {string} description
* @returns {Promise}
*/
createIssue(scope, typeId, description) {
createMinigroupIssue(externalId, typeId, description) {
const payload = {
description,
scope,
external_id: externalId,
typeId,
}

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

/**
* Get issue categories in Webinar
* Get issue categories for Webinar
* @returns {Promise}
*/
getIssueCategories() {
getWebinarIssueCategories() {
return this.get(`${this.baseUrl}/api/livestreaming/ulms/issueCategories`)
}

/**
* @typedef {Object} WebinarIssue
* @property {string} description
* @property {string} external_id
* @property {boolean} isCutVideo
* @property {boolean} isNeedHelp
* @property {string} scope
* @property {number} subcategoryId
* /
Expand Down

0 comments on commit d9e3db9

Please sign in to comment.