From 1426c3b3820cc5877621f7f11b96ea549a1d6a09 Mon Sep 17 00:00:00 2001 From: fern-bot Date: Tue, 13 Aug 2024 16:53:16 -0400 Subject: [PATCH] rename gooey client and export --- .fernignore | 3 ++- src/{PollingClient.ts => GooeyClient.ts} | 6 +++--- src/index.ts | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) rename src/{PollingClient.ts => GooeyClient.ts} (93%) diff --git a/.fernignore b/.fernignore index 6f54890..7332493 100644 --- a/.fernignore +++ b/.fernignore @@ -1,2 +1,3 @@ # Specify files that shouldn't be modified by Fern -src/PollingClient.ts \ No newline at end of file +src/PollingClient.ts +src/index.ts \ No newline at end of file diff --git a/src/PollingClient.ts b/src/GooeyClient.ts similarity index 93% rename from src/PollingClient.ts rename to src/GooeyClient.ts index 8c205bb..57c2078 100644 --- a/src/PollingClient.ts +++ b/src/GooeyClient.ts @@ -1,10 +1,10 @@ -import { GooeyClient } from "."; +import { GooeyClient as GooeyInternalClient } from "./Client"; import { AsyncApiResponseModelV3 } from "./api"; import { Fetcher, fetcher } from "./core"; import { FailedResponse, SuccessfulResponse } from "./core/fetcher/APIResponse"; -export class PollingClient extends GooeyClient { - constructor(options: GooeyClient.Options) { +export class GooeyClient extends GooeyInternalClient { + constructor(options: GooeyInternalClient.Options) { super({ ...options, fetcher: async (args: Fetcher.Args) => { diff --git a/src/index.ts b/src/index.ts index 37bf9ca..922c858 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ export * as Gooey from "./api"; -export { GooeyClient } from "./Client"; +export { GooeyClient } from './GooeyClient'; export { GooeyEnvironment } from "./environments"; export { GooeyError, GooeyTimeoutError } from "./errors";