@imposium-hub/components 1.25.0 → 1.26.1

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": "@imposium-hub/components",
3
- "version": "1.25.0",
3
+ "version": "1.26.1",
4
4
  "description": "React & Typescript component / asset library for Imposium front-ends",
5
5
  "main": "dist/components.js",
6
6
  "scripts": {
package/services/API.ts CHANGED
@@ -540,6 +540,29 @@ export default class API {
540
540
  });
541
541
  }
542
542
 
543
+ public updateModerationStatus = (experienceId : string, status : string, reason ? : string) : Promise<any> => {
544
+
545
+ return this.doRequest({
546
+ method: 'POST',
547
+ url: `/experience/${experienceId}/status`,
548
+ data: {
549
+ status,
550
+ reason
551
+ }
552
+ });
553
+ }
554
+
555
+ public addOrReplaceNote = (experienceId : string, notes : string) : Promise<any> => {
556
+
557
+ return this.doRequest({
558
+ method: 'POST',
559
+ url: `/experience/${experienceId}/notes`,
560
+ data: {
561
+ notes
562
+ }
563
+ });
564
+ }
565
+
543
566
  public getJob = (jobId : string) : Promise<any | Error> => {
544
567
  return this.doRequest({
545
568
  method: 'GET',