@opengovsg/refx-ts-sdk 0.0.27 → 0.0.28

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 (60) 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/offerings/client/Client.js +2 -2
  5. package/api/resources/public/client/Client.js +1 -1
  6. package/api/resources/referrals/client/Client.d.ts +9 -0
  7. package/api/resources/referrals/client/Client.js +55 -9
  8. package/api/resources/referrals/client/requests/TriggerEmailReminderBody.d.ts +16 -0
  9. package/api/resources/referrals/client/requests/TriggerEmailReminderBody.js +5 -0
  10. package/api/resources/referrals/client/requests/index.d.ts +1 -0
  11. package/api/resources/webhooks/client/Client.js +2 -2
  12. package/api/types/EmailReminderSignature.d.ts +9 -0
  13. package/api/types/EmailReminderSignature.js +5 -0
  14. package/api/types/FullReferralDtoStatus.d.ts +3 -1
  15. package/api/types/FullReferralDtoStatus.js +2 -0
  16. package/api/types/InstitutionCoreDto.d.ts +0 -2
  17. package/api/types/OfferingDto.d.ts +3 -6
  18. package/api/types/ReferralDtoStatus.d.ts +3 -1
  19. package/api/types/ReferralDtoStatus.js +2 -0
  20. package/api/types/System.d.ts +2 -1
  21. package/api/types/System.js +1 -0
  22. package/api/types/TimelineEventDtoSystem.d.ts +2 -1
  23. package/api/types/TimelineEventDtoSystem.js +1 -0
  24. package/api/types/TimelineEventType.d.ts +2 -1
  25. package/api/types/TimelineEventType.js +1 -0
  26. package/api/types/index.d.ts +2 -1
  27. package/api/types/index.js +2 -1
  28. package/dist/api/resources/eligibility/client/Client.js +1 -1
  29. package/dist/api/resources/health/client/Client.js +1 -1
  30. package/dist/api/resources/notes/client/Client.js +1 -1
  31. package/dist/api/resources/offerings/client/Client.js +2 -2
  32. package/dist/api/resources/public/client/Client.js +1 -1
  33. package/dist/api/resources/referrals/client/Client.d.ts +9 -0
  34. package/dist/api/resources/referrals/client/Client.js +55 -9
  35. package/dist/api/resources/referrals/client/requests/TriggerEmailReminderBody.d.ts +16 -0
  36. package/dist/api/resources/referrals/client/requests/TriggerEmailReminderBody.js +5 -0
  37. package/dist/api/resources/referrals/client/requests/index.d.ts +1 -0
  38. package/dist/api/resources/webhooks/client/Client.js +2 -2
  39. package/dist/api/types/EmailReminderSignature.d.ts +9 -0
  40. package/dist/api/types/EmailReminderSignature.js +5 -0
  41. package/dist/api/types/FullReferralDtoStatus.d.ts +3 -1
  42. package/dist/api/types/FullReferralDtoStatus.js +2 -0
  43. package/dist/api/types/InstitutionCoreDto.d.ts +0 -2
  44. package/dist/api/types/OfferingDto.d.ts +3 -6
  45. package/dist/api/types/ReferralDtoStatus.d.ts +3 -1
  46. package/dist/api/types/ReferralDtoStatus.js +2 -0
  47. package/dist/api/types/System.d.ts +2 -1
  48. package/dist/api/types/System.js +1 -0
  49. package/dist/api/types/TimelineEventDtoSystem.d.ts +2 -1
  50. package/dist/api/types/TimelineEventDtoSystem.js +1 -0
  51. package/dist/api/types/TimelineEventType.d.ts +2 -1
  52. package/dist/api/types/TimelineEventType.js +1 -0
  53. package/dist/api/types/index.d.ts +2 -1
  54. package/dist/api/types/index.js +2 -1
  55. package/dist/version.d.ts +1 -1
  56. package/dist/version.js +1 -1
  57. package/package.json +1 -1
  58. package/reference.md +56 -0
  59. package/version.d.ts +1 -1
  60. package/version.js +1 -1
