@opengovsg/refx-ts-sdk 0.0.0-develop-1750842664 → 0.0.0-develop-1753420242

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +9 -4
  3. package/README.md +0 -7
  4. package/api/resources/aac/client/Client.d.ts +52 -0
  5. package/api/resources/aac/client/Client.js +172 -0
  6. package/api/resources/aac/client/index.d.ts +1 -0
  7. package/api/resources/aac/client/index.js +17 -0
  8. package/api/resources/aac/client/requests/UpdateAacBoundaryReq.d.ts +9 -0
  9. package/api/resources/aac/client/requests/UpdateAacBoundaryReq.js +5 -0
  10. package/api/resources/aac/client/requests/UpdateAacReq.d.ts +9 -0
  11. package/api/resources/aac/client/requests/UpdateAacReq.js +5 -0
  12. package/api/resources/aac/client/requests/index.d.ts +2 -0
  13. package/api/resources/aac/client/requests/index.js +2 -0
  14. package/api/resources/aac/index.d.ts +1 -0
  15. package/api/resources/aac/index.js +17 -0
  16. package/api/resources/eligibility/client/Client.js +1 -1
  17. package/api/resources/health/client/Client.js +1 -1
  18. package/api/resources/index.d.ts +2 -0
  19. package/api/resources/index.js +3 -1
  20. package/api/resources/links/client/Client.js +1 -1
  21. package/api/resources/notes/client/Client.js +1 -1
  22. package/api/resources/offerings/client/Client.js +3 -3
  23. package/api/resources/public/client/Client.js +1 -1
  24. package/api/resources/referrals/client/Client.d.ts +1 -8
  25. package/api/resources/referrals/client/Client.js +10 -17
  26. package/api/resources/referrals/client/requests/CreateReferralReq.d.ts +1 -8
  27. package/api/resources/webhooks/client/Client.js +2 -2
  28. package/api/types/CreatePatientReq.d.ts +1 -1
  29. package/api/types/FullReferralDto.d.ts +2 -0
  30. package/api/types/GetReferralPatientDto.d.ts +1 -1
  31. package/api/types/PublicReferralDto.d.ts +2 -0
  32. package/api/types/ReferralDto.d.ts +2 -0
  33. package/api/types/System.d.ts +2 -1
  34. package/api/types/System.js +1 -0
  35. package/api/types/TimelineEventDtoSystem.d.ts +2 -1
  36. package/api/types/TimelineEventDtoSystem.js +1 -0
  37. package/dist/Client.d.ts +3 -0
  38. package/dist/Client.js +9 -4
  39. package/dist/api/resources/aac/client/Client.d.ts +52 -0
  40. package/dist/api/resources/aac/client/Client.js +172 -0
  41. package/dist/api/resources/aac/client/index.d.ts +1 -0
  42. package/dist/api/resources/aac/client/index.js +17 -0
  43. package/dist/api/resources/aac/client/requests/UpdateAacBoundaryReq.d.ts +9 -0
  44. package/dist/api/resources/aac/client/requests/UpdateAacBoundaryReq.js +5 -0
  45. package/dist/api/resources/aac/client/requests/UpdateAacReq.d.ts +9 -0
  46. package/dist/api/resources/aac/client/requests/UpdateAacReq.js +5 -0
  47. package/dist/api/resources/aac/client/requests/index.d.ts +2 -0
  48. package/dist/api/resources/aac/client/requests/index.js +2 -0
  49. package/dist/api/resources/aac/index.d.ts +1 -0
  50. package/dist/api/resources/aac/index.js +17 -0
  51. package/dist/api/resources/eligibility/client/Client.js +1 -1
  52. package/dist/api/resources/health/client/Client.js +1 -1
  53. package/dist/api/resources/index.d.ts +2 -0
  54. package/dist/api/resources/index.js +3 -1
  55. package/dist/api/resources/links/client/Client.js +1 -1
  56. package/dist/api/resources/notes/client/Client.js +1 -1
  57. package/dist/api/resources/offerings/client/Client.js +3 -3
  58. package/dist/api/resources/public/client/Client.js +1 -1
  59. package/dist/api/resources/referrals/client/Client.d.ts +1 -8
  60. package/dist/api/resources/referrals/client/Client.js +10 -17
  61. package/dist/api/resources/referrals/client/requests/CreateReferralReq.d.ts +1 -8
  62. package/dist/api/resources/webhooks/client/Client.js +2 -2
  63. package/dist/api/types/CreatePatientReq.d.ts +1 -1
  64. package/dist/api/types/FullReferralDto.d.ts +2 -0
  65. package/dist/api/types/GetReferralPatientDto.d.ts +1 -1
  66. package/dist/api/types/PublicReferralDto.d.ts +2 -0
  67. package/dist/api/types/ReferralDto.d.ts +2 -0
  68. package/dist/api/types/System.d.ts +2 -1
  69. package/dist/api/types/System.js +1 -0
  70. package/dist/api/types/TimelineEventDtoSystem.d.ts +2 -1
  71. package/dist/api/types/TimelineEventDtoSystem.js +1 -0
  72. package/dist/version.d.ts +1 -1
  73. package/dist/version.js +1 -1
  74. package/package.json +1 -1
  75. package/reference.md +98 -7
  76. package/version.d.ts +1 -1
  77. package/version.js +1 -1
