mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-28 18:59:24 -06:00
chore: add prettier config for import sorting, update packages, migrate to prettier 3 (#1777)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { TActionInput } from "@formbricks/types/actions";
|
||||
import { Result } from "@formbricks/types/errorHandlers";
|
||||
import { NetworkError } from "@formbricks/types/errors";
|
||||
import { TActionInput } from "@formbricks/types/actions";
|
||||
|
||||
import { makeRequest } from "../../utils/makeRequest";
|
||||
|
||||
export class ActionAPI {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { TDisplayCreateInput, TDisplayUpdateInput } from "@formbricks/types/displays";
|
||||
import { Result } from "@formbricks/types/errorHandlers";
|
||||
import { NetworkError } from "@formbricks/types/errors";
|
||||
|
||||
import { makeRequest } from "../../utils/makeRequest";
|
||||
|
||||
export class DisplayAPI {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { ResponseAPI } from "./response";
|
||||
import { DisplayAPI } from "./display";
|
||||
import { ApiConfig } from "../../types";
|
||||
import { ActionAPI } from "./action";
|
||||
import { DisplayAPI } from "./display";
|
||||
import { PeopleAPI } from "./people";
|
||||
import { ResponseAPI } from "./response";
|
||||
import { StorageAPI } from "./storage";
|
||||
|
||||
export class Client {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Result } from "@formbricks/types/errorHandlers";
|
||||
import { NetworkError } from "@formbricks/types/errors";
|
||||
import { TPersonUpdateInput } from "@formbricks/types/people";
|
||||
|
||||
import { makeRequest } from "../../utils/makeRequest";
|
||||
|
||||
export class PeopleAPI {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Result } from "@formbricks/types/errorHandlers";
|
||||
import { NetworkError } from "@formbricks/types/errors";
|
||||
import { TResponseInput, TResponseUpdateInput } from "@formbricks/types/responses";
|
||||
|
||||
import { makeRequest } from "../../utils/makeRequest";
|
||||
|
||||
type TResponseUpdateInputWithResponseId = TResponseUpdateInput & { responseId: string };
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ApiConfig } from "./types/index";
|
||||
import { Client } from "./api/client";
|
||||
import { ApiConfig } from "./types/index";
|
||||
|
||||
export class FormbricksAPI {
|
||||
client: Client;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { Result, err, ok, wrapThrows } from "@formbricks/types/errorHandlers";
|
||||
import { NetworkError } from "@formbricks/types/errors";
|
||||
|
||||
import { ApiResponse } from "../types";
|
||||
|
||||
export async function makeRequest<T>(
|
||||
|
||||
Reference in New Issue
Block a user