@opengovsg/refx-ts-sdk 0.0.64 → 0.0.65

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 (47) 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/links/client/Client.js +1 -1
  4. package/api/resources/notes/client/Client.js +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.js +10 -10
  8. package/api/resources/referrers/client/Client.js +1 -1
  9. package/api/resources/webhooks/client/Client.js +2 -2
  10. package/api/types/FullReferralDtoStatus.d.ts +3 -1
  11. package/api/types/FullReferralDtoStatus.js +2 -0
  12. package/api/types/OfferingDto.d.ts +2 -0
  13. package/api/types/OfferingWithAllowedDto.d.ts +2 -0
  14. package/api/types/ReferralDtoStatus.d.ts +3 -1
  15. package/api/types/ReferralDtoStatus.js +2 -0
  16. package/api/types/System.d.ts +2 -1
  17. package/api/types/System.js +1 -0
  18. package/api/types/TimelineEventDtoSystem.d.ts +2 -1
  19. package/api/types/TimelineEventDtoSystem.js +1 -0
  20. package/api/types/TimelineEventType.d.ts +2 -1
  21. package/api/types/TimelineEventType.js +1 -0
  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/links/client/Client.js +1 -1
  25. package/dist/api/resources/notes/client/Client.js +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.js +10 -10
  29. package/dist/api/resources/referrers/client/Client.js +1 -1
  30. package/dist/api/resources/webhooks/client/Client.js +2 -2
  31. package/dist/api/types/FullReferralDtoStatus.d.ts +3 -1
  32. package/dist/api/types/FullReferralDtoStatus.js +2 -0
  33. package/dist/api/types/OfferingDto.d.ts +2 -0
  34. package/dist/api/types/OfferingWithAllowedDto.d.ts +2 -0
  35. package/dist/api/types/ReferralDtoStatus.d.ts +3 -1
  36. package/dist/api/types/ReferralDtoStatus.js +2 -0
  37. package/dist/api/types/System.d.ts +2 -1
  38. package/dist/api/types/System.js +1 -0
  39. package/dist/api/types/TimelineEventDtoSystem.d.ts +2 -1
  40. package/dist/api/types/TimelineEventDtoSystem.js +1 -0
  41. package/dist/api/types/TimelineEventType.d.ts +2 -1
  42. package/dist/api/types/TimelineEventType.js +1 -0
  43. package/dist/version.d.ts +1 -1
  44. package/dist/version.js +1 -1
  45. package/package.json +1 -1
  46. package/version.d.ts +1 -1
  47. package/version.js +1 -1