@@ -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.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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,
@@ -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.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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,
@@ -111,7 +111,7 @@ class Offerings {
111
111
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
112
112
  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`),
113
113
  method: "GET",
114
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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),
114
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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),
115
115
  contentType: "application/json",
116
116
  queryParameters: _queryParams,
117
117
  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.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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",
@@ -132,6 +132,15 @@ export declare class Referrals {
132
132
  * await client.referrals.backToDraft("referralId")
133
133
  */
134
134
  backToDraft(referralId: string, requestOptions?: Referrals.RequestOptions): Promise<ReferralExchange.ReferralDto>;
135
+ /**
136
+ * @param {string} referralId - Referral ID
137
+ * @param {ReferralExchange.TriggerEmailReminderBody} request
138
+ * @param {Referrals.RequestOptions} requestOptions - Request-specific configuration.
139
+ *
140
+ * @example
141
+ * await client.referrals.apiHoldingControllerTriggerEmailReminder("referralId")
142
+ */
143
+ apiHoldingControllerTriggerEmailReminder(referralId: string, request?: ReferralExchange.TriggerEmailReminderBody, requestOptions?: Referrals.RequestOptions): Promise<void>;
135
144
  protected _getCustomAuthorizationHeaders(): Promise<{
136
145
  Authorization: string | undefined;
137
146
  }>;
@@ -82,7 +82,7 @@ class Referrals {
82
82
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
83
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"),
84
84
  method: "GET",
85
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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),
86
86
  contentType: "application/json",
87
87
  queryParameters: _queryParams,
88
88
  requestType: "json",
@@ -150,7 +150,7 @@ class Referrals {
150
150
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
151
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"),
152
152
  method: "POST",
153
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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),
154
154
  contentType: "application/json",
155
155
  requestType: "json",
156
156
  body: request,
@@ -201,7 +201,7 @@ class Referrals {
201
201
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
202
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)}`),
203
203
  method: "GET",
204
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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),
205
205
  contentType: "application/json",
206
206
  queryParameters: _queryParams,
207
207
  requestType: "json",
@@ -246,7 +246,7 @@ class Referrals {
246
246
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
247
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)}`),
248
248
  method: "DELETE",
249
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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),
250
250
  contentType: "application/json",
251
251
  requestType: "json",
252
252
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -291,7 +291,7 @@ class Referrals {
291
291
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
292
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`),
293
293
  method: "POST",
294
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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),
295
295
  contentType: "application/json",
296
296
  requestType: "json",
297
297
  body: request,
@@ -339,7 +339,7 @@ class Referrals {
339
339
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
340
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`),
341
341
  method: "POST",
342
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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),
343
343
  contentType: "application/json",
344
344
  requestType: "json",
345
345
  body: request,
@@ -387,7 +387,7 @@ class Referrals {
387
387
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
388
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`),
389
389
  method: "POST",
390
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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),
391
391
  contentType: "application/json",
392
392
  requestType: "json",
393
393
  body: request,
@@ -435,7 +435,7 @@ class Referrals {
435
435
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
436
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`),
437
437
  method: "POST",
438
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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),
439
439
  contentType: "application/json",
440
440
  requestType: "json",
441
441
  body: request,
@@ -480,7 +480,7 @@ class Referrals {
480
480
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
481
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`),
482
482
  method: "POST",
483
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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),
484
484
  contentType: "application/json",
485
485
  requestType: "json",
486
486
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -511,6 +511,52 @@ class Referrals {
511
511
  }
512
512
  });
513
513
  }
