From a94d7e23b144792ca78aef4bce8f06c1d140a22f Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 17 Mar 2025 14:53:14 +0100 Subject: [PATCH] Fix renamings --- packages/frontend-core/src/api/oauth2.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/frontend-core/src/api/oauth2.ts b/packages/frontend-core/src/api/oauth2.ts index adbaf9ea60..414afe2a5b 100644 --- a/packages/frontend-core/src/api/oauth2.ts +++ b/packages/frontend-core/src/api/oauth2.ts @@ -1,16 +1,16 @@ import { FetchOAuth2ConfigsResponse, - CreateOAuth2ConfigResponse, OAuth2ConfigResponse, - CreateOAuth2ConfigRequest, + UpsertOAuth2ConfigRequest, + UpsertOAuth2ConfigResponse, } from "@budibase/types" import { BaseAPIClient } from "./types" export interface OAuth2Endpoints { fetch: () => Promise create: ( - config: CreateOAuth2ConfigRequest - ) => Promise + config: UpsertOAuth2ConfigRequest + ) => Promise } export const buildOAuth2Endpoints = (API: BaseAPIClient): OAuth2Endpoints => ({ @@ -33,8 +33,8 @@ export const buildOAuth2Endpoints = (API: BaseAPIClient): OAuth2Endpoints => ({ */ create: async config => { return await API.post< - CreateOAuth2ConfigRequest, - CreateOAuth2ConfigResponse + UpsertOAuth2ConfigRequest, + UpsertOAuth2ConfigResponse >({ url: `/api/oauth2`, body: {