feat: add feedback module

This commit is contained in:
Jovan Krunić
2021-10-21 06:47:40 +00:00
parent 18ab8d592e
commit 867f9e9b83
13 changed files with 509 additions and 80 deletions

View File

@@ -28,6 +28,7 @@ import {
SCThingsField,
SCThingType,
SCSaveableThing,
SCFeedbackRequest,
} from '@openstapps/core';
import {chunk, fromPairs, toPairs} from 'lodash-es';
import {environment} from '../../../environments/environment';
@@ -292,6 +293,15 @@ export class DataProvider {
);
}
/**
* Send a feedback message (request)
*
* @param feedback Feedback message to be sent to the backend
*/
async sendFeedback(feedback: SCFeedbackRequest) {
return this.client.feedback(feedback);
}
/**
* Searches the backend using the provided query and returns response
*