From 8db6c8d89e29ab3e1fcf2b5001775d82940ac1e2 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 26 Jul 2024 14:07:32 +0000 Subject: [PATCH] SDK regeneration --- src/api/resources/auth/client/Client.ts | 2 +- src/api/resources/connects/client/Client.ts | 4 ++-- src/api/resources/daFs/client/Client.ts | 4 ++-- .../resources/eventSubscriptions/client/Client.ts | 8 ++++---- src/api/resources/events/client/Client.ts | 4 ++-- src/api/resources/grants/client/Client.ts | 14 +++++++------- src/api/resources/nonprofits/client/Client.ts | 6 +++--- src/environments.ts | 4 ++-- 8 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts index 1114955..696cee9 100644 --- a/src/api/resources/auth/client/Client.ts +++ b/src/api/resources/auth/client/Client.ts @@ -47,7 +47,7 @@ export class Auth { ): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, "oauth/token" ), method: "POST", diff --git a/src/api/resources/connects/client/Client.ts b/src/api/resources/connects/client/Client.ts index 597e7ee..2a73c15 100644 --- a/src/api/resources/connects/client/Client.ts +++ b/src/api/resources/connects/client/Client.ts @@ -60,7 +60,7 @@ export class Connects { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, "v1/connects" ), method: "POST", @@ -183,7 +183,7 @@ export class Connects { public async get(id: string, requestOptions?: Connects.RequestOptions): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, `v1/connects/${encodeURIComponent(id)}` ), method: "GET", diff --git a/src/api/resources/daFs/client/Client.ts b/src/api/resources/daFs/client/Client.ts index bdac40a..9900dd3 100644 --- a/src/api/resources/daFs/client/Client.ts +++ b/src/api/resources/daFs/client/Client.ts @@ -56,7 +56,7 @@ export class DaFs { } const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, "v1/dafs" ), method: "GET", @@ -155,7 +155,7 @@ export class DaFs { public async get(id: string, requestOptions?: DaFs.RequestOptions): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, `v1/dafs/${encodeURIComponent(id)}` ), method: "GET", diff --git a/src/api/resources/eventSubscriptions/client/Client.ts b/src/api/resources/eventSubscriptions/client/Client.ts index abf51a4..e5c8dd0 100644 --- a/src/api/resources/eventSubscriptions/client/Client.ts +++ b/src/api/resources/eventSubscriptions/client/Client.ts @@ -60,7 +60,7 @@ export class EventSubscriptions { } const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, "v1/event_subscriptions" ), method: "GET", @@ -185,7 +185,7 @@ export class EventSubscriptions { ): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, "v1/event_subscriptions" ), method: "POST", @@ -310,7 +310,7 @@ export class EventSubscriptions { ): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, `v1/event_subscriptions/${encodeURIComponent(id)}` ), method: "GET", @@ -436,7 +436,7 @@ export class EventSubscriptions { ): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, `v1/event_subscriptions/${encodeURIComponent(id)}` ), method: "PATCH", diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts index 645d722..a8145fe 100644 --- a/src/api/resources/events/client/Client.ts +++ b/src/api/resources/events/client/Client.ts @@ -61,7 +61,7 @@ export class Events { } const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, "v1/events" ), method: "GET", @@ -180,7 +180,7 @@ export class Events { public async get(id: string, requestOptions?: Events.RequestOptions): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, `v1/events/${encodeURIComponent(id)}` ), method: "GET", diff --git a/src/api/resources/grants/client/Client.ts b/src/api/resources/grants/client/Client.ts index 6b0a522..9ba831d 100644 --- a/src/api/resources/grants/client/Client.ts +++ b/src/api/resources/grants/client/Client.ts @@ -60,7 +60,7 @@ export class Grants { } const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, "v1/unintegrated_grants" ), method: "GET", @@ -193,7 +193,7 @@ export class Grants { ): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, "v1/grants" ), method: "POST", @@ -337,7 +337,7 @@ export class Grants { public async get(id: string, requestOptions?: Grants.RequestOptions): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, `v1/unintegrated_grants/${encodeURIComponent(id)}` ), method: "GET", @@ -466,7 +466,7 @@ export class Grants { ): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, `v1/unintegrated_grants/${encodeURIComponent(id)}` ), method: "PATCH", @@ -602,7 +602,7 @@ export class Grants { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, "v1/recurring_grants" ), method: "GET", @@ -728,7 +728,7 @@ export class Grants { ): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, "v1/recurring_grants" ), method: "POST", @@ -878,7 +878,7 @@ export class Grants { ): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, `v1/recurring_grants/${encodeURIComponent(id)}` ), method: "GET", diff --git a/src/api/resources/nonprofits/client/Client.ts b/src/api/resources/nonprofits/client/Client.ts index 1cd8f39..ae4ce4f 100644 --- a/src/api/resources/nonprofits/client/Client.ts +++ b/src/api/resources/nonprofits/client/Client.ts @@ -52,7 +52,7 @@ export class Nonprofits { public async getByEin(ein: string, requestOptions?: Nonprofits.RequestOptions): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, `v1/nonprofit/${encodeURIComponent(ein)}` ), method: "GET", @@ -186,7 +186,7 @@ export class Nonprofits { ): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, "v1/nonprofits" ), method: "POST", @@ -319,7 +319,7 @@ export class Nonprofits { public async getById(id: string, requestOptions?: Nonprofits.RequestOptions): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Sandbox, + (await core.Supplier.get(this._options.environment)) ?? environments.ChariotEnvironment.Production, `v1/nonprofits/${encodeURIComponent(id)}` ), method: "GET", diff --git a/src/environments.ts b/src/environments.ts index f229dee..69e2a72 100644 --- a/src/environments.ts +++ b/src/environments.ts @@ -3,8 +3,8 @@ */ export const ChariotEnvironment = { - Sandbox: "https://sandboxapi.givechariot.com", Production: "https://api.givechariot.com", + Sandbox: "https://sandboxapi.givechariot.com", } as const; -export type ChariotEnvironment = typeof ChariotEnvironment.Sandbox | typeof ChariotEnvironment.Production; +export type ChariotEnvironment = typeof ChariotEnvironment.Production | typeof ChariotEnvironment.Sandbox;