Files
plane/space/ee/services/intake.service.ts
Akshita Goyal 7b1decbffd Chore intake emails forms (#1558)
* 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>
2024-11-05 20:15:58 +05:30

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;
});
}
}