From 44b12b93ac42583f2660eff93907c1d1a1351c6b Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 09:10:56 +0000 Subject: [PATCH] Release 0.0.22 --- package.json | 2 +- .../resources/eligibility/client/Client.ts | 4 +-- src/api/resources/health/client/Client.ts | 4 +-- src/api/resources/notes/client/Client.ts | 4 +-- src/api/resources/offerings/client/Client.ts | 8 ++--- src/api/resources/public/client/Client.ts | 4 +-- src/api/resources/referrals/client/Client.ts | 36 +++++++++---------- src/api/resources/webhooks/client/Client.ts | 8 ++--- src/api/types/FullReferralDto.ts | 2 ++ src/api/types/ReferralDto.ts | 2 ++ src/version.ts | 2 +- 11 files changed, 40 insertions(+), 36 deletions(-) diff --git a/package.json b/package.json index 2da7354..bad9ca8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@opengovsg/refx-ts-sdk", - "version": "0.0.21", + "version": "0.0.22", "private": false, "repository": "https://github.com/opengovsg/refer-ts-sdk", "main": "./index.js", diff --git a/src/api/resources/eligibility/client/Client.ts b/src/api/resources/eligibility/client/Client.ts index 1eafeb9..02518db 100644 --- a/src/api/resources/eligibility/client/Client.ts +++ b/src/api/resources/eligibility/client/Client.ts @@ -58,8 +58,8 @@ export class Eligibility { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", - "X-Fern-SDK-Version": "0.0.21", - "User-Agent": "@opengovsg/refx-ts-sdk/0.0.21", + "X-Fern-SDK-Version": "0.0.22", + "User-Agent": "@opengovsg/refx-ts-sdk/0.0.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/health/client/Client.ts b/src/api/resources/health/client/Client.ts index 0c7ed69..30ef2a1 100644 --- a/src/api/resources/health/client/Client.ts +++ b/src/api/resources/health/client/Client.ts @@ -47,8 +47,8 @@ export class Health { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", - "X-Fern-SDK-Version": "0.0.21", - "User-Agent": "@opengovsg/refx-ts-sdk/0.0.21", + "X-Fern-SDK-Version": "0.0.22", + "User-Agent": "@opengovsg/refx-ts-sdk/0.0.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/notes/client/Client.ts b/src/api/resources/notes/client/Client.ts index 7113883..19b1c33 100644 --- a/src/api/resources/notes/client/Client.ts +++ b/src/api/resources/notes/client/Client.ts @@ -55,8 +55,8 @@ export class Notes { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", - "X-Fern-SDK-Version": "0.0.21", - "User-Agent": "@opengovsg/refx-ts-sdk/0.0.21", + "X-Fern-SDK-Version": "0.0.22", + "User-Agent": "@opengovsg/refx-ts-sdk/0.0.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/offerings/client/Client.ts b/src/api/resources/offerings/client/Client.ts index 5a6bb01..9ccd16a 100644 --- a/src/api/resources/offerings/client/Client.ts +++ b/src/api/resources/offerings/client/Client.ts @@ -47,8 +47,8 @@ export class Offerings { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", - "X-Fern-SDK-Version": "0.0.21", - "User-Agent": "@opengovsg/refx-ts-sdk/0.0.21", + "X-Fern-SDK-Version": "0.0.22", + "User-Agent": "@opengovsg/refx-ts-sdk/0.0.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -116,8 +116,8 @@ export class Offerings { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", - "X-Fern-SDK-Version": "0.0.21", - "User-Agent": "@opengovsg/refx-ts-sdk/0.0.21", + "X-Fern-SDK-Version": "0.0.22", + "User-Agent": "@opengovsg/refx-ts-sdk/0.0.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/public/client/Client.ts b/src/api/resources/public/client/Client.ts index 89a5908..6851a24 100644 --- a/src/api/resources/public/client/Client.ts +++ b/src/api/resources/public/client/Client.ts @@ -61,8 +61,8 @@ export class Public { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", - "X-Fern-SDK-Version": "0.0.21", - "User-Agent": "@opengovsg/refx-ts-sdk/0.0.21", + "X-Fern-SDK-Version": "0.0.22", + "User-Agent": "@opengovsg/refx-ts-sdk/0.0.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/referrals/client/Client.ts b/src/api/resources/referrals/client/Client.ts index 7d52e6e..2363989 100644 --- a/src/api/resources/referrals/client/Client.ts +++ b/src/api/resources/referrals/client/Client.ts @@ -76,8 +76,8 @@ export class Referrals { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", - "X-Fern-SDK-Version": "0.0.21", - "User-Agent": "@opengovsg/refx-ts-sdk/0.0.21", + "X-Fern-SDK-Version": "0.0.22", + "User-Agent": "@opengovsg/refx-ts-sdk/0.0.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -160,8 +160,8 @@ export class Referrals { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", - "X-Fern-SDK-Version": "0.0.21", - "User-Agent": "@opengovsg/refx-ts-sdk/0.0.21", + "X-Fern-SDK-Version": "0.0.22", + "User-Agent": "@opengovsg/refx-ts-sdk/0.0.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -229,8 +229,8 @@ export class Referrals { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", - "X-Fern-SDK-Version": "0.0.21", - "User-Agent": "@opengovsg/refx-ts-sdk/0.0.21", + "X-Fern-SDK-Version": "0.0.22", + "User-Agent": "@opengovsg/refx-ts-sdk/0.0.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -292,8 +292,8 @@ export class Referrals { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", - "X-Fern-SDK-Version": "0.0.21", - "User-Agent": "@opengovsg/refx-ts-sdk/0.0.21", + "X-Fern-SDK-Version": "0.0.22", + "User-Agent": "@opengovsg/refx-ts-sdk/0.0.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -356,8 +356,8 @@ export class Referrals { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", - "X-Fern-SDK-Version": "0.0.21", - "User-Agent": "@opengovsg/refx-ts-sdk/0.0.21", + "X-Fern-SDK-Version": "0.0.22", + "User-Agent": "@opengovsg/refx-ts-sdk/0.0.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -423,8 +423,8 @@ export class Referrals { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", - "X-Fern-SDK-Version": "0.0.21", - "User-Agent": "@opengovsg/refx-ts-sdk/0.0.21", + "X-Fern-SDK-Version": "0.0.22", + "User-Agent": "@opengovsg/refx-ts-sdk/0.0.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -490,8 +490,8 @@ export class Referrals { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", - "X-Fern-SDK-Version": "0.0.21", - "User-Agent": "@opengovsg/refx-ts-sdk/0.0.21", + "X-Fern-SDK-Version": "0.0.22", + "User-Agent": "@opengovsg/refx-ts-sdk/0.0.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -557,8 +557,8 @@ export class Referrals { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", - "X-Fern-SDK-Version": "0.0.21", - "User-Agent": "@opengovsg/refx-ts-sdk/0.0.21", + "X-Fern-SDK-Version": "0.0.22", + "User-Agent": "@opengovsg/refx-ts-sdk/0.0.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -620,8 +620,8 @@ export class Referrals { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", - "X-Fern-SDK-Version": "0.0.21", - "User-Agent": "@opengovsg/refx-ts-sdk/0.0.21", + "X-Fern-SDK-Version": "0.0.22", + "User-Agent": "@opengovsg/refx-ts-sdk/0.0.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/webhooks/client/Client.ts b/src/api/resources/webhooks/client/Client.ts index f5af483..c3f8890 100644 --- a/src/api/resources/webhooks/client/Client.ts +++ b/src/api/resources/webhooks/client/Client.ts @@ -46,8 +46,8 @@ export class Webhooks { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", - "X-Fern-SDK-Version": "0.0.21", - "User-Agent": "@opengovsg/refx-ts-sdk/0.0.21", + "X-Fern-SDK-Version": "0.0.22", + "User-Agent": "@opengovsg/refx-ts-sdk/0.0.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -105,8 +105,8 @@ export class Webhooks { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", - "X-Fern-SDK-Version": "0.0.21", - "User-Agent": "@opengovsg/refx-ts-sdk/0.0.21", + "X-Fern-SDK-Version": "0.0.22", + "User-Agent": "@opengovsg/refx-ts-sdk/0.0.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/types/FullReferralDto.ts b/src/api/types/FullReferralDto.ts index f07395c..73475c3 100644 --- a/src/api/types/FullReferralDto.ts +++ b/src/api/types/FullReferralDto.ts @@ -24,5 +24,7 @@ export interface FullReferralDto { notes: ReferralExchange.NoteDto[]; /** URL of the FormSG required to complete the referral */ formUrl?: string; + /** List of forms required to complete the referral */ + forms?: string[]; timelineEvents: ReferralExchange.TimelineEventDto[]; } diff --git a/src/api/types/ReferralDto.ts b/src/api/types/ReferralDto.ts index 17e434a..79f99d5 100644 --- a/src/api/types/ReferralDto.ts +++ b/src/api/types/ReferralDto.ts @@ -24,4 +24,6 @@ export interface ReferralDto { notes: ReferralExchange.NoteDto[]; /** URL of the FormSG required to complete the referral */ formUrl?: string; + /** List of forms required to complete the referral */ + forms?: string[]; } diff --git a/src/version.ts b/src/version.ts index 0b955c2..87d5926 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "0.0.21"; +export const SDK_VERSION = "0.0.22";