ℹ️ refactor: Remove use of Agenda for Conversation Imports (#3024)

* chore: remove agenda and npm audit fix

* refactor: import conversations without agenda

* chore: update package-lock.json and data-provider version to 0.6.7

* fix: import conversations

* chore: client npm audit fix
This commit is contained in:
Danny Avila 2024-06-10 13:00:34 -04:00 committed by GitHub
parent 92232afaca
commit 2e559137ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 52 additions and 402 deletions

View file

@ -305,22 +305,10 @@ export const uploadFile = (data: FormData): Promise<f.TFileUpload> => {
* @param data - The FormData containing the file to import.
* @returns A Promise that resolves to the import start response.
*/
export const importConversationsFile = (data: FormData): Promise<t.TImportStartResponse> => {
export const importConversationsFile = (data: FormData): Promise<t.TImportResponse> => {
return request.postMultiPart(endpoints.importConversation(), data);
};
/**
* Retrieves the status of an import conversation job.
*
* @param jobId - The ID of the import conversation job.
* @returns A promise that resolves to the import job status.
*/
export const queryImportConversationJobStatus = async (
jobId: string,
): Promise<t.TImportJobStatus> => {
return request.get(endpoints.importConversationJobStatus(jobId));
};
export const uploadAvatar = (data: FormData): Promise<f.AvatarUploadResponse> => {
return request.postMultiPart(endpoints.avatar(), data);
};