mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
2dcaccd4ec
* chore: dynamic position dropdown (#2138) * chore: dynamic position state dropdown for issue view * style: state select dropdown styling * fix: state icon attribute names * chore: state select dynamic dropdown * chore: member select dynamic dropdown * chore: label select dynamic dropdown * chore: priority select dynamic dropdown * chore: label select dropdown improvement * refactor: state dropdown location * chore: dropdown improvement and code refactor * chore: dynamic dropdown hook type added --------- Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com> * fix: fields not getting selected in the create issue form (#2212) * fix: hydration error and draft issue workflow * fix: build error * fix: properties getting de-selected after create, module & cycle not getting auto-select on the form * fix: display layout, props being updated directly * chore: sub issues count in individual issue (#2221) * fix: service imports * chore: rename csv service file --------- Co-authored-by: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Co-authored-by: Dakshesh Jain <65905942+dakshesh14@users.noreply.github.com> Co-authored-by: Bavisetti Narayan <72156168+NarayanBavisetti@users.noreply.github.com>
37 lines
915 B
TypeScript
37 lines
915 B
TypeScript
import APIService from "services/api.service";
|
|
import trackEventServices from "services/track_event.service";
|
|
import { ICurrentUserResponse } from "types";
|
|
import { API_BASE_URL } from "helpers/common.helper";
|
|
|
|
export class CSVIntegrationService extends APIService {
|
|
constructor() {
|
|
super(API_BASE_URL);
|
|
}
|
|
|
|
async exportCSVService(
|
|
workspaceSlug: string,
|
|
data: {
|
|
provider: string;
|
|
project: string[];
|
|
},
|
|
user: ICurrentUserResponse
|
|
): Promise<any> {
|
|
return this.post(`/api/workspaces/${workspaceSlug}/export-issues/`, data)
|
|
.then((response) => {
|
|
trackEventServices.trackExporterEvent(
|
|
{
|
|
workspaceSlug,
|
|
},
|
|
"CSV_EXPORTER_CREATE",
|
|
user
|
|
);
|
|
return response?.data;
|
|
})
|
|
.catch((error) => {
|
|
throw error?.response?.data;
|
|
});
|
|
}
|
|
}
|
|
|
|
export default new CSVIntegrationService();
|