514
+ /**
515
+ * @param {string} referralId - Referral ID
516
+ * @param {ReferralExchange.TriggerEmailReminderBody} request
517
+ * @param {Referrals.RequestOptions} requestOptions - Request-specific configuration.
518
+ *
519
+ * @example
520
+ * await client.referrals.apiHoldingControllerTriggerEmailReminder("referralId")
521
+ */
522
+ apiHoldingControllerTriggerEmailReminder(referralId, request = {}, requestOptions) {
523
+ var _a, _b;
524
+ return __awaiter(this, void 0, void 0, function* () {
525
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
526
+ 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)}/reminder`),
527
+ 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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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
+ contentType: "application/json",
530
+ requestType: "json",
531
+ body: request,
532
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
533
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
534
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
535
+ });
536
+ if (_response.ok) {
537
+ return;
538
+ }
539
+ if (_response.error.reason === "status-code") {
540
+ throw new errors.ReferralExchangeError({
541
+ statusCode: _response.error.statusCode,
542
+ body: _response.error.body,
543
+ });
544
+ }
545
+ switch (_response.error.reason) {
546
+ case "non-json":
547
+ throw new errors.ReferralExchangeError({
548
+ statusCode: _response.error.statusCode,
549
+ body: _response.error.rawBody,
550
+ });
551
+ case "timeout":
552
+ throw new errors.ReferralExchangeTimeoutError("Timeout exceeded when calling POST /api/v1/referrals/{referralId}/reminder.");
553
+ case "unknown":
554
+ throw new errors.ReferralExchangeError({
555
+ message: _response.error.errorMessage,
556
+ });
557
+ }
558
+ });
559
+ }
514
560
  _getCustomAuthorizationHeaders() {
515
561
  return __awaiter(this, void 0, void 0, function* () {
516
562
  const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ReferralExchange from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface TriggerEmailReminderBody {
10
+ /** Email to cc the reminder to */
11
+ ccEmail?: string;
12
+ /** Email to send the reminder from */
13
+ fromEmail?: string;
14
+ /** Signature to be added to the email */
15
+ signature?: ReferralExchange.EmailReminderSignature;
16
+ }
@@ -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 });
@@ -5,3 +5,4 @@ export { type CancelReferralReq } from "./CancelReferralReq";
5
5
  export { type AmendReferralReq } from "./AmendReferralReq";
6
6
  export { type EaConfirmReferralBody } from "./EaConfirmReferralBody";
7
7
  export { type EaRejectReferralBody } from "./EaRejectReferralBody";
8
+ export { type TriggerEmailReminderBody } from "./TriggerEmailReminderBody";
@@ -59,7 +59,7 @@ class Webhooks {
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.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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 Webhooks {
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.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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,
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface EmailReminderSignature {
5
+ /** Name of the person signing the email */
6
+ name: string;
7
+ /** Title of the person signing the email */
8
+ title: string;
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 });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type FullReferralDtoStatus = "draft" | "created" | "processing-has" | "processing-pb" | "processing-ea" | "processing-bright" | "pending-singhealth-formsg" | "pending-singhealth-call-centre" | "referral-confirmed-pending-appt" | "pending-email-ack" | "submitted-to-bright" | "pending-amend-timeslot" | "confirmed" | "rejected" | "failed" | "pending-cancelled" | "cancelled";
4
+ export declare type FullReferralDtoStatus = "draft" | "created" | "processing-has" | "processing-pb" | "processing-ea" | "processing-bright" | "processing-fyi" | "pending-singhealth-formsg" | "pending-singhealth-call-centre" | "referral-confirmed-pending-appt" | "pending-email-ack" | "submitted-to-bright" | "pending-amend-timeslot" | "confirmed" | "sent" | "rejected" | "failed" | "pending-cancelled" | "cancelled";
5
5
  export declare const FullReferralDtoStatus: {
6
6
  readonly Draft: "draft";
7
7
  readonly Created: "created";
@@ -9,6 +9,7 @@ export declare const FullReferralDtoStatus: {
9
9
  readonly ProcessingPb: "processing-pb";
10
10
  readonly ProcessingEa: "processing-ea";
11
11
  readonly ProcessingBright: "processing-bright";
12
+ readonly ProcessingFyi: "processing-fyi";
12
13
  readonly PendingSinghealthFormsg: "pending-singhealth-formsg";
13
14
  readonly PendingSinghealthCallCentre: "pending-singhealth-call-centre";
14
15
  readonly ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt";
@@ -16,6 +17,7 @@ export declare const FullReferralDtoStatus: {
16
17
  readonly SubmittedToBright: "submitted-to-bright";
17
18
  readonly PendingAmendTimeslot: "pending-amend-timeslot";
18
19
  readonly Confirmed: "confirmed";
20
+ readonly Sent: "sent";
19
21
  readonly Rejected: "rejected";
20
22
  readonly Failed: "failed";
21
23
  readonly PendingCancelled: "pending-cancelled";
@@ -11,6 +11,7 @@ exports.FullReferralDtoStatus = {
11
11
  ProcessingPb: "processing-pb",
12
12
  ProcessingEa: "processing-ea",
13
13
  ProcessingBright: "processing-bright",
14
+ ProcessingFyi: "processing-fyi",
14
15
  PendingSinghealthFormsg: "pending-singhealth-formsg",
15
16
  PendingSinghealthCallCentre: "pending-singhealth-call-centre",
16
17
  ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt",
@@ -18,6 +19,7 @@ exports.FullReferralDtoStatus = {
18
19
  SubmittedToBright: "submitted-to-bright",
19
20
  PendingAmendTimeslot: "pending-amend-timeslot",
20
21
  Confirmed: "confirmed",
22
+ Sent: "sent",
21
23
  Rejected: "rejected",
22
24
  Failed: "failed",
23
25
  PendingCancelled: "pending-cancelled",
@@ -1,11 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as ReferralExchange from "../index";
5
4
  export interface InstitutionCoreDto {
6
5
  hciCode: string;
7
6
  name: string;
8
- system: ReferralExchange.System;
9
7
  block: string;
10
8
  streetName: string;
11
9
  buildingName?: string;
@@ -8,15 +8,12 @@ export interface OfferingDto {
8
8
  name: string;
9
9
  institutionHciCode: string;
10
10
  institution: ReferralExchange.InstitutionCoreDto;
11
- /** TODO - do not use this field right now */
12
- specialty: string;
11
+ system: ReferralExchange.System;
12
+ /** Clinical guidelines and other information which clinicians should read before proceeding with creating the referral. May contain URLs - should be rendered in a Linkify component */
13
+ description: string;
13
14
  /** Whether the offering is able to receive new referrals currently */
14
15
  isActive: boolean;
15
- /** deprecated - use timeslotPolicy instead */
16
- isUrgentable: boolean;
17
16
  /** Whether this offering supports subsidized referrals. */
18
17
  isSubsidisable: boolean;
19
- /** deprecated - use timeslotPolicy instead */
20
- shouldShowTimeslots: boolean;
21
18
  timeslotPolicy: ReferralExchange.TimeslotPolicy;
22
19
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type ReferralDtoStatus = "draft" | "created" | "processing-has" | "processing-pb" | "processing-ea" | "processing-bright" | "pending-singhealth-formsg" | "pending-singhealth-call-centre" | "referral-confirmed-pending-appt" | "pending-email-ack" | "submitted-to-bright" | "pending-amend-timeslot" | "confirmed" | "rejected" | "failed" | "pending-cancelled" | "cancelled";
4
+ export declare type ReferralDtoStatus = "draft" | "created" | "processing-has" | "processing-pb" | "processing-ea" | "processing-bright" | "processing-fyi" | "pending-singhealth-formsg" | "pending-singhealth-call-centre" | "referral-confirmed-pending-appt" | "pending-email-ack" | "submitted-to-bright" | "pending-amend-timeslot" | "confirmed" | "sent" | "rejected" | "failed" | "pending-cancelled" | "cancelled";
5
5
  export declare const ReferralDtoStatus: {
6
6
  readonly Draft: "draft";
7
7
  readonly Created: "created";
@@ -9,6 +9,7 @@ export declare const ReferralDtoStatus: {
9
9
  readonly ProcessingPb: "processing-pb";
10
10
  readonly ProcessingEa: "processing-ea";
11
11
  readonly ProcessingBright: "processing-bright";
12
+ readonly ProcessingFyi: "processing-fyi";
12
13
  readonly PendingSinghealthFormsg: "pending-singhealth-formsg";
13
14
  readonly PendingSinghealthCallCentre: "pending-singhealth-call-centre";
14
15
  readonly ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt";
@@ -16,6 +17,7 @@ export declare const ReferralDtoStatus: {
16
17
  readonly SubmittedToBright: "submitted-to-bright";
17
18
  readonly PendingAmendTimeslot: "pending-amend-timeslot";
18
19
  readonly Confirmed: "confirmed";
20
+ readonly Sent: "sent";
19
21
  readonly Rejected: "rejected";
20
22
  readonly Failed: "failed";
21
23
  readonly PendingCancelled: "pending-cancelled";
@@ -11,6 +11,7 @@ exports.ReferralDtoStatus = {
11
11
  ProcessingPb: "processing-pb",
12
12
  ProcessingEa: "processing-ea",
13
13
  ProcessingBright: "processing-bright",
14
+ ProcessingFyi: "processing-fyi",
14
15
  PendingSinghealthFormsg: "pending-singhealth-formsg",
15
16
  PendingSinghealthCallCentre: "pending-singhealth-call-centre",
16
17
  ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt",
@@ -18,6 +19,7 @@ exports.ReferralDtoStatus = {
18
19
  SubmittedToBright: "submitted-to-bright",
19
20
  PendingAmendTimeslot: "pending-amend-timeslot",
20
21
  Confirmed: "confirmed",
22
+ Sent: "sent",
21
23
  Rejected: "rejected",
22
24
  Failed: "failed",
23
25
  PendingCancelled: "pending-cancelled",
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type System = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright";
4
+ export declare type System = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright" | "FYI";
5
5
  export declare const System: {
6
6
  readonly Has: "HAS";
7
7
  readonly PartnersBuddy: "PartnersBuddy";
8
8
  readonly Refer: "Refer";
9
9
  readonly EmailAck: "EmailAck";
10
10
  readonly Bright: "Bright";
11
+ readonly Fyi: "FYI";
11
12
  };
@@ -10,4 +10,5 @@ exports.System = {
10
10
  Refer: "Refer",
11
11
  EmailAck: "EmailAck",
12
12
  Bright: "Bright",
13
+ Fyi: "FYI",
13
14
  };
@@ -4,11 +4,12 @@
4
4
  /**
5
5
  * System that produced the event
6
6
  */
7
- export declare type TimelineEventDtoSystem = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright";
7
+ export declare type TimelineEventDtoSystem = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright" | "FYI";
8
8
  export declare const TimelineEventDtoSystem: {
9
9
  readonly Has: "HAS";
10
10
  readonly PartnersBuddy: "PartnersBuddy";
11
11
  readonly Refer: "Refer";
12
12
  readonly EmailAck: "EmailAck";
13
13
  readonly Bright: "Bright";
14
+ readonly Fyi: "FYI";
14
15
  };
@@ -10,4 +10,5 @@ exports.TimelineEventDtoSystem = {
10
10
  Refer: "Refer",
11
11
  EmailAck: "EmailAck",
12
12
  Bright: "Bright",
13
+ Fyi: "FYI",
13
14
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type TimelineEventType = "draft.created" | "draft.updated" | "draft.deleted" | "referral.created" | "referral.confirmed" | "referral.rejected" | "referral.pending-cancelled" | "referral.amended" | "referral.cancelled" | "referral.validated" | "referral.pending-email-ack" | "appt.confirmed" | "appt.rescheduled" | "appt.rejected" | "note.created" | "singhealth-patient-details.submitted" | "referral.ea-reminder-sent" | "referral.form-response-submitted" | "referral.back-to-draft";
4
+ export declare type TimelineEventType = "draft.created" | "draft.updated" | "draft.deleted" | "referral.created" | "referral.confirmed" | "referral.rejected" | "referral.pending-cancelled" | "referral.amended" | "referral.cancelled" | "referral.validated" | "referral.pending-email-ack" | "appt.confirmed" | "appt.rescheduled" | "appt.rejected" | "note.created" | "singhealth-patient-details.submitted" | "referral.ea-reminder-sent" | "referral.form-response-submitted" | "referral.back-to-draft" | "referral.fyi-sent";
5
5
  export declare const TimelineEventType: {
6
6
  readonly DraftCreated: "draft.created";
7
7
  readonly DraftUpdated: "draft.updated";
@@ -22,4 +22,5 @@ export declare const TimelineEventType: {
22
22
  readonly ReferralEaReminderSent: "referral.ea-reminder-sent";
23
23
  readonly ReferralFormResponseSubmitted: "referral.form-response-submitted";
24
24
  readonly ReferralBackToDraft: "referral.back-to-draft";
25
+ readonly ReferralFyiSent: "referral.fyi-sent";
25
26
  };
@@ -24,4 +24,5 @@ exports.TimelineEventType = {
24
24
  ReferralEaReminderSent: "referral.ea-reminder-sent",
25
25
  ReferralFormResponseSubmitted: "referral.form-response-submitted",
26
26
  ReferralBackToDraft: "referral.back-to-draft",
27
+ ReferralFyiSent: "referral.fyi-sent",
27
28
  };
@@ -3,8 +3,8 @@ export * from "./SubsidyEligibility";
3
3
  export * from "./EligibilityRes";
4
4
  export * from "./ReferralStatusFilter";
5
5
  export * from "./ReferralRole";
6
- export * from "./System";
7
6
  export * from "./InstitutionCoreDto";
7
+ export * from "./System";
8
8
  export * from "./TimeslotPolicy";
9
9
  export * from "./OfferingDto";
10
10
  export * from "./GetReferralPatientDtoGender";
@@ -28,5 +28,6 @@ export * from "./FullReferralDto";
28
28
  export * from "./CreatePatientReqGender";
29
29
  export * from "./CreatePatientReq";
30
30
  export * from "./Timeslot";
31
+ export * from "./EmailReminderSignature";
31
32
  export * from "./PublicReferralDto";
32
33
  export * from "./OkResponse";
@@ -19,8 +19,8 @@ __exportStar(require("./SubsidyEligibility"), exports);
19
19
  __exportStar(require("./EligibilityRes"), exports);
20
20
  __exportStar(require("./ReferralStatusFilter"), exports);
21
21
  __exportStar(require("./ReferralRole"), exports);
22
- __exportStar(require("./System"), exports);
23
22
  __exportStar(require("./InstitutionCoreDto"), exports);
23
+ __exportStar(require("./System"), exports);
24
24
  __exportStar(require("./TimeslotPolicy"), exports);
25
25
  __exportStar(require("./OfferingDto"), exports);
26
26
  __exportStar(require("./GetReferralPatientDtoGender"), exports);
@@ -44,5 +44,6 @@ __exportStar(require("./FullReferralDto"), exports);
44
44
  __exportStar(require("./CreatePatientReqGender"), exports);
45
45
  __exportStar(require("./CreatePatientReq"), exports);
46
46
  __exportStar(require("./Timeslot"), exports);
47
+ __exportStar(require("./EmailReminderSignature"), exports);
47
48
  __exportStar(require("./PublicReferralDto"), exports);
48
49
  __exportStar(require("./OkResponse"), 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.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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,
@@ -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.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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,
@@ -111,7 +111,7 @@ class Offerings {
111
111
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
112
112
  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`),
113
113
  method: "GET",
114
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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),
114
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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),
115
115
  contentType: "application/json",
116
116
  queryParameters: _queryParams,
117
117
  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.27", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.27", "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.28", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.28", "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",