mirror of
https://github.com/makeplane/plane.git
synced 2026-07-12 21:40:18 +02:00
* chore: intake email and forms ui * chore: intake forms * chore: api integrations for settings * fix: intake tooltip * fix: type added * fix: intake form space * fix: forms * fix: space app form for intake * fix: lint issue * fix: theme based image handling * fix: type fixed * chore: intake settings modal * fix: handled html text area * chore: payload changes for intake settings * fix: changed api endpoint * fix: build issues * chore: issue creation for intake forms * chore: in-app intake toggle * fix: added feature flagging * chore: changed the default response * fix: changed flag * fix: handled placeholders * fix: removed unwnated classes * chore: removed the extra migration --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com> Co-authored-by: Bavisetti Narayan <72156168+NarayanBavisetti@users.noreply.github.com>
20 lines
563 B
TypeScript
20 lines
563 B
TypeScript
// types
|
|
import { API_BASE_URL } from "@/helpers/common.helper";
|
|
import { APIService } from "@/services/api.service";
|
|
import { TIntakeIssueForm } from "@/types/intake";
|
|
// helpers
|
|
|
|
export class IntakeService extends APIService {
|
|
constructor() {
|
|
super(API_BASE_URL);
|
|
}
|
|
|
|
async publishForm(anchor: string, data: Partial<TIntakeIssueForm>): Promise<TIntakeIssueForm> {
|
|
return this.post(`/api/public/anchor/${anchor}/intake/`, data)
|
|
.then((response) => response?.data)
|
|
.catch((error) => {
|
|
throw error?.response?.data;
|
|
});
|
|
}
|
|
}
|