@opengovsg/refx-ts-sdk 0.0.0-develop-1751434805 → 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 (68) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +9 -4
  3. package/api/resources/aac/client/Client.d.ts +52 -0
  4. package/api/resources/aac/client/Client.js +172 -0
  5. package/api/resources/aac/client/index.d.ts +1 -0
  6. package/api/resources/aac/client/index.js +17 -0
  7. package/api/resources/aac/client/requests/UpdateAacBoundaryReq.d.ts +9 -0
  8. package/api/resources/aac/client/requests/UpdateAacBoundaryReq.js +5 -0
  9. package/api/resources/aac/client/requests/UpdateAacReq.d.ts +9 -0
  10. package/api/resources/aac/client/requests/UpdateAacReq.js +5 -0
  11. package/api/resources/aac/client/requests/index.d.ts +2 -0
  12. package/api/resources/aac/client/requests/index.js +2 -0
  13. package/api/resources/aac/index.d.ts +1 -0
  14. package/api/resources/aac/index.js +17 -0
  15. package/api/resources/eligibility/client/Client.js +1 -1
  16. package/api/resources/health/client/Client.js +1 -1
  17. package/api/resources/index.d.ts +2 -0
  18. package/api/resources/index.js +3 -1
  19. package/api/resources/links/client/Client.js +1 -1
  20. package/api/resources/notes/client/Client.js +1 -1
  21. package/api/resources/offerings/client/Client.js +3 -3
  22. package/api/resources/public/client/Client.js +1 -1
  23. package/api/resources/referrals/client/Client.js +9 -9
  24. package/api/resources/webhooks/client/Client.js +2 -2
  25. package/api/types/FullReferralDto.d.ts +2 -0
  26. package/api/types/PublicReferralDto.d.ts +2 -0
  27. package/api/types/ReferralDto.d.ts +2 -0
  28. package/api/types/System.d.ts +2 -1
  29. package/api/types/System.js +1 -0
  30. package/api/types/TimelineEventDtoSystem.d.ts +2 -1
  31. package/api/types/TimelineEventDtoSystem.js +1 -0
  32. package/dist/Client.d.ts +3 -0
  33. package/dist/Client.js +9 -4
  34. package/dist/api/resources/aac/client/Client.d.ts +52 -0
  35. package/dist/api/resources/aac/client/Client.js +172 -0
  36. package/dist/api/resources/aac/client/index.d.ts +1 -0
  37. package/dist/api/resources/aac/client/index.js +17 -0
  38. package/dist/api/resources/aac/client/requests/UpdateAacBoundaryReq.d.ts +9 -0
  39. package/dist/api/resources/aac/client/requests/UpdateAacBoundaryReq.js +5 -0
  40. package/dist/api/resources/aac/client/requests/UpdateAacReq.d.ts +9 -0
  41. package/dist/api/resources/aac/client/requests/UpdateAacReq.js +5 -0
  42. package/dist/api/resources/aac/client/requests/index.d.ts +2 -0
  43. package/dist/api/resources/aac/client/requests/index.js +2 -0
  44. package/dist/api/resources/aac/index.d.ts +1 -0
  45. package/dist/api/resources/aac/index.js +17 -0
  46. package/dist/api/resources/eligibility/client/Client.js +1 -1
  47. package/dist/api/resources/health/client/Client.js +1 -1
  48. package/dist/api/resources/index.d.ts +2 -0
  49. package/dist/api/resources/index.js +3 -1
  50. package/dist/api/resources/links/client/Client.js +1 -1
  51. package/dist/api/resources/notes/client/Client.js +1 -1
  52. package/dist/api/resources/offerings/client/Client.js +3 -3
  53. package/dist/api/resources/public/client/Client.js +1 -1
  54. package/dist/api/resources/referrals/client/Client.js +9 -9
  55. package/dist/api/resources/webhooks/client/Client.js +2 -2
  56. package/dist/api/types/FullReferralDto.d.ts +2 -0
  57. package/dist/api/types/PublicReferralDto.d.ts +2 -0
  58. package/dist/api/types/ReferralDto.d.ts +2 -0
  59. package/dist/api/types/System.d.ts +2 -1
  60. package/dist/api/types/System.js +1 -0
  61. package/dist/api/types/TimelineEventDtoSystem.d.ts +2 -1
  62. package/dist/api/types/TimelineEventDtoSystem.js +1 -0
  63. package/dist/version.d.ts +1 -1
  64. package/dist/version.js +1 -1
  65. package/package.json +1 -1
  66. package/reference.md +98 -0
  67. package/version.d.ts +1 -1
  68. 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-1751434805", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1751434805", "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",
@@ -183,7 +183,7 @@ class Referrals {
183
183
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
184
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"),
185
185
  method: "POST",
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-1751434805", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1751434805", "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),
187
187
  contentType: "application/json",
188
188
  requestType: "json",
189
189
  body: request,
@@ -249,7 +249,7 @@ class Referrals {
249
249
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
250
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)}`),
251
251
  method: "GET",
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-1751434805", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1751434805", "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),
253
253
  contentType: "application/json",
254
254
  queryParameters: _queryParams,
255
255
  requestType: "json",
@@ -303,7 +303,7 @@ class Referrals {
303
303
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
304
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)}`),
305
305
  method: "DELETE",
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-1751434805", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1751434805", "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),
307
307
  contentType: "application/json",
