@opengovsg/refx-ts-sdk 0.0.10 → 0.0.12

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 (92) hide show
  1. package/api/resources/eligibility/client/Client.js +1 -1
  2. package/api/resources/health/client/Client.js +1 -1
  3. package/api/resources/notes/client/Client.js +1 -1
  4. package/api/resources/notes/client/requests/CreateNoteReq.d.ts +1 -1
  5. package/api/resources/offerings/client/Client.js +3 -3
  6. package/api/resources/public/client/Client.js +1 -1
  7. package/api/resources/referrals/client/Client.d.ts +0 -2
  8. package/api/resources/referrals/client/Client.js +15 -13
  9. package/api/resources/referrals/client/requests/ReferralsListRequest.d.ts +2 -4
  10. package/api/resources/webhooks/client/Client.d.ts +4 -4
  11. package/api/resources/webhooks/client/Client.js +6 -6
  12. package/api/types/AttachmentDto.d.ts +1 -0
  13. package/api/types/InstitutionCoreDto.d.ts +1 -1
  14. package/api/types/OfferingFullDto.d.ts +1 -1
  15. package/api/types/PaginatedQuery.d.ts +2 -2
  16. package/api/types/{InstitutionCoreDtoSystem.d.ts → System.d.ts} +2 -2
  17. package/{dist/api/types/InstitutionCoreDtoSystem.js → api/types/System.js} +2 -2
  18. package/api/types/TimelineEventDto.d.ts +5 -1
  19. package/api/types/TimelineEventDtoSystem.d.ts +3 -0
  20. package/api/types/index.d.ts +1 -12
  21. package/api/types/index.js +1 -12
  22. package/dist/api/resources/eligibility/client/Client.js +1 -1
  23. package/dist/api/resources/health/client/Client.js +1 -1
  24. package/dist/api/resources/notes/client/Client.js +1 -1
  25. package/dist/api/resources/notes/client/requests/CreateNoteReq.d.ts +1 -1
  26. package/dist/api/resources/offerings/client/Client.js +3 -3
  27. package/dist/api/resources/public/client/Client.js +1 -1
  28. package/dist/api/resources/referrals/client/Client.d.ts +0 -2
  29. package/dist/api/resources/referrals/client/Client.js +15 -13
  30. package/dist/api/resources/referrals/client/requests/ReferralsListRequest.d.ts +2 -4
  31. package/dist/api/resources/webhooks/client/Client.d.ts +4 -4
  32. package/dist/api/resources/webhooks/client/Client.js +6 -6
  33. package/dist/api/types/AttachmentDto.d.ts +1 -0
  34. package/dist/api/types/InstitutionCoreDto.d.ts +1 -1
  35. package/dist/api/types/OfferingFullDto.d.ts +1 -1
  36. package/dist/api/types/PaginatedQuery.d.ts +2 -2
  37. package/dist/api/types/{InstitutionCoreDtoSystem.d.ts → System.d.ts} +2 -2
  38. package/{api/types/InstitutionCoreDtoSystem.js → dist/api/types/System.js} +2 -2
  39. package/dist/api/types/TimelineEventDto.d.ts +5 -1
  40. package/dist/api/types/TimelineEventDtoSystem.d.ts +3 -0
  41. package/dist/api/types/index.d.ts +1 -12
  42. package/dist/api/types/index.js +1 -12
  43. package/dist/version.d.ts +1 -1
  44. package/dist/version.js +1 -1
  45. package/package.json +1 -1
  46. package/reference.md +4 -6
  47. package/version.d.ts +1 -1
  48. package/version.js +1 -1
  49. package/api/types/CancelledEventMetadata.d.ts +0 -6
  50. package/api/types/CancelledEventMetadata.js +0 -5
  51. package/api/types/CreatedEventMetadata.d.ts +0 -6
  52. package/api/types/CreatedEventMetadata.js +0 -5
  53. package/api/types/EaReminderSentMetadata.d.ts +0 -6
  54. package/api/types/EaReminderSentMetadata.js +0 -5
  55. package/api/types/NoteCreatedMetadata.d.ts +0 -8
  56. package/api/types/NoteCreatedMetadata.js +0 -5
  57. package/api/types/ReferralAmendedMetadata.d.ts +0 -8
  58. package/api/types/ReferralAmendedMetadata.js +0 -5
  59. package/api/types/ReferralAmendedMetadataAfter.d.ts +0 -6
  60. package/api/types/ReferralAmendedMetadataAfter.js +0 -5
  61. package/api/types/ReferralAmendedMetadataBefore.d.ts +0 -6
  62. package/api/types/ReferralAmendedMetadataBefore.js +0 -5
  63. package/api/types/RejectedEventMetadata.d.ts +0 -7
  64. package/api/types/RejectedEventMetadata.js +0 -5
  65. package/api/types/RescheduleEventMetadata.d.ts +0 -8
  66. package/api/types/RescheduleEventMetadata.js +0 -5
  67. package/api/types/SingHealthPatientDetailsMetadata.d.ts +0 -7
  68. package/api/types/SingHealthPatientDetailsMetadata.js +0 -5
  69. package/api/types/TimelineEventDtoMetadata.d.ts +0 -5
  70. package/api/types/TimelineEventDtoMetadata.js +0 -5
  71. package/dist/api/types/CancelledEventMetadata.d.ts +0 -6
  72. package/dist/api/types/CancelledEventMetadata.js +0 -5
  73. package/dist/api/types/CreatedEventMetadata.d.ts +0 -6
  74. package/dist/api/types/CreatedEventMetadata.js +0 -5
  75. package/dist/api/types/EaReminderSentMetadata.d.ts +0 -6
  76. package/dist/api/types/EaReminderSentMetadata.js +0 -5
  77. package/dist/api/types/NoteCreatedMetadata.d.ts +0 -8
  78. package/dist/api/types/NoteCreatedMetadata.js +0 -5
  79. package/dist/api/types/ReferralAmendedMetadata.d.ts +0 -8
  80. package/dist/api/types/ReferralAmendedMetadata.js +0 -5
  81. package/dist/api/types/ReferralAmendedMetadataAfter.d.ts +0 -6
  82. package/dist/api/types/ReferralAmendedMetadataAfter.js +0 -5
  83. package/dist/api/types/ReferralAmendedMetadataBefore.d.ts +0 -6
  84. package/dist/api/types/ReferralAmendedMetadataBefore.js +0 -5
  85. package/dist/api/types/RejectedEventMetadata.d.ts +0 -7
  86. package/dist/api/types/RejectedEventMetadata.js +0 -5
  87. package/dist/api/types/RescheduleEventMetadata.d.ts +0 -8
  88. package/dist/api/types/RescheduleEventMetadata.js +0 -5
  89. package/dist/api/types/SingHealthPatientDetailsMetadata.d.ts +0 -7
  90. package/dist/api/types/SingHealthPatientDetailsMetadata.js +0 -5
  91. package/dist/api/types/TimelineEventDtoMetadata.d.ts +0 -5
  92. package/dist/api/types/TimelineEventDtoMetadata.js +0 -5
