Skip to content

Commit

Permalink
Release 0.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Dec 16, 2024
1 parent 7f419e5 commit 0f263cb
Show file tree
Hide file tree
Showing 11 changed files with 54 additions and 92 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opengovsg/refx-ts-sdk",
"version": "0.0.8",
"version": "0.0.9",
"private": false,
"repository": "https://github.com/opengovsg/refer-ts-sdk",
"main": "./index.js",
Expand Down
8 changes: 4 additions & 4 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ await client.referrals.reject("referralId", {
</dl>
</details>

<details><summary><code>client.referrals.<a href="/src/api/resources/referrals/client/Client.ts">apiHoldingControllerBackToDraftReferral</a>(referralId) -> ReferralExchange.ReferralDto</code></summary>
<details><summary><code>client.referrals.<a href="/src/api/resources/referrals/client/Client.ts">backToDraft</a>(referralId) -> ReferralExchange.ReferralDto</code></summary>
<dl>
<dd>

Expand All @@ -527,7 +527,7 @@ await client.referrals.reject("referralId", {
<dd>

```typescript
await client.referrals.apiHoldingControllerBackToDraftReferral("referralId");
await client.referrals.backToDraft("referralId");
```

</dd>
Expand Down Expand Up @@ -564,7 +564,7 @@ await client.referrals.apiHoldingControllerBackToDraftReferral("referralId");

## Notes

<details><summary><code>client.notes.<a href="/src/api/resources/notes/client/Client.ts">apiHoldingControllerCreateNote</a>(referralId, { ...params }) -> ReferralExchange.NoteDto</code></summary>
<details><summary><code>client.notes.<a href="/src/api/resources/notes/client/Client.ts">create</a>(referralId, { ...params }) -> ReferralExchange.NoteDto</code></summary>
<dl>
<dd>

Expand All @@ -577,7 +577,7 @@ await client.referrals.apiHoldingControllerBackToDraftReferral("referralId");
<dd>

```typescript
await client.notes.apiHoldingControllerCreateNote("referralId", {
await client.notes.create("referralId", {
authorHciCode: "authorHciCode",
});
```
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/eligibility/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.8",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.8",
"X-Fern-SDK-Version": "0.0.9",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/health/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.8",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.8",
"X-Fern-SDK-Version": "0.0.9",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
8 changes: 4 additions & 4 deletions src/api/resources/notes/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ export class Notes {
* @param {Notes.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.notes.apiHoldingControllerCreateNote("referralId", {
* await client.notes.create("referralId", {
* authorHciCode: "authorHciCode"
* })
*/
public async apiHoldingControllerCreateNote(
public async create(
referralId: string,
request: ReferralExchange.CreateNoteReq,
requestOptions?: Notes.RequestOptions
Expand All @@ -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.8",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.8",
"X-Fern-SDK-Version": "0.0.9",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.9",
"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/offerings/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.8",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.8",
"X-Fern-SDK-Version": "0.0.9",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -107,8 +107,8 @@ export class Offerings {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "0.0.8",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.8",
"X-Fern-SDK-Version": "0.0.9",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -178,8 +178,8 @@ export class Offerings {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "0.0.8",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.8",
"X-Fern-SDK-Version": "0.0.9",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/public/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.8",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.8",
"X-Fern-SDK-Version": "0.0.9",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
40 changes: 20 additions & 20 deletions src/api/resources/referrals/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.8",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.8",
"X-Fern-SDK-Version": "0.0.9",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -162,8 +162,8 @@ export class Referrals {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "0.0.8",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.8",
"X-Fern-SDK-Version": "0.0.9",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -231,8 +231,8 @@ export class Referrals {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "0.0.8",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.8",
"X-Fern-SDK-Version": "0.0.9",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -294,8 +294,8 @@ export class Referrals {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "0.0.8",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.8",
"X-Fern-SDK-Version": "0.0.9",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -358,8 +358,8 @@ export class Referrals {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "0.0.8",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.8",
"X-Fern-SDK-Version": "0.0.9",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -425,8 +425,8 @@ export class Referrals {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "0.0.8",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.8",
"X-Fern-SDK-Version": "0.0.9",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -492,8 +492,8 @@ export class Referrals {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "0.0.8",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.8",
"X-Fern-SDK-Version": "0.0.9",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -559,8 +559,8 @@ export class Referrals {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "0.0.8",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.8",
"X-Fern-SDK-Version": "0.0.9",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -606,9 +606,9 @@ export class Referrals {
* @param {Referrals.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.referrals.apiHoldingControllerBackToDraftReferral("referralId")
* await client.referrals.backToDraft("referralId")
*/
public async apiHoldingControllerBackToDraftReferral(
public async backToDraft(
referralId: string,
requestOptions?: Referrals.RequestOptions
): Promise<ReferralExchange.ReferralDto> {
Expand All @@ -622,8 +622,8 @@ export class Referrals {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
"X-Fern-SDK-Version": "0.0.8",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.8",
"X-Fern-SDK-Version": "0.0.9",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
8 changes: 4 additions & 4 deletions src/api/resources/webhooks/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.8",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.8",
"X-Fern-SDK-Version": "0.0.9",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -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.8",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.8",
"X-Fern-SDK-Version": "0.0.9",
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.9",
"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.8";
export const SDK_VERSION = "0.0.9";
54 changes: 8 additions & 46 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1093,23 +1093,13 @@ call-bind-apply-helpers@^1.0.0, call-bind-apply-helpers@^1.0.1:
es-errors "^1.3.0"
function-bind "^1.1.2"

call-bind@^1.0.8:
version "1.0.8"
resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.8.tgz#0736a9660f537e3388826f440d5ec45f744eaa4c"
integrity sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==
dependencies:
call-bind-apply-helpers "^1.0.0"
es-define-property "^1.0.0"
get-intrinsic "^1.2.4"
set-function-length "^1.2.2"

call-bound@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/call-bound/-/call-bound-1.0.2.tgz#9dbd4daf9f5f753bec3e4c8fbb8a2ecc4de6c39b"
integrity sha512-0lk0PHFe/uz0vl527fG9CgdE9WdafjDbCXvBbs+LUv000TVt2Jjhqbs4Jwm8gz070w8xXyEAxrPOMullsxXeGg==
version "1.0.3"
resolved "https://registry.yarnpkg.com/call-bound/-/call-bound-1.0.3.tgz#41cfd032b593e39176a71533ab4f384aa04fd681"
integrity sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==
dependencies:
call-bind "^1.0.8"
get-intrinsic "^1.2.5"
call-bind-apply-helpers "^1.0.1"
get-intrinsic "^1.2.6"

callsites@^3.0.0:
version "3.1.0"
Expand Down Expand Up @@ -1282,15 +1272,6 @@ deepmerge@^4.2.2:
resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a"
integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==

define-data-property@^1.1.4:
version "1.1.4"
resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e"
integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==
dependencies:
es-define-property "^1.0.0"
es-errors "^1.3.0"
gopd "^1.0.1"

delayed-stream@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
Expand Down Expand Up @@ -1357,7 +1338,7 @@ error-ex@^1.3.1:
dependencies:
is-arrayish "^0.2.1"

es-define-property@^1.0.0, es-define-property@^1.0.1:
es-define-property@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.1.tgz#983eb2f9a6724e9303f61addf011c72e09e0b0fa"
integrity sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==
Expand Down Expand Up @@ -1552,7 +1533,7 @@ get-caller-file@^2.0.5:
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e"
integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==

get-intrinsic@^1.2.4, get-intrinsic@^1.2.5:
get-intrinsic@^1.2.5, get-intrinsic@^1.2.6:
version "1.2.6"
resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.6.tgz#43dd3dd0e7b49b82b2dfcad10dc824bf7fc265d5"
integrity sha512-qxsEs+9A+u85HhllWJJFicJfPDhRmjzoYdl64aMWW9yRIJmSyxdn8IEkuIM530/7T+lv0TIHd8L6Q/ra0tEoeA==
Expand Down Expand Up @@ -1600,7 +1581,7 @@ globals@^11.1.0:
resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==

gopd@^1.0.1, gopd@^1.2.0:
gopd@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.2.0.tgz#89f56b8217bdbc8802bd299df6d7f1081d7e51a1"
integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==
Expand All @@ -1615,13 +1596,6 @@ has-flag@^4.0.0:
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==

has-property-descriptors@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854"
integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==
dependencies:
es-define-property "^1.0.0"

has-symbols@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.1.0.tgz#fc9c6a783a084951d0b971fe1018de813707a338"
Expand Down Expand Up @@ -2683,18 +2657,6 @@ serialize-javascript@^6.0.2:
dependencies:
randombytes "^2.1.0"

set-function-length@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449"
integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==
dependencies:
define-data-property "^1.1.4"
es-errors "^1.3.0"
function-bind "^1.1.2"
get-intrinsic "^1.2.4"
gopd "^1.0.1"
has-property-descriptors "^1.0.2"

shebang-command@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea"
Expand Down

0 comments on commit 0f263cb

Please sign in to comment.