@@ -107,7 +107,7 @@ class Referrals {
107
107
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
108
108
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/referrals"),
109
109
  method: "GET",
110
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1750842664", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1750842664", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
110
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1753420242", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1753420242", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
111
111
  contentType: "application/json",
112
112
  queryParameters: _queryParams,
113
113
  requestType: "json",
@@ -158,14 +158,7 @@ class Referrals {
158
158
  * name: "name",
159
159
  * phoneNumber: "91234567",
160
160
  * dob: "1990-01-01",
161
- * gender: "Male",
162
- * address: {
163
- * postalCode: "postalCode",
164
- * block: "block",
165
- * streetName: "streetName",
166
- * floorNumber: "floorNumber",
167
- * unitNumber: "unitNumber"
168
- * }
161
+ * gender: "Male"
169
162
  * },
170
163
  * offeringId: "offeringId",
171
164
  * senderHciCode: "senderHciCode",
@@ -190,7 +183,7 @@ class Referrals {
190
183
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
191
184
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/referrals"),
192
185
  method: "POST",
193
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1750842664", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1750842664", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
186
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1753420242", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1753420242", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
194
187
  contentType: "application/json",
195
188
  requestType: "json",
196
189
  body: request,
@@ -256,7 +249,7 @@ class Referrals {
256
249
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
257
250
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}`),
258
251
  method: "GET",
259
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1750842664", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1750842664", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
252
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1753420242", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1753420242", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
260
253
  contentType: "application/json",
261
254
  queryParameters: _queryParams,
262
255
  requestType: "json",
@@ -310,7 +303,7 @@ class Referrals {
310
303
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
311
304
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}`),
312
305
  method: "DELETE",
313
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1750842664", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1750842664", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
306
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1753420242", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1753420242", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
314
307
  contentType: "application/json",
315
308
  requestType: "json",
316
309
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -362,7 +355,7 @@ class Referrals {
362
355
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
363
356
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/cancel`),
364
357
  method: "POST",
365
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1750842664", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1750842664", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
358
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1753420242", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1753420242", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
366
359
  contentType: "application/json",
367
360
  requestType: "json",
368
361
  body: request,
@@ -417,7 +410,7 @@ class Referrals {
417
410
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
418
411
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/amend`),
419
412
  method: "POST",
420
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1750842664", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1750842664", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
413
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1753420242", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1753420242", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
421
414
  contentType: "application/json",
422
415
  requestType: "json",
423
416
  body: request,
@@ -470,7 +463,7 @@ class Referrals {
470
463
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
471
464
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/accept`),
472
465
  method: "POST",
473
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1750842664", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1750842664", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
466
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1753420242", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1753420242", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
474
467
  contentType: "application/json",
475
468
  requestType: "json",
476
469
  body: request,
@@ -525,7 +518,7 @@ class Referrals {
525
518
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
526
519
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/reject`),
527
520
  method: "POST",
528
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1750842664", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1750842664", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
521
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1753420242", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1753420242", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
529
522
  contentType: "application/json",
530
523
  requestType: "json",
531
524
  body: request,
@@ -577,7 +570,7 @@ class Referrals {
577
570
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
578
571
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/back-to-draft`),
579
572
  method: "POST",
580
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1750842664", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1750842664", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
573
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1753420242", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1753420242", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
581
574
  contentType: "application/json",
582
575
  requestType: "json",
583
576
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -10,14 +10,7 @@ import * as ReferralExchange from "../../../../index";
10
10
  * name: "name",
11
11
  * phoneNumber: "91234567",
12
12
  * dob: "1990-01-01",
13
- * gender: "Male",
14
- * address: {
15
- * postalCode: "postalCode",
16
- * block: "block",
17
- * streetName: "streetName",
18
- * floorNumber: "floorNumber",
19
- * unitNumber: "unitNumber"
20
- * }
13
+ * gender: "Male"
21
14
  * },
22
15
  * offeringId: "offeringId",
23
16
  * senderHciCode: "senderHciCode",
@@ -69,7 +69,7 @@ class Webhooks {
69
69
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
70
70
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/webhooks/formsg/singhealth-profile"),
71
71
  method: "POST",
72
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1750842664", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1750842664", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
72
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1753420242", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1753420242", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
73
73
  contentType: "application/json",
74
74
  requestType: "json",
75
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -113,7 +113,7 @@ class Webhooks {
113
113
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
114
114
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/webhooks/formsg/form-submission/${encodeURIComponent(formId)}`),
115
115
  method: "POST",
116
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1750842664", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1750842664", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1753420242", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1753420242", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
117
  contentType: "application/json",
118
118
  requestType: "json",
119
119
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -13,5 +13,5 @@ export interface CreatePatientReq {
13
13
  dob: string;
14
14
  /** Patient gender */
15
15
  gender: ReferralExchange.CreatePatientReqGender;
16
- address: ReferralExchange.CreateAddressReq;
16
+ address?: ReferralExchange.CreateAddressReq;
17
17
  }
@@ -13,6 +13,8 @@ export interface FullReferralDto {
13
13
  isUrgent: boolean;
14
14
  /** Created at (ISO datetime) */
15
15
  createdAt: string;
16
+ /** Updated at (ISO datetime) */
17
+ updatedAt: string;
16
18
  formResponses: ReferralExchange.FormResponse[];
17
19
  /** List of forms required to complete the referral */
18
20
  forms?: ReferralExchange.Form[];
@@ -13,7 +13,7 @@ export interface GetReferralPatientDto {
13
13
  dob: string;
14
14
  /** Patient gender */
15
15
  gender: ReferralExchange.GetReferralPatientDtoGender;
16
- address: ReferralExchange.CreateAddressReq;
16
+ address?: ReferralExchange.CreateAddressReq;
17
17
  /** Current CHAS status */
18
18
  chasStatus: string;
19
19
  }
@@ -13,6 +13,8 @@ export interface PublicReferralDto {
13
13
  isUrgent: boolean;
14
14
  /** Created at (ISO datetime) */
15
15
  createdAt: string;
16
+ /** Updated at (ISO datetime) */
17
+ updatedAt: string;
16
18
  formResponses: ReferralExchange.FormResponse[];
17
19
  /** List of forms required to complete the referral */
18
20
  forms?: ReferralExchange.Form[];
@@ -13,6 +13,8 @@ export interface ReferralDto {
13
13
  isUrgent: boolean;
14
14
  /** Created at (ISO datetime) */
15
15
  createdAt: string;
16
+ /** Updated at (ISO datetime) */
17
+ updatedAt: string;
16
18
  formResponses: ReferralExchange.FormResponse[];
17
19
  /** List of forms required to complete the referral */
18
20
  forms?: ReferralExchange.Form[];
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type System = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright" | "FYI";
4
+ export type System = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright" | "FYI" | "AAC";
5
5
  export declare const System: {
6
6
  readonly Has: "HAS";
7
7
  readonly PartnersBuddy: "PartnersBuddy";
@@ -9,4 +9,5 @@ export declare const System: {
9
9
  readonly EmailAck: "EmailAck";
10
10
  readonly Bright: "Bright";
11
11
  readonly Fyi: "FYI";
12
+ readonly Aac: "AAC";
12
13
  };
@@ -11,4 +11,5 @@ exports.System = {
11
11
  EmailAck: "EmailAck",
12
12
  Bright: "Bright",
13
13
  Fyi: "FYI",
14
+ Aac: "AAC",
14
15
  };
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * System that produced the event
6
6
  */
7
- export type TimelineEventDtoSystem = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright" | "FYI";
7
+ export type TimelineEventDtoSystem = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright" | "FYI" | "AAC";
8
8
  export declare const TimelineEventDtoSystem: {
9
9
  readonly Has: "HAS";
10
10
  readonly PartnersBuddy: "PartnersBuddy";
@@ -12,4 +12,5 @@ export declare const TimelineEventDtoSystem: {
12
12
  readonly EmailAck: "EmailAck";
13
13
  readonly Bright: "Bright";
14
14
  readonly Fyi: "FYI";
15
+ readonly Aac: "AAC";
15
16
  };
@@ -11,4 +11,5 @@ exports.TimelineEventDtoSystem = {
11
11
  EmailAck: "EmailAck",
12
12
  Bright: "Bright",
13
13
  Fyi: "FYI",
14
+ Aac: "AAC",
14
15
  };
package/dist/Client.d.ts CHANGED
@@ -9,6 +9,7 @@ import { Notes } from "./api/resources/notes/client/Client";
9
9
  import { Offerings } from "./api/resources/offerings/client/Client";
10
10
  import { Links } from "./api/resources/links/client/Client";
11
11
  import { Public } from "./api/resources/public/client/Client";
12
+ import { Aac } from "./api/resources/aac/client/Client";
12
13
  import { Webhooks } from "./api/resources/webhooks/client/Client";
13
14
  import { Health } from "./api/resources/health/client/Client";
14
15
  export declare namespace ReferralExchangeClient {
@@ -38,6 +39,7 @@ export declare class ReferralExchangeClient {
38
39
  protected _offerings: Offerings | undefined;
39
40
  protected _links: Links | undefined;
40
41
  protected _public: Public | undefined;
42
+ protected _aac: Aac | undefined;
41
43
  protected _webhooks: Webhooks | undefined;
42
44
  protected _health: Health | undefined;
43
45
  constructor(_options?: ReferralExchangeClient.Options);
@@ -47,6 +49,7 @@ export declare class ReferralExchangeClient {
47
49
  get offerings(): Offerings;
48
50
  get links(): Links;
49
51
  get public(): Public;
52
+ get aac(): Aac;
50
53
  get webhooks(): Webhooks;
51
54
  get health(): Health;
52
55
  }
package/dist/Client.js CHANGED
@@ -10,8 +10,9 @@ const Client_3 = require("./api/resources/notes/client/Client");
10
10
  const Client_4 = require("./api/resources/offerings/client/Client");
11
11
  const Client_5 = require("./api/resources/links/client/Client");
12
12
  const Client_6 = require("./api/resources/public/client/Client");
13
- const Client_7 = require("./api/resources/webhooks/client/Client");
14
- const Client_8 = require("./api/resources/health/client/Client");
13
+ const Client_7 = require("./api/resources/aac/client/Client");
14
+ const Client_8 = require("./api/resources/webhooks/client/Client");
15
+ const Client_9 = require("./api/resources/health/client/Client");
15
16
  class ReferralExchangeClient {
16
17
  constructor(_options = {}) {
17
18
  this._options = _options;
@@ -40,13 +41,17 @@ class ReferralExchangeClient {
40
41
  var _a;
41
42
  return ((_a = this._public) !== null && _a !== void 0 ? _a : (this._public = new Client_6.Public(this._options)));
42
43
  }
44
+ get aac() {
45
+ var _a;
46
+ return ((_a = this._aac) !== null && _a !== void 0 ? _a : (this._aac = new Client_7.Aac(this._options)));
47
+ }
43
48
  get webhooks() {
44
49
  var _a;
45
- return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_7.Webhooks(this._options)));
50
+ return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_8.Webhooks(this._options)));
46
51
  }
47
52
  get health() {
48
53
  var _a;
49
- return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new Client_8.Health(this._options)));
54
+ return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new Client_9.Health(this._options)));
50
55
  }
51
56
  }
52
57
  exports.ReferralExchangeClient = ReferralExchangeClient;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as ReferralExchange from "../../../index";
7
+ export declare namespace Aac {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ReferralExchangeEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ apiKey?: core.Supplier<string | undefined>;
13
+ fetcher?: core.FetchFunction;
14
+ }
15
+ interface RequestOptions {
16
+ /** The maximum time to wait for a response in seconds. */
17
+ timeoutInSeconds?: number;
18
+ /** The number of times to retry the request. Defaults to 2. */
19
+ maxRetries?: number;
20
+ /** A hook to abort the request. */
21
+ abortSignal?: AbortSignal;
22
+ /** Additional headers to include in the request. */
23
+ headers?: Record<string, string>;
24
+ }
25
+ }
26
+ export declare class Aac {
27
+ protected readonly _options: Aac.Options;
28
+ constructor(_options?: Aac.Options);
29
+ /**
30
+ * @param {ReferralExchange.UpdateAacReq} request
31
+ * @param {Aac.RequestOptions} requestOptions - Request-specific configuration.
32
+ *
33
+ * @throws {@link ReferralExchange.UnauthorizedError}
34
+ *
35
+ * @example
36
+ * await client.aac.aacControllerUpsertAac()
37
+ */
38
+ aacControllerUpsertAac(request?: ReferralExchange.UpdateAacReq, requestOptions?: Aac.RequestOptions): Promise<void>;
39
+ /**
40
+ * @param {ReferralExchange.UpdateAacBoundaryReq} request
41
+ * @param {Aac.RequestOptions} requestOptions - Request-specific configuration.
42
+ *
43
+ * @throws {@link ReferralExchange.UnauthorizedError}
44
+ *
45
+ * @example
46
+ * await client.aac.aacControllerUpsertAacBoundary()
47
+ */
48
+ aacControllerUpsertAacBoundary(request?: ReferralExchange.UpdateAacBoundaryReq, requestOptions?: Aac.RequestOptions): Promise<void>;
49
+ protected _getCustomAuthorizationHeaders(): Promise<{
50
+ Authorization: string | undefined;
51
+ }>;
52
+ }
@@ -0,0 +1,172 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Aac = void 0;
52
+ const environments = __importStar(require("../../../../environments"));
53
+ const core = __importStar(require("../../../../core"));
54
+ const ReferralExchange = __importStar(require("../../../index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
+ const errors = __importStar(require("../../../../errors/index"));
57
+ class Aac {
58
+ constructor(_options = {}) {
59
+ this._options = _options;
60
+ }
61
+ /**
62
+ * @param {ReferralExchange.UpdateAacReq} request
63
+ * @param {Aac.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link ReferralExchange.UnauthorizedError}
66
+ *
67
+ * @example
68
+ * await client.aac.aacControllerUpsertAac()
69
+ */
70
+ aacControllerUpsertAac() {
71
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
72
+ var _a, _b, _c;
73
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
74
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/aac/notify-asg-aac"),
75
+ method: "POST",
76
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1753420242", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1753420242", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
+ contentType: "application/json",
78
+ requestType: "json",
79
+ body: request,
80
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
81
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
82
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
83
+ });
84
+ if (_response.ok) {
85
+ return;
86
+ }
87
+ if (_response.error.reason === "status-code") {
88
+ switch (_response.error.statusCode) {
89
+ case 401:
90
+ throw new ReferralExchange.UnauthorizedError(_response.error.body);
91
+ default:
92
+ throw new errors.ReferralExchangeError({
93
+ statusCode: _response.error.statusCode,
94
+ body: _response.error.body,
95
+ });
96
+ }
97
+ }
98
+ switch (_response.error.reason) {
99
+ case "non-json":
100
+ throw new errors.ReferralExchangeError({
101
+ statusCode: _response.error.statusCode,
102
+ body: _response.error.rawBody,
103
+ });
104
+ case "timeout":
105
+ throw new errors.ReferralExchangeTimeoutError("Timeout exceeded when calling POST /api/v1/aac/notify-asg-aac.");
106
+ case "unknown":
107
+ throw new errors.ReferralExchangeError({
108
+ message: _response.error.errorMessage,
109
+ });
110
+ }
111
+ });
112
+ }
113
+ /**
114
+ * @param {ReferralExchange.UpdateAacBoundaryReq} request
115
+ * @param {Aac.RequestOptions} requestOptions - Request-specific configuration.
116
+ *
117
+ * @throws {@link ReferralExchange.UnauthorizedError}
118
+ *
119
+ * @example
120
+ * await client.aac.aacControllerUpsertAacBoundary()
121
+ */
122
+ aacControllerUpsertAacBoundary() {
123
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
124
+ var _a, _b, _c;
125
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
126
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/aac/notify-asg-aac-service-boundary"),
127
+ method: "POST",
128
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1753420242", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1753420242", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
129
+ contentType: "application/json",
130
+ requestType: "json",
131
+ body: request,
132
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
133
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
134
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
135
+ });
136
+ if (_response.ok) {
137
+ return;
138
+ }
139
+ if (_response.error.reason === "status-code") {
140
+ switch (_response.error.statusCode) {
141
+ case 401:
142
+ throw new ReferralExchange.UnauthorizedError(_response.error.body);
143
+ default:
144
+ throw new errors.ReferralExchangeError({
145
+ statusCode: _response.error.statusCode,
146
+ body: _response.error.body,
147
+ });
148
+ }
149
+ }
150
+ switch (_response.error.reason) {
151
+ case "non-json":
152
+ throw new errors.ReferralExchangeError({
153
+ statusCode: _response.error.statusCode,
154
+ body: _response.error.rawBody,
155
+ });
156
+ case "timeout":
157
+ throw new errors.ReferralExchangeTimeoutError("Timeout exceeded when calling POST /api/v1/aac/notify-asg-aac-service-boundary.");
158
+ case "unknown":
159
+ throw new errors.ReferralExchangeError({
160
+ message: _response.error.errorMessage,
161
+ });
162
+ }
163
+ });
164
+ }
165
+ _getCustomAuthorizationHeaders() {
166
+ return __awaiter(this, void 0, void 0, function* () {
167
+ const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
168
+ return { Authorization: apiKeyValue };
169
+ });
170
+ }
171
+ }
172
+ exports.Aac = Aac;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface UpdateAacBoundaryReq {
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface UpdateAacReq {
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { type UpdateAacReq } from "./UpdateAacReq";
2
+ export { type UpdateAacBoundaryReq } from "./UpdateAacBoundaryReq";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -89,7 +89,7 @@ class Eligibility {
89
89
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
90
90
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/eligibility"),
91
91
  method: "GET",
92
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1750842664", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1750842664", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1753420242", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1753420242", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",