Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jul 26, 2024
1 parent 03a1345 commit 8db6c8d
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/api/resources/auth/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class Auth {
): Promise<Chariot.GetTokenResponse> {
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",
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/connects/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -183,7 +183,7 @@ export class Connects {
public async get(id: string, requestOptions?: Connects.RequestOptions): Promise<Chariot.Connect> {
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",
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/daFs/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -155,7 +155,7 @@ export class DaFs {
public async get(id: string, requestOptions?: DaFs.RequestOptions): Promise<Chariot.Daf> {
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",
Expand Down
8 changes: 4 additions & 4 deletions src/api/resources/eventSubscriptions/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -185,7 +185,7 @@ export class EventSubscriptions {
): Promise<Chariot.EventSubscription> {
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",
Expand Down Expand Up @@ -310,7 +310,7 @@ export class EventSubscriptions {
): Promise<Chariot.EventSubscription> {
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",
Expand Down Expand Up @@ -436,7 +436,7 @@ export class EventSubscriptions {
): Promise<Chariot.EventSubscription> {
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",
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/events/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -180,7 +180,7 @@ export class Events {
public async get(id: string, requestOptions?: Events.RequestOptions): Promise<Chariot.Event> {
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",
Expand Down
14 changes: 7 additions & 7 deletions src/api/resources/grants/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -193,7 +193,7 @@ export class Grants {
): Promise<Chariot.Grant> {
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",
Expand Down Expand Up @@ -337,7 +337,7 @@ export class Grants {
public async get(id: string, requestOptions?: Grants.RequestOptions): Promise<Chariot.UnintegratedGrant> {
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",
Expand Down Expand Up @@ -466,7 +466,7 @@ export class Grants {
): Promise<Chariot.UnintegratedGrant> {
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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -728,7 +728,7 @@ export class Grants {
): Promise<Chariot.RecurringGrant> {
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",
Expand Down Expand Up @@ -878,7 +878,7 @@ export class Grants {
): Promise<Chariot.RecurringGrant> {
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",
Expand Down
6 changes: 3 additions & 3 deletions src/api/resources/nonprofits/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class Nonprofits {
public async getByEin(ein: string, requestOptions?: Nonprofits.RequestOptions): Promise<Chariot.Nonprofit> {
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",
Expand Down Expand Up @@ -186,7 +186,7 @@ export class Nonprofits {
): Promise<Chariot.Nonprofit> {
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",
Expand Down Expand Up @@ -319,7 +319,7 @@ export class Nonprofits {
public async getById(id: string, requestOptions?: Nonprofits.RequestOptions): Promise<Chariot.Nonprofit> {
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",
Expand Down
4 changes: 2 additions & 2 deletions src/environments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 8db6c8d

Please sign in to comment.