@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/dist/components.js +1 -1
- package/dist/components.js.map +1 -1
- package/package.json +1 -1
- package/services/API.ts +23 -0
package/package.json
CHANGED
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',
|