@@ -89,7 +89,7 @@ class Eligibility {
89
89
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
90
90
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/eligibility"),
91
91
  method: "GET",
92
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",
@@ -69,7 +69,7 @@ class Health {
69
69
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
70
70
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/health"),
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.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
73
73
  contentType: "application/json",
74
74
  requestType: "json",
75
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -82,7 +82,7 @@ class Links {
82
82
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
83
83
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/links/upsert"),
84
84
  method: "POST",
85
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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
  requestType: "json",
88
88
  body: Object.assign(Object.assign({}, request), { referrerInstitutionIdType: "hci" }),
@@ -78,7 +78,7 @@ class Notes {
78
78
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
79
79
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/notes`),
80
80
  method: "POST",
81
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
81
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  body: Object.assign(Object.assign({}, request), { institutionIdType: "hci" }),
@@ -85,7 +85,7 @@ class Offerings {
85
85
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
86
86
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/offerings"),
87
87
  method: "GET",
88
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
88
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
89
89
  contentType: "application/json",
90
90
  queryParameters: _queryParams,
91
91
  requestType: "json",
@@ -145,7 +145,7 @@ class Offerings {
145
145
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
146
146
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/offerings/recommended"),
147
147
  method: "GET",
148
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
148
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
149
149
  contentType: "application/json",
150
150
  queryParameters: _queryParams,
151
151
  requestType: "json",
@@ -208,7 +208,7 @@ class Offerings {
208
208
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
209
209
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/offerings/${encodeURIComponent(offeringId)}/timeslots`),
210
210
  method: "GET",
211
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
211
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
212
212
  contentType: "application/json",
213
213
  queryParameters: _queryParams,
214
214
  requestType: "json",
@@ -91,7 +91,7 @@ class Public {
91
91
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
92
92
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/public/referrals/${encodeURIComponent(referralId)}`),
93
93
  method: "GET",
94
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
94
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
95
95
  contentType: "application/json",
96
96
  queryParameters: _queryParams,
97
97
  requestType: "json",
@@ -107,7 +107,7 @@ class Referrals {
107
107
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
108
108
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/referrals"),
109
109
  method: "GET",
110
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
110
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
111
111
  contentType: "application/json",
112
112
  queryParameters: _queryParams,
113
113
  requestType: "json",
@@ -183,7 +183,7 @@ class Referrals {
183
183
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
184
184
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/referrals"),
185
185
  method: "POST",
186
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
186
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
187
187
  contentType: "application/json",
188
188
  requestType: "json",
189
189
  body: request,
@@ -267,7 +267,7 @@ class Referrals {
267
267
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
268
268
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/institutions/${encodeURIComponent(institutionIdType)}/${encodeURIComponent(institutionId)}/referrals`),
269
269
  method: "GET",
270
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
270
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
271
271
  contentType: "application/json",
272
272
  queryParameters: _queryParams,
273
273
  requestType: "json",
@@ -338,7 +338,7 @@ class Referrals {
338
338
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
339
339
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}`),
340
340
  method: "GET",
341
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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
342
  contentType: "application/json",
343
343
  queryParameters: _queryParams,
344
344
  requestType: "json",
@@ -400,7 +400,7 @@ class Referrals {
400
400
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
401
401
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}`),
402
402
  method: "DELETE",
403
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
403
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
404
404
  contentType: "application/json",
405
405
  queryParameters: _queryParams,
406
406
  requestType: "json",
@@ -456,7 +456,7 @@ class Referrals {
456
456
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
457
457
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/cancel`),
458
458
  method: "POST",
459
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
459
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
460
460
  contentType: "application/json",
461
461
  requestType: "json",
462
462
  body: Object.assign(Object.assign({}, request), { institutionIdType: "hci" }),
@@ -513,7 +513,7 @@ class Referrals {
513
513
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
514
514
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/amend`),
515
515
  method: "POST",
516
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
516
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
517
517
  contentType: "application/json",
518
518
  requestType: "json",
519
519
  body: Object.assign(Object.assign({}, request), { institutionIdType: "hci" }),
@@ -570,7 +570,7 @@ class Referrals {
570
570
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
571
571
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/accept`),
572
572
  method: "POST",
573
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
573
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
574
574
  contentType: "application/json",
575
575
  requestType: "json",
576
576
  body: Object.assign(Object.assign({}, request), { institutionIdType: "hci" }),
@@ -629,7 +629,7 @@ class Referrals {
629
629
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
630
630
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/reject`),
631
631
  method: "POST",
632
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
632
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
633
633
  contentType: "application/json",
634
634
  requestType: "json",
635
635
  body: Object.assign(Object.assign({}, request), { institutionIdType: "hci" }),
@@ -685,7 +685,7 @@ class Referrals {
685
685
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
686
686
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/back-to-draft`),
687
687
  method: "POST",
688
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
688
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
689
689
  contentType: "application/json",
690
690
  requestType: "json",
691
691
  body: Object.assign(Object.assign({}, request), { institutionIdType: "hci" }),
@@ -81,7 +81,7 @@ class Referrers {
81
81
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
82
82
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/referrers"),
83
83
  method: "GET",
84
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -69,7 +69,7 @@ class Webhooks {
69
69
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
70
70
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/webhooks/formsg/singhealth-profile"),
71
71
  method: "POST",
72
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
73
73
  contentType: "application/json",
74
74
  requestType: "json",
75
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -113,7 +113,7 @@ class Webhooks {
113
113
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
114
114
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/webhooks/formsg/form-submission/${encodeURIComponent(formId)}`),
115
115
  method: "POST",
116
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
117
  contentType: "application/json",
118
118
  requestType: "json",
119
119
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export 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";
4
+ export type FullReferralDtoStatus = "draft" | "created" | "processing-has" | "processing-pb" | "processing-ea" | "processing-bright" | "processing-fyi" | "processing-ngemr" | "pending-singhealth-formsg" | "pending-singhealth-call-centre" | "referral-confirmed-pending-appt" | "pending-email-ack" | "submitted-to-bright" | "pending-amend-timeslot" | "pending-acceptance" | "confirmed" | "sent" | "rejected" | "failed" | "pending-cancelled" | "cancelled";
5
5
  export declare const FullReferralDtoStatus: {
6
6
  readonly Draft: "draft";
7
7
  readonly Created: "created";
@@ -10,12 +10,14 @@ export declare const FullReferralDtoStatus: {
10
10
  readonly ProcessingEa: "processing-ea";
11
11
  readonly ProcessingBright: "processing-bright";
12
12
  readonly ProcessingFyi: "processing-fyi";
13
+ readonly ProcessingNgemr: "processing-ngemr";
13
14
  readonly PendingSinghealthFormsg: "pending-singhealth-formsg";
14
15
  readonly PendingSinghealthCallCentre: "pending-singhealth-call-centre";
15
16
  readonly ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt";
16
17
  readonly PendingEmailAck: "pending-email-ack";
17
18
  readonly SubmittedToBright: "submitted-to-bright";
18
19
  readonly PendingAmendTimeslot: "pending-amend-timeslot";
20
+ readonly PendingAcceptance: "pending-acceptance";
19
21
  readonly Confirmed: "confirmed";
20
22
  readonly Sent: "sent";
21
23
  readonly Rejected: "rejected";
@@ -12,12 +12,14 @@ exports.FullReferralDtoStatus = {
12
12
  ProcessingEa: "processing-ea",
13
13
  ProcessingBright: "processing-bright",
14
14
  ProcessingFyi: "processing-fyi",
15
+ ProcessingNgemr: "processing-ngemr",
15
16
  PendingSinghealthFormsg: "pending-singhealth-formsg",
16
17
  PendingSinghealthCallCentre: "pending-singhealth-call-centre",
17
18
  ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt",
18
19
  PendingEmailAck: "pending-email-ack",
19
20
  SubmittedToBright: "submitted-to-bright",
20
21
  PendingAmendTimeslot: "pending-amend-timeslot",
22
+ PendingAcceptance: "pending-acceptance",
21
23
  Confirmed: "confirmed",
22
24
  Sent: "sent",
23
25
  Rejected: "rejected",
@@ -18,6 +18,8 @@ export interface OfferingDto {
18
18
  timeslotPolicy: ReferralExchange.TimeslotPolicy;
19
19
  /** Category of the offering. Used to group offerings together. */
20
20
  category?: ReferralExchange.OfferingDtoCategory;
21
+ /** Specialty of the offering */
22
+ specialty?: string;
21
23
  /** NEHR code for the offering */
22
24
  nehrCode?: string;
23
25
  }
@@ -18,6 +18,8 @@ export interface OfferingWithAllowedDto {
18
18
  timeslotPolicy: ReferralExchange.TimeslotPolicy;
19
19
  /** Category of the offering. Used to group offerings together. */
20
20
  category?: ReferralExchange.OfferingWithAllowedDtoCategory;
21
+ /** Specialty of the offering */
22
+ specialty?: string;
21
23
  /** NEHR code for the offering */
22
24
  nehrCode?: string;
23
25
  /** Whether the offering is allowed based on the provided query parameters */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export 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";
4
+ export type ReferralDtoStatus = "draft" | "created" | "processing-has" | "processing-pb" | "processing-ea" | "processing-bright" | "processing-fyi" | "processing-ngemr" | "pending-singhealth-formsg" | "pending-singhealth-call-centre" | "referral-confirmed-pending-appt" | "pending-email-ack" | "submitted-to-bright" | "pending-amend-timeslot" | "pending-acceptance" | "confirmed" | "sent" | "rejected" | "failed" | "pending-cancelled" | "cancelled";
5
5
  export declare const ReferralDtoStatus: {
6
6
  readonly Draft: "draft";
7
7
  readonly Created: "created";
@@ -10,12 +10,14 @@ export declare const ReferralDtoStatus: {
10
10
  readonly ProcessingEa: "processing-ea";
11
11
  readonly ProcessingBright: "processing-bright";
12
12
  readonly ProcessingFyi: "processing-fyi";
13
+ readonly ProcessingNgemr: "processing-ngemr";
13
14
  readonly PendingSinghealthFormsg: "pending-singhealth-formsg";
14
15
  readonly PendingSinghealthCallCentre: "pending-singhealth-call-centre";
15
16
  readonly ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt";
16
17
  readonly PendingEmailAck: "pending-email-ack";
17
18
  readonly SubmittedToBright: "submitted-to-bright";
18
19
  readonly PendingAmendTimeslot: "pending-amend-timeslot";
20
+ readonly PendingAcceptance: "pending-acceptance";
19
21
  readonly Confirmed: "confirmed";
20
22
  readonly Sent: "sent";
21
23
  readonly Rejected: "rejected";
@@ -12,12 +12,14 @@ exports.ReferralDtoStatus = {
12
12
  ProcessingEa: "processing-ea",
13
13
  ProcessingBright: "processing-bright",
14
14
  ProcessingFyi: "processing-fyi",
15
+ ProcessingNgemr: "processing-ngemr",
15
16
  PendingSinghealthFormsg: "pending-singhealth-formsg",
16
17
  PendingSinghealthCallCentre: "pending-singhealth-call-centre",
17
18
  ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt",
18
19
  PendingEmailAck: "pending-email-ack",
19
20
  SubmittedToBright: "submitted-to-bright",
20
21
  PendingAmendTimeslot: "pending-amend-timeslot",
22
+ PendingAcceptance: "pending-acceptance",
21
23
  Confirmed: "confirmed",
22
24
  Sent: "sent",
23
25
  Rejected: "rejected",
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type System = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright" | "FYI" | "AAC" | "GPConnect" | "CLINICASSIST" | "LINKDOCTORS" | "GALENHEALTH" | "VANDACMS" | "MANADR" | "PLATO" | "RAFFLESMG" | "RUBICON" | "SGIMED" | "UNITEDCREST" | "IAPPS" | "UNOTECH" | "ZANDEN" | "SCGINTERNAL";
4
+ export type System = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright" | "FYI" | "AAC" | "NGEMR" | "GPConnect" | "CLINICASSIST" | "LINKDOCTORS" | "GALENHEALTH" | "VANDACMS" | "MANADR" | "PLATO" | "RAFFLESMG" | "RUBICON" | "SGIMED" | "UNITEDCREST" | "IAPPS" | "UNOTECH" | "ZANDEN" | "SCGINTERNAL";
5
5
  export declare const System: {
6
6
  readonly Has: "HAS";
7
7
  readonly PartnersBuddy: "PartnersBuddy";
@@ -10,6 +10,7 @@ export declare const System: {
10
10
  readonly Bright: "Bright";
11
11
  readonly Fyi: "FYI";
12
12
  readonly Aac: "AAC";
13
+ readonly Ngemr: "NGEMR";
13
14
  readonly GpConnect: "GPConnect";
14
15
  readonly Clinicassist: "CLINICASSIST";
15
16
  readonly Linkdoctors: "LINKDOCTORS";
@@ -12,6 +12,7 @@ exports.System = {
12
12
  Bright: "Bright",
13
13
  Fyi: "FYI",
14
14
  Aac: "AAC",
15
+ Ngemr: "NGEMR",
15
16
  GpConnect: "GPConnect",
16
17
  Clinicassist: "CLINICASSIST",
17
18
  Linkdoctors: "LINKDOCTORS",
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * System that produced the event
6
6
  */
7
- export type TimelineEventDtoSystem = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright" | "FYI" | "AAC" | "GPConnect" | "CLINICASSIST" | "LINKDOCTORS" | "GALENHEALTH" | "VANDACMS" | "MANADR" | "PLATO" | "RAFFLESMG" | "RUBICON" | "SGIMED" | "UNITEDCREST" | "IAPPS" | "UNOTECH" | "ZANDEN" | "SCGINTERNAL";
7
+ export type TimelineEventDtoSystem = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright" | "FYI" | "AAC" | "NGEMR" | "GPConnect" | "CLINICASSIST" | "LINKDOCTORS" | "GALENHEALTH" | "VANDACMS" | "MANADR" | "PLATO" | "RAFFLESMG" | "RUBICON" | "SGIMED" | "UNITEDCREST" | "IAPPS" | "UNOTECH" | "ZANDEN" | "SCGINTERNAL";
8
8
  export declare const TimelineEventDtoSystem: {
9
9
  readonly Has: "HAS";
10
10
  readonly PartnersBuddy: "PartnersBuddy";
@@ -13,6 +13,7 @@ export declare const TimelineEventDtoSystem: {
13
13
  readonly Bright: "Bright";
14
14
  readonly Fyi: "FYI";
15
15
  readonly Aac: "AAC";
16
+ readonly Ngemr: "NGEMR";
16
17
  readonly GpConnect: "GPConnect";
17
18
  readonly Clinicassist: "CLINICASSIST";
18
19
  readonly Linkdoctors: "LINKDOCTORS";
@@ -12,6 +12,7 @@ exports.TimelineEventDtoSystem = {
12
12
  Bright: "Bright",
13
13
  Fyi: "FYI",
14
14
  Aac: "AAC",
15
+ Ngemr: "NGEMR",
15
16
  GpConnect: "GPConnect",
16
17
  Clinicassist: "CLINICASSIST",
17
18
  Linkdoctors: "LINKDOCTORS",
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export 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.cancelled" | "appt.no-show" | "appt.rescheduled" | "appt.location-updated" | "appt.rejected" | "note.created" | "singhealth-patient-details.submitted" | "referral.ea-reminder-sent" | "referral.form-response-submitted" | "referral.back-to-draft" | "referral.fyi-sent" | "referral.email-sent" | "referral.discharged" | "referral.sms-sent" | "referral.sms-status-changed";
4
+ export 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" | "referral.pending-acceptance" | "appt.confirmed" | "appt.cancelled" | "appt.no-show" | "appt.rescheduled" | "appt.location-updated" | "appt.rejected" | "note.created" | "singhealth-patient-details.submitted" | "referral.ea-reminder-sent" | "referral.form-response-submitted" | "referral.back-to-draft" | "referral.fyi-sent" | "referral.email-sent" | "referral.discharged" | "referral.sms-sent" | "referral.sms-status-changed";
5
5
  export declare const TimelineEventType: {
6
6
  readonly DraftCreated: "draft.created";
7
7
  readonly DraftUpdated: "draft.updated";
@@ -14,6 +14,7 @@ export declare const TimelineEventType: {
14
14
  readonly ReferralCancelled: "referral.cancelled";
15
15
  readonly ReferralValidated: "referral.validated";
16
16
  readonly ReferralPendingEmailAck: "referral.pending-email-ack";
17
+ readonly ReferralPendingAcceptance: "referral.pending-acceptance";
17
18
  readonly ApptConfirmed: "appt.confirmed";
18
19
  readonly ApptCancelled: "appt.cancelled";
19
20
  readonly ApptNoShow: "appt.no-show";
@@ -16,6 +16,7 @@ exports.TimelineEventType = {
16
16
  ReferralCancelled: "referral.cancelled",
17
17
  ReferralValidated: "referral.validated",
18
18
  ReferralPendingEmailAck: "referral.pending-email-ack",
19
+ ReferralPendingAcceptance: "referral.pending-acceptance",
19
20
  ApptConfirmed: "appt.confirmed",
20
21
  ApptCancelled: "appt.cancelled",
21
22
  ApptNoShow: "appt.no-show",
@@ -89,7 +89,7 @@ class Eligibility {
89
89
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
90
90
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/eligibility"),
91
91
  method: "GET",
92
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",
@@ -69,7 +69,7 @@ class Health {
69
69
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
70
70
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/health"),
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.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
73
73
  contentType: "application/json",
74
74
  requestType: "json",
75
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -82,7 +82,7 @@ class Links {
82
82
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
83
83
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/links/upsert"),
84
84
  method: "POST",
85
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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
  requestType: "json",
88
88
  body: Object.assign(Object.assign({}, request), { referrerInstitutionIdType: "hci" }),
@@ -78,7 +78,7 @@ class Notes {
78
78
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
79
79
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/notes`),
80
80
  method: "POST",
81
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
81
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  body: Object.assign(Object.assign({}, request), { institutionIdType: "hci" }),
@@ -85,7 +85,7 @@ class Offerings {
85
85
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
86
86
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/offerings"),
87
87
  method: "GET",
88
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
88
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
89
89
  contentType: "application/json",
90
90
  queryParameters: _queryParams,
91
91
  requestType: "json",
@@ -145,7 +145,7 @@ class Offerings {
145
145
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
146
146
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/offerings/recommended"),
147
147
  method: "GET",
148
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
148
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
149
149
  contentType: "application/json",
150
150
  queryParameters: _queryParams,
151
151
  requestType: "json",
@@ -208,7 +208,7 @@ class Offerings {
208
208
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
209
209
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/offerings/${encodeURIComponent(offeringId)}/timeslots`),
210
210
  method: "GET",
211
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
211
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
212
212
  contentType: "application/json",
213
213
  queryParameters: _queryParams,
214
214
  requestType: "json",
@@ -91,7 +91,7 @@ class Public {
91
91
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
92
92
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/public/referrals/${encodeURIComponent(referralId)}`),
93
93
  method: "GET",
94
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
94
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
95
95
  contentType: "application/json",
96
96
  queryParameters: _queryParams,
97
97
  requestType: "json",
@@ -107,7 +107,7 @@ class Referrals {
107
107
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
108
108
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/referrals"),
109
109
  method: "GET",
110
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
110
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
111
111
  contentType: "application/json",
112
112
  queryParameters: _queryParams,
113
113
  requestType: "json",
@@ -183,7 +183,7 @@ class Referrals {
183
183
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
184
184
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/referrals"),
185
185
  method: "POST",
186
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
186
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
187
187
  contentType: "application/json",
188
188
  requestType: "json",
189
189
  body: request,
@@ -267,7 +267,7 @@ class Referrals {
267
267
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
268
268
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/institutions/${encodeURIComponent(institutionIdType)}/${encodeURIComponent(institutionId)}/referrals`),
269
269
  method: "GET",
270
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
270
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
271
271
  contentType: "application/json",
272
272
  queryParameters: _queryParams,
273
273
  requestType: "json",
@@ -338,7 +338,7 @@ class Referrals {
338
338
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
339
339
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}`),
340
340
  method: "GET",
341
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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
342
  contentType: "application/json",
343
343
  queryParameters: _queryParams,
344
344
  requestType: "json",
@@ -400,7 +400,7 @@ class Referrals {
400
400
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
401
401
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}`),
402
402
  method: "DELETE",
403
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
403
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
404
404
  contentType: "application/json",
405
405
  queryParameters: _queryParams,
406
406
  requestType: "json",
@@ -456,7 +456,7 @@ class Referrals {
456
456
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
457
457
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/cancel`),
458
458
  method: "POST",
459
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
459
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
460
460
  contentType: "application/json",
461
461
  requestType: "json",
462
462
  body: Object.assign(Object.assign({}, request), { institutionIdType: "hci" }),
@@ -513,7 +513,7 @@ class Referrals {
513
513
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
514
514
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/amend`),
515
515
  method: "POST",
516
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
516
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
517
517
  contentType: "application/json",
518
518
  requestType: "json",
519
519
  body: Object.assign(Object.assign({}, request), { institutionIdType: "hci" }),
@@ -570,7 +570,7 @@ class Referrals {
570
570
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
571
571
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/accept`),
572
572
  method: "POST",
573
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
573
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
574
574
  contentType: "application/json",
575
575
  requestType: "json",
576
576
  body: Object.assign(Object.assign({}, request), { institutionIdType: "hci" }),
@@ -629,7 +629,7 @@ class Referrals {
629
629
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
630
630
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/reject`),
631
631
  method: "POST",
632
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
632
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
633
633
  contentType: "application/json",
634
634
  requestType: "json",
635
635
  body: Object.assign(Object.assign({}, request), { institutionIdType: "hci" }),
@@ -685,7 +685,7 @@ class Referrals {
685
685
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
686
686
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/back-to-draft`),
687
687
  method: "POST",
688
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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),
688
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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),
689
689
  contentType: "application/json",
690
690
  requestType: "json",
691
691
  body: Object.assign(Object.assign({}, request), { institutionIdType: "hci" }),
@@ -81,7 +81,7 @@ class Referrers {
81
81
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
82
82
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/referrers"),
83
83
  method: "GET",
84
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "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
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -69,7 +69,7 @@ class Webhooks {
69
69
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
70
70
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/webhooks/formsg/singhealth-profile"),
71
71
  method: "POST",
72
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "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.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
73
73
  contentType: "application/json",
74
74
  requestType: "json",
75
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -113,7 +113,7 @@ class Webhooks {
113
113
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
114
114
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/webhooks/formsg/form-submission/${encodeURIComponent(formId)}`),
115
115
  method: "POST",
116
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.65", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.65", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
117
  contentType: "application/json",
118
118
  requestType: "json",
119
119
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export 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";
4
+ export type FullReferralDtoStatus = "draft" | "created" | "processing-has" | "processing-pb" | "processing-ea" | "processing-bright" | "processing-fyi" | "processing-ngemr" | "pending-singhealth-formsg" | "pending-singhealth-call-centre" | "referral-confirmed-pending-appt" | "pending-email-ack" | "submitted-to-bright" | "pending-amend-timeslot" | "pending-acceptance" | "confirmed" | "sent" | "rejected" | "failed" | "pending-cancelled" | "cancelled";
5
5
  export declare const FullReferralDtoStatus: {
6
6
  readonly Draft: "draft";
7
7
  readonly Created: "created";
@@ -10,12 +10,14 @@ export declare const FullReferralDtoStatus: {
10
10
  readonly ProcessingEa: "processing-ea";
11
11
  readonly ProcessingBright: "processing-bright";
12
12
  readonly ProcessingFyi: "processing-fyi";
13
+ readonly ProcessingNgemr: "processing-ngemr";
13
14
  readonly PendingSinghealthFormsg: "pending-singhealth-formsg";
14
15
  readonly PendingSinghealthCallCentre: "pending-singhealth-call-centre";
15
16
  readonly ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt";
16
17
  readonly PendingEmailAck: "pending-email-ack";
17
18
  readonly SubmittedToBright: "submitted-to-bright";
18
19
  readonly PendingAmendTimeslot: "pending-amend-timeslot";
20
+ readonly PendingAcceptance: "pending-acceptance";
19
21
  readonly Confirmed: "confirmed";
20
22
  readonly Sent: "sent";
21
23
  readonly Rejected: "rejected";
@@ -12,12 +12,14 @@ exports.FullReferralDtoStatus = {
12
12
  ProcessingEa: "processing-ea",
13
13
  ProcessingBright: "processing-bright",
14
14
  ProcessingFyi: "processing-fyi",
15
+ ProcessingNgemr: "processing-ngemr",
15
16
  PendingSinghealthFormsg: "pending-singhealth-formsg",
16
17
  PendingSinghealthCallCentre: "pending-singhealth-call-centre",
17
18
  ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt",
18
19
  PendingEmailAck: "pending-email-ack",
19
20
  SubmittedToBright: "submitted-to-bright",
20
21
  PendingAmendTimeslot: "pending-amend-timeslot",
22
+ PendingAcceptance: "pending-acceptance",
21
23
  Confirmed: "confirmed",
22
24
  Sent: "sent",
23
25
  Rejected: "rejected",
@@ -18,6 +18,8 @@ export interface OfferingDto {
18
18
  timeslotPolicy: ReferralExchange.TimeslotPolicy;
19
19
  /** Category of the offering. Used to group offerings together. */
20
20
  category?: ReferralExchange.OfferingDtoCategory;
21
+ /** Specialty of the offering */
22
+ specialty?: string;
21
23
  /** NEHR code for the offering */
22
24
  nehrCode?: string;
23
25
  }
@@ -18,6 +18,8 @@ export interface OfferingWithAllowedDto {
18
18
  timeslotPolicy: ReferralExchange.TimeslotPolicy;
19
19
  /** Category of the offering. Used to group offerings together. */
20
20
  category?: ReferralExchange.OfferingWithAllowedDtoCategory;
21
+ /** Specialty of the offering */
22
+ specialty?: string;
21
23
  /** NEHR code for the offering */
22
24
  nehrCode?: string;
23
25
  /** Whether the offering is allowed based on the provided query parameters */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export 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";
4
+ export type ReferralDtoStatus = "draft" | "created" | "processing-has" | "processing-pb" | "processing-ea" | "processing-bright" | "processing-fyi" | "processing-ngemr" | "pending-singhealth-formsg" | "pending-singhealth-call-centre" | "referral-confirmed-pending-appt" | "pending-email-ack" | "submitted-to-bright" | "pending-amend-timeslot" | "pending-acceptance" | "confirmed" | "sent" | "rejected" | "failed" | "pending-cancelled" | "cancelled";
5
5
  export declare const ReferralDtoStatus: {
6
6
  readonly Draft: "draft";
7
7
  readonly Created: "created";
@@ -10,12 +10,14 @@ export declare const ReferralDtoStatus: {
10
10
  readonly ProcessingEa: "processing-ea";
11
11
  readonly ProcessingBright: "processing-bright";
12
12
  readonly ProcessingFyi: "processing-fyi";
13
+ readonly ProcessingNgemr: "processing-ngemr";
13
14
  readonly PendingSinghealthFormsg: "pending-singhealth-formsg";
14
15
  readonly PendingSinghealthCallCentre: "pending-singhealth-call-centre";
15
16
  readonly ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt";
16
17
  readonly PendingEmailAck: "pending-email-ack";
17
18
  readonly SubmittedToBright: "submitted-to-bright";
18
19
  readonly PendingAmendTimeslot: "pending-amend-timeslot";
20
+ readonly PendingAcceptance: "pending-acceptance";
19
21
  readonly Confirmed: "confirmed";
20
22
  readonly Sent: "sent";
21
23
  readonly Rejected: "rejected";
@@ -12,12 +12,14 @@ exports.ReferralDtoStatus = {
12
12
  ProcessingEa: "processing-ea",
13
13
  ProcessingBright: "processing-bright",
14
14
  ProcessingFyi: "processing-fyi",
15
+ ProcessingNgemr: "processing-ngemr",
15
16
  PendingSinghealthFormsg: "pending-singhealth-formsg",
16
17
  PendingSinghealthCallCentre: "pending-singhealth-call-centre",
17
18
  ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt",
18
19
  PendingEmailAck: "pending-email-ack",
19
20
  SubmittedToBright: "submitted-to-bright",
20
21
  PendingAmendTimeslot: "pending-amend-timeslot",
22
+ PendingAcceptance: "pending-acceptance",
21
23
  Confirmed: "confirmed",
22
24
  Sent: "sent",
23
25
  Rejected: "rejected",
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type System = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright" | "FYI" | "AAC" | "GPConnect" | "CLINICASSIST" | "LINKDOCTORS" | "GALENHEALTH" | "VANDACMS" | "MANADR" | "PLATO" | "RAFFLESMG" | "RUBICON" | "SGIMED" | "UNITEDCREST" | "IAPPS" | "UNOTECH" | "ZANDEN" | "SCGINTERNAL";
4
+ export type System = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright" | "FYI" | "AAC" | "NGEMR" | "GPConnect" | "CLINICASSIST" | "LINKDOCTORS" | "GALENHEALTH" | "VANDACMS" | "MANADR" | "PLATO" | "RAFFLESMG" | "RUBICON" | "SGIMED" | "UNITEDCREST" | "IAPPS" | "UNOTECH" | "ZANDEN" | "SCGINTERNAL";
5
5
  export declare const System: {
6
6
  readonly Has: "HAS";
7
7
  readonly PartnersBuddy: "PartnersBuddy";
@@ -10,6 +10,7 @@ export declare const System: {
10
10
  readonly Bright: "Bright";
11
11
  readonly Fyi: "FYI";
12
12
  readonly Aac: "AAC";
13
+ readonly Ngemr: "NGEMR";
13
14
  readonly GpConnect: "GPConnect";
14
15
  readonly Clinicassist: "CLINICASSIST";
15
16
  readonly Linkdoctors: "LINKDOCTORS";
@@ -12,6 +12,7 @@ exports.System = {
12
12
  Bright: "Bright",
13
13
  Fyi: "FYI",
14
14
  Aac: "AAC",
15
+ Ngemr: "NGEMR",
15
16
  GpConnect: "GPConnect",
16
17
  Clinicassist: "CLINICASSIST",
17
18
  Linkdoctors: "LINKDOCTORS",
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * System that produced the event
6
6
  */
7
- export type TimelineEventDtoSystem = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright" | "FYI" | "AAC" | "GPConnect" | "CLINICASSIST" | "LINKDOCTORS" | "GALENHEALTH" | "VANDACMS" | "MANADR" | "PLATO" | "RAFFLESMG" | "RUBICON" | "SGIMED" | "UNITEDCREST" | "IAPPS" | "UNOTECH" | "ZANDEN" | "SCGINTERNAL";
7
+ export type TimelineEventDtoSystem = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright" | "FYI" | "AAC" | "NGEMR" | "GPConnect" | "CLINICASSIST" | "LINKDOCTORS" | "GALENHEALTH" | "VANDACMS" | "MANADR" | "PLATO" | "RAFFLESMG" | "RUBICON" | "SGIMED" | "UNITEDCREST" | "IAPPS" | "UNOTECH" | "ZANDEN" | "SCGINTERNAL";
8
8
  export declare const TimelineEventDtoSystem: {
9
9
  readonly Has: "HAS";
10
10
  readonly PartnersBuddy: "PartnersBuddy";
@@ -13,6 +13,7 @@ export declare const TimelineEventDtoSystem: {
13
13
  readonly Bright: "Bright";
14
14
  readonly Fyi: "FYI";
15
15
  readonly Aac: "AAC";
16
+ readonly Ngemr: "NGEMR";
16
17
  readonly GpConnect: "GPConnect";
17
18
  readonly Clinicassist: "CLINICASSIST";
18
19
  readonly Linkdoctors: "LINKDOCTORS";
@@ -12,6 +12,7 @@ exports.TimelineEventDtoSystem = {
12
12
  Bright: "Bright",
13
13
  Fyi: "FYI",
14
14
  Aac: "AAC",
15
+ Ngemr: "NGEMR",
15
16
  GpConnect: "GPConnect",
16
17
  Clinicassist: "CLINICASSIST",
17
18
  Linkdoctors: "LINKDOCTORS",
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export 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.cancelled" | "appt.no-show" | "appt.rescheduled" | "appt.location-updated" | "appt.rejected" | "note.created" | "singhealth-patient-details.submitted" | "referral.ea-reminder-sent" | "referral.form-response-submitted" | "referral.back-to-draft" | "referral.fyi-sent" | "referral.email-sent" | "referral.discharged" | "referral.sms-sent" | "referral.sms-status-changed";
4
+ export 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" | "referral.pending-acceptance" | "appt.confirmed" | "appt.cancelled" | "appt.no-show" | "appt.rescheduled" | "appt.location-updated" | "appt.rejected" | "note.created" | "singhealth-patient-details.submitted" | "referral.ea-reminder-sent" | "referral.form-response-submitted" | "referral.back-to-draft" | "referral.fyi-sent" | "referral.email-sent" | "referral.discharged" | "referral.sms-sent" | "referral.sms-status-changed";
5
5
  export declare const TimelineEventType: {
6
6
  readonly DraftCreated: "draft.created";
7
7
  readonly DraftUpdated: "draft.updated";
@@ -14,6 +14,7 @@ export declare const TimelineEventType: {
14
14
  readonly ReferralCancelled: "referral.cancelled";
15
15
  readonly ReferralValidated: "referral.validated";
16
16
  readonly ReferralPendingEmailAck: "referral.pending-email-ack";
17
+ readonly ReferralPendingAcceptance: "referral.pending-acceptance";
17
18
  readonly ApptConfirmed: "appt.confirmed";
18
19
  readonly ApptCancelled: "appt.cancelled";
19
20
  readonly ApptNoShow: "appt.no-show";
@@ -16,6 +16,7 @@ exports.TimelineEventType = {
16
16
  ReferralCancelled: "referral.cancelled",
17
17
  ReferralValidated: "referral.validated",
18
18
  ReferralPendingEmailAck: "referral.pending-email-ack",
19
+ ReferralPendingAcceptance: "referral.pending-acceptance",
19
20
  ApptConfirmed: "appt.confirmed",
20
21
  ApptCancelled: "appt.cancelled",
21
22
  ApptNoShow: "appt.no-show",
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.64";
1
+ export declare const SDK_VERSION = "0.0.65";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.64";
4
+ exports.SDK_VERSION = "0.0.65";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengovsg/refx-ts-sdk",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "private": false,
5
5
  "repository": "https://github.com/opengovsg/refer-ts-sdk",
6
6
  "main": "./index.js",
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.64";
1
+ export declare const SDK_VERSION = "0.0.65";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.64";
4
+ exports.SDK_VERSION = "0.0.65";