308
308
  requestType: "json",
309
309
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -355,7 +355,7 @@ class Referrals {
355
355
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
356
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`),
357
357
  method: "POST",
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-1751434805", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1751434805", "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),
359
359
  contentType: "application/json",
360
360
  requestType: "json",
361
361
  body: request,
@@ -410,7 +410,7 @@ class Referrals {
410
410
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
411
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`),
412
412
  method: "POST",
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-1751434805", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1751434805", "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),
414
414
  contentType: "application/json",
415
415
  requestType: "json",
416
416
  body: request,
@@ -463,7 +463,7 @@ class Referrals {
463
463
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
464
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`),
465
465
  method: "POST",
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-1751434805", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1751434805", "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),
467
467
  contentType: "application/json",
468
468
  requestType: "json",
469
469
  body: request,
@@ -518,7 +518,7 @@ class Referrals {
518
518
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
519
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`),
520
520
  method: "POST",
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-1751434805", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1751434805", "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),
522
522
  contentType: "application/json",
523
523
  requestType: "json",
524
524
  body: request,
@@ -570,7 +570,7 @@ class Referrals {
570
570
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
571
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`),
572
572
  method: "POST",
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-1751434805", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1751434805", "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),
574
574
  contentType: "application/json",
575
575
  requestType: "json",
576
576
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -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-1751434805", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1751434805", "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-1751434805", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1751434805", "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,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,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/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.0-develop-1751434805";
1
+ export declare const SDK_VERSION = "0.0.0-develop-1753420242";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.0-develop-1751434805";
4
+ exports.SDK_VERSION = "0.0.0-develop-1753420242";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengovsg/refx-ts-sdk",
3
- "version": "0.0.0-develop-1751434805",
3
+ "version": "0.0.0-develop-1753420242",
4
4
  "private": false,
5
5
  "repository": "https://github.com/opengovsg/refer-ts-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -889,6 +889,104 @@ await client.public.getReferral("referralId");
889
889
  </dl>
890
890
  </details>
891
891
 
892
+ ## Aac
893
+
894
+ <details><summary><code>client.aac.<a href="/src/api/resources/aac/client/Client.ts">aacControllerUpsertAac</a>({ ...params }) -> void</code></summary>
895
+ <dl>
896
+ <dd>
897
+
898
+ #### 🔌 Usage
899
+
900
+ <dl>
901
+ <dd>
902
+
903
+ <dl>
904
+ <dd>
905
+
906
+ ```typescript
907
+ await client.aac.aacControllerUpsertAac();
908
+ ```
909
+
910
+ </dd>
911
+ </dl>
912
+ </dd>
913
+ </dl>
914
+
915
+ #### ⚙️ Parameters
916
+
917
+ <dl>
918
+ <dd>
919
+
920
+ <dl>
921
+ <dd>
922
+
923
+ **request:** `ReferralExchange.UpdateAacReq`
924
+
925
+ </dd>
926
+ </dl>
927
+
928
+ <dl>
929
+ <dd>
930
+
931
+ **requestOptions:** `Aac.RequestOptions`
932
+
933
+ </dd>
934
+ </dl>
935
+ </dd>
936
+ </dl>
937
+
938
+ </dd>
939
+ </dl>
940
+ </details>
941
+
942
+ <details><summary><code>client.aac.<a href="/src/api/resources/aac/client/Client.ts">aacControllerUpsertAacBoundary</a>({ ...params }) -> void</code></summary>
943
+ <dl>
944
+ <dd>
945
+
946
+ #### 🔌 Usage
947
+
948
+ <dl>
949
+ <dd>
950
+
951
+ <dl>
952
+ <dd>
953
+
954
+ ```typescript
955
+ await client.aac.aacControllerUpsertAacBoundary();
956
+ ```
957
+
958
+ </dd>
959
+ </dl>
960
+ </dd>
961
+ </dl>
962
+
963
+ #### ⚙️ Parameters
964
+
965
+ <dl>
966
+ <dd>
967
+
968
+ <dl>
969
+ <dd>
970
+
971
+ **request:** `ReferralExchange.UpdateAacBoundaryReq`
972
+
973
+ </dd>
974
+ </dl>
975
+
976
+ <dl>
977
+ <dd>
978
+
979
+ **requestOptions:** `Aac.RequestOptions`
980
+
981
+ </dd>
982
+ </dl>
983
+ </dd>
984
+ </dl>
985
+
986
+ </dd>
987
+ </dl>
988
+ </details>
989
+
892
990
  ## Webhooks
893
991
 
894
992
  <details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">submitSingHealthFormsg</a>() -> void</code></summary>
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.0-develop-1751434805";
1
+ export declare const SDK_VERSION = "0.0.0-develop-1753420242";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.0-develop-1751434805";
4
+ exports.SDK_VERSION = "0.0.0-develop-1753420242";