@@ -67,7 +67,7 @@ class Eligibility {
67
67
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
68
68
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, "api/v1/eligibility"),
69
69
  method: "GET",
70
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
70
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
71
71
  contentType: "application/json",
72
72
  queryParameters: _queryParams,
73
73
  requestType: "json",
@@ -59,7 +59,7 @@ class Health {
59
59
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
60
60
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, "api/v1/health"),
61
61
  method: "GET",
62
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
62
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
63
63
  contentType: "application/json",
64
64
  requestType: "json",
65
65
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -63,7 +63,7 @@ class Notes {
63
63
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
64
64
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, `api/v1/referrals/${encodeURIComponent(referralId)}/notes`),
65
65
  method: "POST",
66
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
66
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
67
67
  contentType: "application/json",
68
68
  requestType: "json",
69
69
  body: request,
@@ -10,6 +10,6 @@
10
10
  export interface CreateNoteReq {
11
11
  /** Note content - plaintext. */
12
12
  content?: string;
13
- /** Author HCI code. Must be already tied by your system. */
13
+ /** Author HCI code. Must be already tied to your system. */
14
14
  authorHciCode: string;
15
15
  }
@@ -59,7 +59,7 @@ class Offerings {
59
59
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
60
60
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, "api/v1/offerings"),
61
61
  method: "GET",
62
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
62
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
63
63
  contentType: "application/json",
64
64
  requestType: "json",
