@dpgradio/creative 5.2.0 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpgradio/creative",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "description": "Support package for standalone Javascript applications",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/api/api.js CHANGED
@@ -5,6 +5,7 @@ import Channels from './endpoints/Channels.js'
5
5
  import Config from './endpoints/Config.js'
6
6
  import Members from './endpoints/Members.js'
7
7
  import Ratings from './endpoints/Ratings.js'
8
+ import ForbiddenWord from './endpoints/ForbiddenWord.js'
8
9
 
9
10
  const GLOBAL_API_URL = 'https://api.radio.dpgmedia.cloud'
10
11
 
@@ -27,6 +28,7 @@ export class Api {
27
28
  this.config = new Config(this)
28
29
  this.members = new Members(this)
29
30
  this.ratings = new Ratings(this)
31
+ this.forbiddenWord = new ForbiddenWord(this)
30
32
  }
31
33
 
32
34
  get baseUrl() {
@@ -0,0 +1,7 @@
1
+ import Endpoint from './Endpoint.js'
2
+
3
+ export default class ForbiddenWord extends Endpoint {
4
+ async detection(id) {
5
+ await this.api.request().post(`/forbidden_word/${id}/detection`)
6
+ }
7
+ }
@@ -4,4 +4,8 @@ export default class Members extends Endpoint {
4
4
  async me() {
5
5
  return await this.api.request().get('/members/me')
6
6
  }
7
+
8
+ async updateProfile(profile) {
9
+ return await this.api.request().put('/members/me', { profile })
10
+ }
7
11
  }