Skip to content

Commit

Permalink
Release 2024.10.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Dec 14, 2024
1 parent 64f4a05 commit 361c846
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 57 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Opengovsg TypeScript Library

[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fopengovsg%2Frefer-ts-sdk)
[![npm shield](https://img.shields.io/npm/v/ogp-refx)](https://www.npmjs.com/package/ogp-refx)
[![npm shield](https://img.shields.io/npm/v/@opengovsg/refx-ts-sdk)](https://www.npmjs.com/package/@opengovsg/refx-ts-sdk)

The Opengovsg TypeScript library provides convenient access to the Opengovsg API from TypeScript.

## Installation

```sh
npm i -s ogp-refx
npm i -s @opengovsg/refx-ts-sdk
```

## Reference
Expand All @@ -20,7 +20,7 @@ A full reference for this library is available [here](./reference.md).
Instantiate and use the client with the following:

```typescript
import { ReferralExchangeClient } from "ogp-refx";
import { ReferralExchangeClient } from "@opengovsg/refx-ts-sdk";

const client = new ReferralExchangeClient({ environment: "YOUR_BASE_URL", apiKey: "YOUR_API_KEY" });
await client.referrals.upsert({
Expand Down Expand Up @@ -57,7 +57,7 @@ The SDK exports all request and response types as TypeScript interfaces. Simply
following namespace:

```typescript
import { ReferralExchange } from "ogp-refx";
import { ReferralExchange } from "@opengovsg/refx-ts-sdk";

const request: ReferralExchange.EligibilityGetRequest = {
...
Expand All @@ -70,7 +70,7 @@ When the API returns a non-success status code (4xx or 5xx response), a subclass
will be thrown.

```typescript
import { ReferralExchangeError } from "ogp-refx";
import { ReferralExchangeError } from "@opengovsg/refx-ts-sdk";

try {
await client.referrals.upsert(...);
Expand Down Expand Up @@ -157,7 +157,7 @@ The SDK provides a way for your to customize the underlying HTTP client / Fetch
unsupported environment, this provides a way for you to break glass and ensure the SDK works.

```typescript
import { ReferralExchangeClient } from "ogp-refx";
import { ReferralExchangeClient } from "@opengovsg/refx-ts-sdk";

const client = new ReferralExchangeClient({
...
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ogp-refx",
"version": "0.0.3",
"name": "@opengovsg/refx-ts-sdk",
"version": "2024.10.3",
"private": false,
"repository": "https://github.com/opengovsg/refer-ts-sdk",
"main": "./index.js",
Expand Down
6 changes: 3 additions & 3 deletions src/api/resources/eligibility/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export class Eligibility {
method: "GET",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ogp-refx",
"X-Fern-SDK-Version": "0.0.3",
"User-Agent": "ogp-refx/0.0.3",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "2024.10.3",
"User-Agent": "@opengovsg/refx-ts-sdk/2024.10.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
6 changes: 3 additions & 3 deletions src/api/resources/health/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export class Health {
method: "GET",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ogp-refx",
"X-Fern-SDK-Version": "0.0.3",
"User-Agent": "ogp-refx/0.0.3",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "2024.10.3",
"User-Agent": "@opengovsg/refx-ts-sdk/2024.10.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
18 changes: 9 additions & 9 deletions src/api/resources/offerings/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export class Offerings {
method: "GET",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ogp-refx",
"X-Fern-SDK-Version": "0.0.3",
"User-Agent": "ogp-refx/0.0.3",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "2024.10.3",
"User-Agent": "@opengovsg/refx-ts-sdk/2024.10.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -100,9 +100,9 @@ export class Offerings {
method: "GET",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ogp-refx",
"X-Fern-SDK-Version": "0.0.3",
"User-Agent": "ogp-refx/0.0.3",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "2024.10.3",
"User-Agent": "@opengovsg/refx-ts-sdk/2024.10.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -172,9 +172,9 @@ export class Offerings {
method: "GET",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ogp-refx",
"X-Fern-SDK-Version": "0.0.3",
"User-Agent": "ogp-refx/0.0.3",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "2024.10.3",
"User-Agent": "@opengovsg/refx-ts-sdk/2024.10.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
6 changes: 3 additions & 3 deletions src/api/resources/public/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ export class Public {
method: "GET",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ogp-refx",
"X-Fern-SDK-Version": "0.0.3",
"User-Agent": "ogp-refx/0.0.3",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "2024.10.3",
"User-Agent": "@opengovsg/refx-ts-sdk/2024.10.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
48 changes: 24 additions & 24 deletions src/api/resources/referrals/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ export class Referrals {
method: "GET",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ogp-refx",
"X-Fern-SDK-Version": "0.0.3",
"User-Agent": "ogp-refx/0.0.3",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "2024.10.3",
"User-Agent": "@opengovsg/refx-ts-sdk/2024.10.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -152,9 +152,9 @@ export class Referrals {
method: "POST",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ogp-refx",
"X-Fern-SDK-Version": "0.0.3",
"User-Agent": "ogp-refx/0.0.3",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "2024.10.3",
"User-Agent": "@opengovsg/refx-ts-sdk/2024.10.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -212,9 +212,9 @@ export class Referrals {
method: "GET",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ogp-refx",
"X-Fern-SDK-Version": "0.0.3",
"User-Agent": "ogp-refx/0.0.3",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "2024.10.3",
"User-Agent": "@opengovsg/refx-ts-sdk/2024.10.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -273,9 +273,9 @@ export class Referrals {
method: "DELETE",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ogp-refx",
"X-Fern-SDK-Version": "0.0.3",
"User-Agent": "ogp-refx/0.0.3",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "2024.10.3",
"User-Agent": "@opengovsg/refx-ts-sdk/2024.10.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -336,9 +336,9 @@ export class Referrals {
method: "POST",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ogp-refx",
"X-Fern-SDK-Version": "0.0.3",
"User-Agent": "ogp-refx/0.0.3",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "2024.10.3",
"User-Agent": "@opengovsg/refx-ts-sdk/2024.10.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -402,9 +402,9 @@ export class Referrals {
method: "POST",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ogp-refx",
"X-Fern-SDK-Version": "0.0.3",
"User-Agent": "ogp-refx/0.0.3",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "2024.10.3",
"User-Agent": "@opengovsg/refx-ts-sdk/2024.10.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -468,9 +468,9 @@ export class Referrals {
method: "POST",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ogp-refx",
"X-Fern-SDK-Version": "0.0.3",
"User-Agent": "ogp-refx/0.0.3",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "2024.10.3",
"User-Agent": "@opengovsg/refx-ts-sdk/2024.10.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -534,9 +534,9 @@ export class Referrals {
method: "POST",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ogp-refx",
"X-Fern-SDK-Version": "0.0.3",
"User-Agent": "ogp-refx/0.0.3",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "2024.10.3",
"User-Agent": "@opengovsg/refx-ts-sdk/2024.10.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
12 changes: 6 additions & 6 deletions src/api/resources/webhooks/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ export class Webhooks {
method: "POST",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ogp-refx",
"X-Fern-SDK-Version": "0.0.3",
"User-Agent": "ogp-refx/0.0.3",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "2024.10.3",
"User-Agent": "@opengovsg/refx-ts-sdk/2024.10.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -101,9 +101,9 @@ export class Webhooks {
method: "POST",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "ogp-refx",
"X-Fern-SDK-Version": "0.0.3",
"User-Agent": "ogp-refx/0.0.3",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "2024.10.3",
"User-Agent": "@opengovsg/refx-ts-sdk/2024.10.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const SDK_VERSION = "0.0.3";
export const SDK_VERSION = "2024.10.3";

0 comments on commit 361c846

Please sign in to comment.