65
65
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -103,7 +103,7 @@ class Offerings {
103
103
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
104
104
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, `api/v1/offerings/${encodeURIComponent(offeringId)}`),
105
105
  method: "GET",
106
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
106
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
107
107
  contentType: "application/json",
108
108
  requestType: "json",
109
109
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -155,7 +155,7 @@ class Offerings {
155
155
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
156
156
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, `api/v1/offerings/${encodeURIComponent(offeringId)}/timeslots`),
157
157
  method: "GET",
158
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
158
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
159
159
  contentType: "application/json",
160
160
  queryParameters: _queryParams,
161
161
  requestType: "json",
@@ -69,7 +69,7 @@ class Public {
69
69
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
70
70
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, `api/v1/public/referrals/${encodeURIComponent(referralId)}`),
71
71
  method: "GET",
72
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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
  queryParameters: _queryParams,
75
75
  requestType: "json",
@@ -30,8 +30,6 @@ export declare class Referrals {
30
30
  *
31
31
  * @example
32
32
  * await client.referrals.list({
33
- * offset: 1.1,
34
- * pageSize: 1.1,
35
33
  * hciCode: "hciCode"
36
34
  * })
37
35
  */
@@ -53,8 +53,6 @@ class Referrals {
53
53
  *
54
54
  * @example
55
55
  * await client.referrals.list({
56
- * offset: 1.1,
57
- * pageSize: 1.1,
58
56
  * hciCode: "hciCode"
59
57
  * })
60
58
  */
@@ -63,8 +61,12 @@ class Referrals {
63
61
  return __awaiter(this, void 0, void 0, function* () {
64
62
  const { offset, pageSize, hciCode, status, role } = request;
65
63
  const _queryParams = {};
66
- _queryParams["offset"] = offset.toString();
67
- _queryParams["pageSize"] = pageSize.toString();
64
+ if (offset != null) {
65
+ _queryParams["offset"] = offset.toString();
66
+ }
67
+ if (pageSize != null) {
68
+ _queryParams["pageSize"] = pageSize.toString();
69
+ }
68
70
  _queryParams["hciCode"] = hciCode;
69
71
  if (status != null) {
70
72
  if (Array.isArray(status)) {
@@ -80,7 +82,7 @@ class Referrals {
80
82
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
81
83
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, "api/v1/referrals"),
82
84
  method: "GET",
83
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
85
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
84
86
  contentType: "application/json",
85
87
  queryParameters: _queryParams,
86
88
  requestType: "json",
@@ -148,7 +150,7 @@ class Referrals {
148
150
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
149
151
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, "api/v1/referrals"),
150
152
  method: "POST",
151
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
153
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
152
154
  contentType: "application/json",
153
155
  requestType: "json",
154
156
  body: request,
@@ -199,7 +201,7 @@ class Referrals {
199
201
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
200
202
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, `api/v1/referrals/${encodeURIComponent(referralId)}`),
201
203
  method: "GET",
202
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
204
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
203
205
  contentType: "application/json",
204
206
  queryParameters: _queryParams,
205
207
  requestType: "json",
@@ -244,7 +246,7 @@ class Referrals {
244
246
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
245
247
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, `api/v1/referrals/${encodeURIComponent(referralId)}`),
246
248
  method: "DELETE",
247
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
249
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
248
250
  contentType: "application/json",
249
251
  requestType: "json",
250
252
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -289,7 +291,7 @@ class Referrals {
289
291
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
290
292
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, `api/v1/referrals/${encodeURIComponent(referralId)}/cancel`),
291
293
  method: "POST",
292
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
294
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
293
295
  contentType: "application/json",
294
296
  requestType: "json",
295
297
  body: request,
@@ -337,7 +339,7 @@ class Referrals {
337
339
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
338
340
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, `api/v1/referrals/${encodeURIComponent(referralId)}/amend`),
339
341
  method: "POST",
340
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
342
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
341
343
  contentType: "application/json",
342
344
  requestType: "json",
343
345
  body: request,
@@ -385,7 +387,7 @@ class Referrals {
385
387
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
386
388
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, `api/v1/referrals/${encodeURIComponent(referralId)}/accept/ea`),
387
389
  method: "POST",
388
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
390
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
389
391
  contentType: "application/json",
390
392
  requestType: "json",
391
393
  body: request,
@@ -433,7 +435,7 @@ class Referrals {
433
435
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
434
436
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, `api/v1/referrals/${encodeURIComponent(referralId)}/reject/ea`),
435
437
  method: "POST",
436
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
438
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
437
439
  contentType: "application/json",
438
440
  requestType: "json",
439
441
  body: request,
@@ -478,7 +480,7 @@ class Referrals {
478
480
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
479
481
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, `api/v1/referrals/${encodeURIComponent(referralId)}/back-to-draft`),
480
482
  method: "POST",
481
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
483
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
482
484
  contentType: "application/json",
483
485
  requestType: "json",
484
486
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -5,8 +5,6 @@ import * as ReferralExchange from "../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * offset: 1.1,
9
- * pageSize: 1.1,
10
8
  * hciCode: "hciCode"
11
9
  * }
12
10
  */
@@ -14,11 +12,11 @@ export interface ReferralsListRequest {
14
12
  /**
15
13
  * Offset for pagination
16
14
  */
17
- offset: number;
15
+ offset?: number;
18
16
  /**
19
17
  * Number of items per page
20
18
  */
21
- pageSize: number;
19
+ pageSize?: number;
22
20
  /**
23
21
  * To identify the requesting institution
24
22
  */
@@ -27,17 +27,17 @@ export declare class Webhooks {
27
27
  * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
28
28
  *
29
29
  * @example
30
- * await client.webhooks.submitSingHealthFormSg()
30
+ * await client.webhooks.submitSingHealthFormsg()
31
31
  */
32
- submitSingHealthFormSg(requestOptions?: Webhooks.RequestOptions): Promise<void>;
32
+ submitSingHealthFormsg(requestOptions?: Webhooks.RequestOptions): Promise<void>;
33
33
  /**
34
34
  * @param {string} formId
35
35
  * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
36
36
  *
37
37
  * @example
38
- * await client.webhooks.submitFormSg("formId")
38
+ * await client.webhooks.submitFormsg("formId")
39
39
  */
40
- submitFormSg(formId: string, requestOptions?: Webhooks.RequestOptions): Promise<void>;
40
+ submitFormsg(formId: string, requestOptions?: Webhooks.RequestOptions): Promise<void>;
41
41
  protected _getCustomAuthorizationHeaders(): Promise<{
42
42
  Authorization: string | undefined;
43
43
  }>;
@@ -51,15 +51,15 @@ class Webhooks {
51
51
  * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
52
52
  *
53
53
  * @example
54
- * await client.webhooks.submitSingHealthFormSg()
54
+ * await client.webhooks.submitSingHealthFormsg()
55
55
  */
56
- submitSingHealthFormSg(requestOptions) {
56
+ submitSingHealthFormsg(requestOptions) {
57
57
  var _a, _b;
58
58
  return __awaiter(this, void 0, void 0, function* () {
59
59
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
60
60
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, "api/v1/webhooks/formsg/singhealth-profile"),
61
61
  method: "POST",
62
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
62
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
63
63
  contentType: "application/json",
64
64
  requestType: "json",
65
65
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -95,15 +95,15 @@ class Webhooks {
95
95
  * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
96
96
  *
97
97
  * @example
98
- * await client.webhooks.submitFormSg("formId")
98
+ * await client.webhooks.submitFormsg("formId")
99
99
  */
100
- submitFormSg(formId, requestOptions) {
100
+ submitFormsg(formId, requestOptions) {
101
101
  var _a, _b;
102
102
  return __awaiter(this, void 0, void 0, function* () {
103
103
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
104
104
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, `api/v1/webhooks/formsg/form-submission/${encodeURIComponent(formId)}`),
105
105
  method: "POST",
106
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
106
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
107
107
  contentType: "application/json",
108
108
  requestType: "json",
109
109
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -3,5 +3,6 @@
3
3
  */
4
4
  export interface AttachmentDto {
5
5
  url: string;
6
+ /** Human readable - include extension */
6
7
  name: string;
7
8
  }
@@ -5,7 +5,7 @@ import * as ReferralExchange from "../index";
5
5
  export interface InstitutionCoreDto {
6
6
  hciCode: string;
7
7
  name: string;
8
- system: ReferralExchange.InstitutionCoreDtoSystem;
8
+ system: ReferralExchange.System;
9
9
  block: string;
10
10
  streetName: string;
11
11
  buildingName?: string;
@@ -12,7 +12,7 @@ export interface OfferingFullDto {
12
12
  specialty: string;
13
13
  /** Whether the offering is able to receive new referrals currently */
14
14
  isActive: boolean;
15
- /** Whether this offering supports urgent referrals. TODO - will deprecate soon. */
15
+ /** Whether this offering supports urgent referrals. TODO - may deprecate soon. */
16
16
  isUrgentable: boolean;
17
17
  /** Whether this offering supports subsidized referrals. */
18
18
  isSubsidisable: boolean;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export interface PaginatedQuery {
5
5
  /** Offset for pagination */
6
- offset: number;
6
+ offset?: number;
7
7
  /** Number of items per page */
8
- pageSize: number;
8
+ pageSize?: number;
9
9
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type InstitutionCoreDtoSystem = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck";
5
- export declare const InstitutionCoreDtoSystem: {
4
+ export declare type System = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck";
5
+ export declare const System: {
6
6
  readonly Has: "HAS";
7
7
  readonly PartnersBuddy: "PartnersBuddy";
8
8
  readonly Refer: "Refer";
@@ -3,8 +3,8 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.InstitutionCoreDtoSystem = void 0;
7
- exports.InstitutionCoreDtoSystem = {
6
+ exports.System = void 0;
7
+ exports.System = {
8
8
  Has: "HAS",
9
9
  PartnersBuddy: "PartnersBuddy",
10
10
  Refer: "Refer",
@@ -4,7 +4,11 @@
4
4
  import * as ReferralExchange from "../index";
5
5
  export interface TimelineEventDto {
6
6
  type: ReferralExchange.TimelineEventDtoType;
7
- metadata: ReferralExchange.TimelineEventDtoMetadata;
7
+ label: string;
8
+ /** Additional (verbose) information, where relevant */
9
+ description?: string;
10
+ /** milliseconds since epoch */
8
11
  producedAt: number;
12
+ /** System that produced the event */
9
13
  system: ReferralExchange.TimelineEventDtoSystem;
10
14
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * System that produced the event
6
+ */
4
7
  export declare type TimelineEventDtoSystem = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck";
5
8
  export declare const TimelineEventDtoSystem: {
6
9
  readonly Has: "HAS";
@@ -1,7 +1,7 @@
1
1
  export * from "./ReferralEligibility";
2
2
  export * from "./SubsidyEligibility";
3
3
  export * from "./EligibilityRes";
4
- export * from "./InstitutionCoreDtoSystem";
4
+ export * from "./System";
5
5
  export * from "./InstitutionCoreDto";
6
6
  export * from "./OfferingFullDto";
7
7
  export * from "./GetReferralPatientDtoGender";
@@ -16,18 +16,7 @@ export * from "./ReferralDto";
16
16
  export * from "./PaginatedQuery";
17
17
  export * from "./PaginationMetadata";
18
18
  export * from "./PaginatedReferralsDto";
19
- export * from "./CreatedEventMetadata";
20
- export * from "./RejectedEventMetadata";
21
- export * from "./NoteCreatedMetadata";
22
- export * from "./RescheduleEventMetadata";
23
- export * from "./SingHealthPatientDetailsMetadata";
24
- export * from "./CancelledEventMetadata";
25
- export * from "./ReferralAmendedMetadataBefore";
26
- export * from "./ReferralAmendedMetadataAfter";
27
- export * from "./ReferralAmendedMetadata";
28
- export * from "./EaReminderSentMetadata";
29
19
  export * from "./TimelineEventDtoType";
30
- export * from "./TimelineEventDtoMetadata";
31
20
  export * from "./TimelineEventDtoSystem";
32
21
  export * from "./TimelineEventDto";
33
22
  export * from "./FullReferralDtoStatus";
@@ -17,7 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ReferralEligibility"), exports);
18
18
  __exportStar(require("./SubsidyEligibility"), exports);
19
19
  __exportStar(require("./EligibilityRes"), exports);
20
- __exportStar(require("./InstitutionCoreDtoSystem"), exports);
20
+ __exportStar(require("./System"), exports);
21
21
  __exportStar(require("./InstitutionCoreDto"), exports);
22
22
  __exportStar(require("./OfferingFullDto"), exports);
23
23
  __exportStar(require("./GetReferralPatientDtoGender"), exports);
@@ -32,18 +32,7 @@ __exportStar(require("./ReferralDto"), exports);
32
32
  __exportStar(require("./PaginatedQuery"), exports);
33
33
  __exportStar(require("./PaginationMetadata"), exports);
34
34
  __exportStar(require("./PaginatedReferralsDto"), exports);
35
- __exportStar(require("./CreatedEventMetadata"), exports);
36
- __exportStar(require("./RejectedEventMetadata"), exports);
37
- __exportStar(require("./NoteCreatedMetadata"), exports);
38
- __exportStar(require("./RescheduleEventMetadata"), exports);
39
- __exportStar(require("./SingHealthPatientDetailsMetadata"), exports);
40
- __exportStar(require("./CancelledEventMetadata"), exports);
41
- __exportStar(require("./ReferralAmendedMetadataBefore"), exports);
42
- __exportStar(require("./ReferralAmendedMetadataAfter"), exports);
43
- __exportStar(require("./ReferralAmendedMetadata"), exports);
44
- __exportStar(require("./EaReminderSentMetadata"), exports);
45
35
  __exportStar(require("./TimelineEventDtoType"), exports);
46
- __exportStar(require("./TimelineEventDtoMetadata"), exports);
47
36
  __exportStar(require("./TimelineEventDtoSystem"), exports);
48
37
  __exportStar(require("./TimelineEventDto"), exports);
49
38
  __exportStar(require("./FullReferralDtoStatus"), exports);
@@ -67,7 +67,7 @@ class Eligibility {
67
67
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
68
68
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, "api/v1/eligibility"),
69
69
  method: "GET",
70
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
70
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
71
71
  contentType: "application/json",
72
72
  queryParameters: _queryParams,
73
73
  requestType: "json",
@@ -59,7 +59,7 @@ class Health {
59
59
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
60
60
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, "api/v1/health"),
61
61
  method: "GET",
62
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
62
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
63
63
  contentType: "application/json",
64
64
  requestType: "json",
65
65
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -63,7 +63,7 @@ class Notes {
63
63
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
64
64
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, `api/v1/referrals/${encodeURIComponent(referralId)}/notes`),
65
65
  method: "POST",
66
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
66
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
67
67
  contentType: "application/json",
68
68
  requestType: "json",
69
69
  body: request,
@@ -10,6 +10,6 @@
10
10
  export interface CreateNoteReq {
11
11
  /** Note content - plaintext. */
12
12
  content?: string;
13
- /** Author HCI code. Must be already tied by your system. */
13
+ /** Author HCI code. Must be already tied to your system. */
14
14
  authorHciCode: string;
15
15
  }
@@ -59,7 +59,7 @@ class Offerings {
59
59
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
60
60
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, "api/v1/offerings"),
61
61
  method: "GET",
62
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
62
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
63
63
  contentType: "application/json",
64
64
  requestType: "json",
65
65
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -103,7 +103,7 @@ class Offerings {
103
103
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
104
104
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, `api/v1/offerings/${encodeURIComponent(offeringId)}`),
105
105
  method: "GET",
106
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
106
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
107
107
  contentType: "application/json",
108
108
  requestType: "json",
109
109
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -155,7 +155,7 @@ class Offerings {
155
155
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
156
156
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, `api/v1/offerings/${encodeURIComponent(offeringId)}/timeslots`),
157
157
  method: "GET",
158
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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),
158
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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),
159
159
  contentType: "application/json",
160
160
  queryParameters: _queryParams,
161
161
  requestType: "json",
@@ -69,7 +69,7 @@ class Public {
69
69
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
70
70
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ReferralExchangeEnvironment.Production, `api/v1/public/referrals/${encodeURIComponent(referralId)}`),
71
71
  method: "GET",
72
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.10", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.10", "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.12", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.12", "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
  queryParameters: _queryParams,
75
75
  requestType: "json",
@@ -30,8 +30,6 @@ export declare class Referrals {
30
30
  *
31
31
  * @example
32
32
  * await client.referrals.list({
33
- * offset: 1.1,
34
- * pageSize: 1.1,
35
33
  * hciCode: "hciCode"
36
34
  * })
37
35
  */