Skip to content

Commit d6e3fde

Browse files
committed
Release 0.0.11
1 parent 4927b47 commit d6e3fde

32 files changed

+84
-181
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opengovsg/refx-ts-sdk",
3-
"version": "0.0.10",
3+
"version": "0.0.11",
44
"private": false,
55
"repository": "https://github.com/opengovsg/refer-ts-sdk",
66
"main": "./index.js",

reference.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ await client.eligibility.get({
6969

7070
```typescript
7171
await client.referrals.list({
72-
offset: 1.1,
73-
pageSize: 1.1,
7472
hciCode: "hciCode",
7573
});
7674
```
@@ -831,7 +829,7 @@ await client.public.getReferral("referralId");
831829

832830
## Webhooks
833831

834-
<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">submitSingHealthFormSg</a>() -> void</code></summary>
832+
<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">submitSingHealthFormsg</a>() -> void</code></summary>
835833
<dl>
836834
<dd>
837835

@@ -844,7 +842,7 @@ await client.public.getReferral("referralId");
844842
<dd>
845843

846844
```typescript
847-
await client.webhooks.submitSingHealthFormSg();
845+
await client.webhooks.submitSingHealthFormsg();
848846
```
849847

850848
</dd>
@@ -871,7 +869,7 @@ await client.webhooks.submitSingHealthFormSg();
871869
</dl>
872870
</details>
873871

874-
<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">submitFormSg</a>(formId) -> void</code></summary>
872+
<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">submitFormsg</a>(formId) -> void</code></summary>
875873
<dl>
876874
<dd>
877875

@@ -884,7 +882,7 @@ await client.webhooks.submitSingHealthFormSg();
884882
<dd>
885883

886884
```typescript
887-
await client.webhooks.submitFormSg("formId");
885+
await client.webhooks.submitFormsg("formId");
888886
```
889887

890888
</dd>

src/api/resources/eligibility/client/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ export class Eligibility {
5858
headers: {
5959
"X-Fern-Language": "JavaScript",
6060
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
61-
"X-Fern-SDK-Version": "0.0.10",
62-
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.10",
61+
"X-Fern-SDK-Version": "0.0.11",
62+
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.11",
6363
"X-Fern-Runtime": core.RUNTIME.type,
6464
"X-Fern-Runtime-Version": core.RUNTIME.version,
6565
...(await this._getCustomAuthorizationHeaders()),

src/api/resources/health/client/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export class Health {
4747
headers: {
4848
"X-Fern-Language": "JavaScript",
4949
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
50-
"X-Fern-SDK-Version": "0.0.10",
51-
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.10",
50+
"X-Fern-SDK-Version": "0.0.11",
51+
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.11",
5252
"X-Fern-Runtime": core.RUNTIME.type,
5353
"X-Fern-Runtime-Version": core.RUNTIME.version,
5454
...(await this._getCustomAuthorizationHeaders()),

src/api/resources/notes/client/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export class Notes {
5555
headers: {
5656
"X-Fern-Language": "JavaScript",
5757
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
58-
"X-Fern-SDK-Version": "0.0.10",
59-
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.10",
58+
"X-Fern-SDK-Version": "0.0.11",
59+
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.11",
6060
"X-Fern-Runtime": core.RUNTIME.type,
6161
"X-Fern-Runtime-Version": core.RUNTIME.version,
6262
...(await this._getCustomAuthorizationHeaders()),

src/api/resources/notes/client/requests/CreateNoteReq.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
export interface CreateNoteReq {
1212
/** Note content - plaintext. */
1313
content?: string;
14-
/** Author HCI code. Must be already tied by your system. */
14+
/** Author HCI code. Must be already tied to your system. */
1515
authorHciCode: string;
1616
}

src/api/resources/offerings/client/Client.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export class Offerings {
4747
headers: {
4848
"X-Fern-Language": "JavaScript",
4949
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
50-
"X-Fern-SDK-Version": "0.0.10",
51-
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.10",
50+
"X-Fern-SDK-Version": "0.0.11",
51+
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.11",
5252
"X-Fern-Runtime": core.RUNTIME.type,
5353
"X-Fern-Runtime-Version": core.RUNTIME.version,
5454
...(await this._getCustomAuthorizationHeaders()),
@@ -107,8 +107,8 @@ export class Offerings {
107107
headers: {
108108
"X-Fern-Language": "JavaScript",
109109
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
110-
"X-Fern-SDK-Version": "0.0.10",
111-
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.10",
110+
"X-Fern-SDK-Version": "0.0.11",
111+
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.11",
112112
"X-Fern-Runtime": core.RUNTIME.type,
113113
"X-Fern-Runtime-Version": core.RUNTIME.version,
114114
...(await this._getCustomAuthorizationHeaders()),
@@ -178,8 +178,8 @@ export class Offerings {
178178
headers: {
179179
"X-Fern-Language": "JavaScript",
180180
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
181-
"X-Fern-SDK-Version": "0.0.10",
182-
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.10",
181+
"X-Fern-SDK-Version": "0.0.11",
182+
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.11",
183183
"X-Fern-Runtime": core.RUNTIME.type,
184184
"X-Fern-Runtime-Version": core.RUNTIME.version,
185185
...(await this._getCustomAuthorizationHeaders()),

src/api/resources/public/client/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ export class Public {
6161
headers: {
6262
"X-Fern-Language": "JavaScript",
6363
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
64-
"X-Fern-SDK-Version": "0.0.10",
65-
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.10",
64+
"X-Fern-SDK-Version": "0.0.11",
65+
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.11",
6666
"X-Fern-Runtime": core.RUNTIME.type,
6767
"X-Fern-Runtime-Version": core.RUNTIME.version,
6868
...(await this._getCustomAuthorizationHeaders()),

src/api/resources/referrals/client/Client.ts

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ export class Referrals {
3636
*
3737
* @example
3838
* await client.referrals.list({
39-
* offset: 1.1,
40-
* pageSize: 1.1,
4139
* hciCode: "hciCode"
4240
* })
4341
*/
@@ -47,8 +45,14 @@ export class Referrals {
4745
): Promise<ReferralExchange.PaginatedReferralsDto> {
4846
const { offset, pageSize, hciCode, status, role } = request;
4947
const _queryParams: Record<string, string | string[] | object | object[]> = {};
50-
_queryParams["offset"] = offset.toString();
51-
_queryParams["pageSize"] = pageSize.toString();
48+
if (offset != null) {
49+
_queryParams["offset"] = offset.toString();
50+
}
51+
52+
if (pageSize != null) {
53+
_queryParams["pageSize"] = pageSize.toString();
54+
}
55+
5256
_queryParams["hciCode"] = hciCode;
5357
if (status != null) {
5458
if (Array.isArray(status)) {
@@ -72,8 +76,8 @@ export class Referrals {
7276
headers: {
7377
"X-Fern-Language": "JavaScript",
7478
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
75-
"X-Fern-SDK-Version": "0.0.10",
76-
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.10",
79+
"X-Fern-SDK-Version": "0.0.11",
80+
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.11",
7781
"X-Fern-Runtime": core.RUNTIME.type,
7882
"X-Fern-Runtime-Version": core.RUNTIME.version,
7983
...(await this._getCustomAuthorizationHeaders()),
@@ -156,8 +160,8 @@ export class Referrals {
156160
headers: {
157161
"X-Fern-Language": "JavaScript",
158162
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
159-
"X-Fern-SDK-Version": "0.0.10",
160-
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.10",
163+
"X-Fern-SDK-Version": "0.0.11",
164+
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.11",
161165
"X-Fern-Runtime": core.RUNTIME.type,
162166
"X-Fern-Runtime-Version": core.RUNTIME.version,
163167
...(await this._getCustomAuthorizationHeaders()),
@@ -225,8 +229,8 @@ export class Referrals {
225229
headers: {
226230
"X-Fern-Language": "JavaScript",
227231
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
228-
"X-Fern-SDK-Version": "0.0.10",
229-
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.10",
232+
"X-Fern-SDK-Version": "0.0.11",
233+
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.11",
230234
"X-Fern-Runtime": core.RUNTIME.type,
231235
"X-Fern-Runtime-Version": core.RUNTIME.version,
232236
...(await this._getCustomAuthorizationHeaders()),
@@ -288,8 +292,8 @@ export class Referrals {
288292
headers: {
289293
"X-Fern-Language": "JavaScript",
290294
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
291-
"X-Fern-SDK-Version": "0.0.10",
292-
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.10",
295+
"X-Fern-SDK-Version": "0.0.11",
296+
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.11",
293297
"X-Fern-Runtime": core.RUNTIME.type,
294298
"X-Fern-Runtime-Version": core.RUNTIME.version,
295299
...(await this._getCustomAuthorizationHeaders()),
@@ -352,8 +356,8 @@ export class Referrals {
352356
headers: {
353357
"X-Fern-Language": "JavaScript",
354358
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
355-
"X-Fern-SDK-Version": "0.0.10",
356-
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.10",
359+
"X-Fern-SDK-Version": "0.0.11",
360+
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.11",
357361
"X-Fern-Runtime": core.RUNTIME.type,
358362
"X-Fern-Runtime-Version": core.RUNTIME.version,
359363
...(await this._getCustomAuthorizationHeaders()),
@@ -419,8 +423,8 @@ export class Referrals {
419423
headers: {
420424
"X-Fern-Language": "JavaScript",
421425
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
422-
"X-Fern-SDK-Version": "0.0.10",
423-
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.10",
426+
"X-Fern-SDK-Version": "0.0.11",
427+
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.11",
424428
"X-Fern-Runtime": core.RUNTIME.type,
425429
"X-Fern-Runtime-Version": core.RUNTIME.version,
426430
...(await this._getCustomAuthorizationHeaders()),
@@ -486,8 +490,8 @@ export class Referrals {
486490
headers: {
487491
"X-Fern-Language": "JavaScript",
488492
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
489-
"X-Fern-SDK-Version": "0.0.10",
490-
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.10",
493+
"X-Fern-SDK-Version": "0.0.11",
494+
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.11",
491495
"X-Fern-Runtime": core.RUNTIME.type,
492496
"X-Fern-Runtime-Version": core.RUNTIME.version,
493497
...(await this._getCustomAuthorizationHeaders()),
@@ -553,8 +557,8 @@ export class Referrals {
553557
headers: {
554558
"X-Fern-Language": "JavaScript",
555559
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
556-
"X-Fern-SDK-Version": "0.0.10",
557-
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.10",
560+
"X-Fern-SDK-Version": "0.0.11",
561+
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.11",
558562
"X-Fern-Runtime": core.RUNTIME.type,
559563
"X-Fern-Runtime-Version": core.RUNTIME.version,
560564
...(await this._getCustomAuthorizationHeaders()),
@@ -616,8 +620,8 @@ export class Referrals {
616620
headers: {
617621
"X-Fern-Language": "JavaScript",
618622
"X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk",
619-
"X-Fern-SDK-Version": "0.0.10",
620-
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.10",
623+
"X-Fern-SDK-Version": "0.0.11",
624+
"User-Agent": "@opengovsg/refx-ts-sdk/0.0.11",
621625
"X-Fern-Runtime": core.RUNTIME.type,
622626
"X-Fern-Runtime-Version": core.RUNTIME.version,
623627
...(await this._getCustomAuthorizationHeaders()),

src/api/resources/referrals/client/requests/ReferralsListRequest.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,18 @@ import * as ReferralExchange from "../../../../index";
77
/**
88
* @example
99
* {
10-
* offset: 1.1,
11-
* pageSize: 1.1,
1210
* hciCode: "hciCode"
1311
* }
1412
*/
1513
export interface ReferralsListRequest {
1614
/**
1715
* Offset for pagination
1816
*/
19-
offset: number;
17+
offset?: number;
2018
/**
2119
* Number of items per page
2220
*/
23-
pageSize: number;
21+
pageSize?: number;
2422
/**
2523
* To identify the requesting institution
2624
*/

0 commit comments

Comments
 (0)