@opengovsg/refx-ts-sdk 0.0.25 → 0.0.27

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/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.js +9 -9
  7. package/api/resources/webhooks/client/Client.js +2 -2
  8. package/api/types/Form.d.ts +3 -0
  9. package/api/types/FullReferralDto.d.ts +2 -2
  10. package/api/types/FullReferralDtoStatus.d.ts +3 -1
  11. package/api/types/FullReferralDtoStatus.js +2 -0
  12. package/api/types/PublicReferralDto.d.ts +2 -0
  13. package/api/types/ReferralDto.d.ts +2 -2
  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/index.d.ts +1 -1
  21. package/api/types/index.js +1 -1
  22. package/dist/api/resources/eligibility/client/Client.js +1 -1
  23. package/dist/api/resources/health/client/Client.js +1 -1
  24. package/dist/api/resources/notes/client/Client.js +1 -1
  25. package/dist/api/resources/offerings/client/Client.js +2 -2
  26. package/dist/api/resources/public/client/Client.js +1 -1
  27. package/dist/api/resources/referrals/client/Client.js +9 -9
  28. package/dist/api/resources/webhooks/client/Client.js +2 -2
  29. package/dist/api/types/Form.d.ts +3 -0
  30. package/dist/api/types/FullReferralDto.d.ts +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/PublicReferralDto.d.ts +2 -0
  34. package/dist/api/types/ReferralDto.d.ts +2 -2
  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/index.d.ts +1 -1
  42. package/dist/api/types/index.js +1 -1
  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
@@ -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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
73
73
  contentType: "application/json",
74
74
  queryParameters: _queryParams,
75
75
  requestType: "json",
@@ -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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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,
@@ -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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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,
@@ -1,8 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as ReferralExchange from "../index";
4
5
  export interface Form {
6
+ id: string;
5
7
  url: string;
6
8
  description: string;
7
9
  isFilled: boolean;
10
+ formResponses: ReferralExchange.FormResponse[];
8
11
  }
@@ -15,6 +15,8 @@ export interface FullReferralDto {
15
15
  formResponses: ReferralExchange.FormResponse[];
16
16
  /** Form ID of the referral form */
17
17
  formId?: string;
18
+ /** List of forms required to complete the referral */
19
+ forms?: ReferralExchange.Form[];
18
20
  attachments: ReferralExchange.AttachmentDto[];
19
21
  status: ReferralExchange.FullReferralDtoStatus;
20
22
  /** Timeslot start time (ISO datetime) */
@@ -22,7 +24,5 @@ export interface FullReferralDto {
22
24
  notes: ReferralExchange.NoteDto[];
23
25
  /** URL of the FormSG required to complete the referral */
24
26
  formUrl?: string;
25
- /** List of forms required to complete the referral */
26
- forms?: ReferralExchange.Form[];
27
27
  timelineEvents: ReferralExchange.TimelineEventDto[];
28
28
  }
@@ -1,17 +1,19 @@
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" | "pending-singhealth-formsg" | "pending-singhealth-call-centre" | "referral-confirmed-pending-appt" | "pending-email-ack" | "pending-amend-timeslot" | "confirmed" | "rejected" | "failed" | "pending-cancelled" | "cancelled";
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";
5
5
  export declare const FullReferralDtoStatus: {
6
6
  readonly Draft: "draft";
7
7
  readonly Created: "created";
8
8
  readonly ProcessingHas: "processing-has";
9
9
  readonly ProcessingPb: "processing-pb";
10
10
  readonly ProcessingEa: "processing-ea";
11
+ readonly ProcessingBright: "processing-bright";
11
12
  readonly PendingSinghealthFormsg: "pending-singhealth-formsg";
12
13
  readonly PendingSinghealthCallCentre: "pending-singhealth-call-centre";
13
14
  readonly ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt";
14
15
  readonly PendingEmailAck: "pending-email-ack";
16
+ readonly SubmittedToBright: "submitted-to-bright";
15
17
  readonly PendingAmendTimeslot: "pending-amend-timeslot";
16
18
  readonly Confirmed: "confirmed";
17
19
  readonly Rejected: "rejected";
@@ -10,10 +10,12 @@ exports.FullReferralDtoStatus = {
10
10
  ProcessingHas: "processing-has",
11
11
  ProcessingPb: "processing-pb",
12
12
  ProcessingEa: "processing-ea",
13
+ ProcessingBright: "processing-bright",
13
14
  PendingSinghealthFormsg: "pending-singhealth-formsg",
14
15
  PendingSinghealthCallCentre: "pending-singhealth-call-centre",
15
16
  ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt",
16
17
  PendingEmailAck: "pending-email-ack",
18
+ SubmittedToBright: "submitted-to-bright",
17
19
  PendingAmendTimeslot: "pending-amend-timeslot",
18
20
  Confirmed: "confirmed",
19
21
  Rejected: "rejected",
@@ -15,5 +15,7 @@ export interface PublicReferralDto {
15
15
  formResponses: ReferralExchange.FormResponse[];
16
16
  /** Form ID of the referral form */
17
17
  formId?: string;
18
+ /** List of forms required to complete the referral */
19
+ forms?: ReferralExchange.Form[];
18
20
  attachments: ReferralExchange.AttachmentDto[];
19
21
  }
@@ -15,6 +15,8 @@ export interface ReferralDto {
15
15
  formResponses: ReferralExchange.FormResponse[];
16
16
  /** Form ID of the referral form */
17
17
  formId?: string;
18
+ /** List of forms required to complete the referral */
19
+ forms?: ReferralExchange.Form[];
18
20
  attachments: ReferralExchange.AttachmentDto[];
19
21
  status: ReferralExchange.ReferralDtoStatus;
20
22
  /** Timeslot start time (ISO datetime) */
@@ -22,6 +24,4 @@ export interface ReferralDto {
22
24
  notes: ReferralExchange.NoteDto[];
23
25
  /** URL of the FormSG required to complete the referral */
24
26
  formUrl?: string;
25
- /** List of forms required to complete the referral */
26
- forms?: ReferralExchange.Form[];
27
27
  }
@@ -1,17 +1,19 @@
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" | "pending-singhealth-formsg" | "pending-singhealth-call-centre" | "referral-confirmed-pending-appt" | "pending-email-ack" | "pending-amend-timeslot" | "confirmed" | "rejected" | "failed" | "pending-cancelled" | "cancelled";
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";
5
5
  export declare const ReferralDtoStatus: {
6
6
  readonly Draft: "draft";
7
7
  readonly Created: "created";
8
8
  readonly ProcessingHas: "processing-has";
9
9
  readonly ProcessingPb: "processing-pb";
10
10
  readonly ProcessingEa: "processing-ea";
11
+ readonly ProcessingBright: "processing-bright";
11
12
  readonly PendingSinghealthFormsg: "pending-singhealth-formsg";
12
13
  readonly PendingSinghealthCallCentre: "pending-singhealth-call-centre";
13
14
  readonly ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt";
14
15
  readonly PendingEmailAck: "pending-email-ack";
16
+ readonly SubmittedToBright: "submitted-to-bright";
15
17
  readonly PendingAmendTimeslot: "pending-amend-timeslot";
16
18
  readonly Confirmed: "confirmed";
17
19
  readonly Rejected: "rejected";
@@ -10,10 +10,12 @@ exports.ReferralDtoStatus = {
10
10
  ProcessingHas: "processing-has",
11
11
  ProcessingPb: "processing-pb",
12
12
  ProcessingEa: "processing-ea",
13
+ ProcessingBright: "processing-bright",
13
14
  PendingSinghealthFormsg: "pending-singhealth-formsg",
14
15
  PendingSinghealthCallCentre: "pending-singhealth-call-centre",
15
16
  ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt",
16
17
  PendingEmailAck: "pending-email-ack",
18
+ SubmittedToBright: "submitted-to-bright",
17
19
  PendingAmendTimeslot: "pending-amend-timeslot",
18
20
  Confirmed: "confirmed",
19
21
  Rejected: "rejected",
@@ -1,10 +1,11 @@
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";
4
+ export declare type System = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright";
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
+ readonly Bright: "Bright";
10
11
  };
@@ -9,4 +9,5 @@ exports.System = {
9
9
  PartnersBuddy: "PartnersBuddy",
10
10
  Refer: "Refer",
11
11
  EmailAck: "EmailAck",
12
+ Bright: "Bright",
12
13
  };
@@ -4,10 +4,11 @@
4
4
  /**
5
5
  * System that produced the event
6
6
  */
7
- export declare type TimelineEventDtoSystem = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck";
7
+ export declare type TimelineEventDtoSystem = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright";
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
+ readonly Bright: "Bright";
13
14
  };
@@ -9,4 +9,5 @@ exports.TimelineEventDtoSystem = {
9
9
  PartnersBuddy: "PartnersBuddy",
10
10
  Refer: "Refer",
11
11
  EmailAck: "EmailAck",
12
+ Bright: "Bright",
12
13
  };
@@ -12,9 +12,9 @@ export * from "./GetReferralPatientDto";
12
12
  export * from "./ReferringDoctorDto";
13
13
  export * from "./FormResponseAnswer";
14
14
  export * from "./FormResponse";
15
+ export * from "./Form";
15
16
  export * from "./AttachmentDto";
16
17
  export * from "./NoteDto";
17
- export * from "./Form";
18
18
  export * from "./ReferralDtoStatus";
19
19
  export * from "./ReferralDto";
20
20
  export * from "./PaginatedQuery";
@@ -28,9 +28,9 @@ __exportStar(require("./GetReferralPatientDto"), exports);
28
28
  __exportStar(require("./ReferringDoctorDto"), exports);
29
29
  __exportStar(require("./FormResponseAnswer"), exports);
30
30
  __exportStar(require("./FormResponse"), exports);
31
+ __exportStar(require("./Form"), exports);
31
32
  __exportStar(require("./AttachmentDto"), exports);
32
33
  __exportStar(require("./NoteDto"), exports);
33
- __exportStar(require("./Form"), exports);
34
34
  __exportStar(require("./ReferralDtoStatus"), exports);
35
35
  __exportStar(require("./ReferralDto"), exports);
36
36
  __exportStar(require("./PaginatedQuery"), 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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
73
73
  contentType: "application/json",
74
74
  queryParameters: _queryParams,
75
75
  requestType: "json",
@@ -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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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,
@@ -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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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.25", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.25", "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.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),
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,
@@ -1,8 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as ReferralExchange from "../index";
4
5
  export interface Form {
6
+ id: string;
5
7
  url: string;
6
8
  description: string;
7
9
  isFilled: boolean;
10
+ formResponses: ReferralExchange.FormResponse[];
8
11
  }
@@ -15,6 +15,8 @@ export interface FullReferralDto {
15
15
  formResponses: ReferralExchange.FormResponse[];
16
16
  /** Form ID of the referral form */
17
17
  formId?: string;
18
+ /** List of forms required to complete the referral */
19
+ forms?: ReferralExchange.Form[];
18
20
  attachments: ReferralExchange.AttachmentDto[];
19
21
  status: ReferralExchange.FullReferralDtoStatus;
20
22
  /** Timeslot start time (ISO datetime) */
@@ -22,7 +24,5 @@ export interface FullReferralDto {
22
24
  notes: ReferralExchange.NoteDto[];
23
25
  /** URL of the FormSG required to complete the referral */
24
26
  formUrl?: string;
25
- /** List of forms required to complete the referral */
26
- forms?: ReferralExchange.Form[];
27
27
  timelineEvents: ReferralExchange.TimelineEventDto[];
28
28
  }
@@ -1,17 +1,19 @@
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" | "pending-singhealth-formsg" | "pending-singhealth-call-centre" | "referral-confirmed-pending-appt" | "pending-email-ack" | "pending-amend-timeslot" | "confirmed" | "rejected" | "failed" | "pending-cancelled" | "cancelled";
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";
5
5
  export declare const FullReferralDtoStatus: {
6
6
  readonly Draft: "draft";
7
7
  readonly Created: "created";
8
8
  readonly ProcessingHas: "processing-has";
9
9
  readonly ProcessingPb: "processing-pb";
10
10
  readonly ProcessingEa: "processing-ea";
11
+ readonly ProcessingBright: "processing-bright";
11
12
  readonly PendingSinghealthFormsg: "pending-singhealth-formsg";
12
13
  readonly PendingSinghealthCallCentre: "pending-singhealth-call-centre";
13
14
  readonly ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt";
14
15
  readonly PendingEmailAck: "pending-email-ack";
16
+ readonly SubmittedToBright: "submitted-to-bright";
15
17
  readonly PendingAmendTimeslot: "pending-amend-timeslot";
16
18
  readonly Confirmed: "confirmed";
17
19
  readonly Rejected: "rejected";
@@ -10,10 +10,12 @@ exports.FullReferralDtoStatus = {
10
10
  ProcessingHas: "processing-has",
11
11
  ProcessingPb: "processing-pb",
12
12
  ProcessingEa: "processing-ea",
13
+ ProcessingBright: "processing-bright",
13
14
  PendingSinghealthFormsg: "pending-singhealth-formsg",
14
15
  PendingSinghealthCallCentre: "pending-singhealth-call-centre",
15
16
  ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt",
16
17
  PendingEmailAck: "pending-email-ack",
18
+ SubmittedToBright: "submitted-to-bright",
17
19
  PendingAmendTimeslot: "pending-amend-timeslot",
18
20
  Confirmed: "confirmed",
19
21
  Rejected: "rejected",
@@ -15,5 +15,7 @@ export interface PublicReferralDto {
15
15
  formResponses: ReferralExchange.FormResponse[];
16
16
  /** Form ID of the referral form */
17
17
  formId?: string;
18
+ /** List of forms required to complete the referral */
19
+ forms?: ReferralExchange.Form[];
18
20
  attachments: ReferralExchange.AttachmentDto[];
19
21
  }
@@ -15,6 +15,8 @@ export interface ReferralDto {
15
15
  formResponses: ReferralExchange.FormResponse[];
16
16
  /** Form ID of the referral form */
17
17
  formId?: string;
18
+ /** List of forms required to complete the referral */
19
+ forms?: ReferralExchange.Form[];
18
20
  attachments: ReferralExchange.AttachmentDto[];
19
21
  status: ReferralExchange.ReferralDtoStatus;
20
22
  /** Timeslot start time (ISO datetime) */
@@ -22,6 +24,4 @@ export interface ReferralDto {
22
24
  notes: ReferralExchange.NoteDto[];
23
25
  /** URL of the FormSG required to complete the referral */
24
26
  formUrl?: string;
25
- /** List of forms required to complete the referral */
26
- forms?: ReferralExchange.Form[];
27
27
  }
@@ -1,17 +1,19 @@
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" | "pending-singhealth-formsg" | "pending-singhealth-call-centre" | "referral-confirmed-pending-appt" | "pending-email-ack" | "pending-amend-timeslot" | "confirmed" | "rejected" | "failed" | "pending-cancelled" | "cancelled";
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";
5
5
  export declare const ReferralDtoStatus: {
6
6
  readonly Draft: "draft";
7
7
  readonly Created: "created";
8
8
  readonly ProcessingHas: "processing-has";
9
9
  readonly ProcessingPb: "processing-pb";
10
10
  readonly ProcessingEa: "processing-ea";
11
+ readonly ProcessingBright: "processing-bright";
11
12
  readonly PendingSinghealthFormsg: "pending-singhealth-formsg";
12
13
  readonly PendingSinghealthCallCentre: "pending-singhealth-call-centre";
13
14
  readonly ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt";
14
15
  readonly PendingEmailAck: "pending-email-ack";
16
+ readonly SubmittedToBright: "submitted-to-bright";
15
17
  readonly PendingAmendTimeslot: "pending-amend-timeslot";
16
18
  readonly Confirmed: "confirmed";
17
19
  readonly Rejected: "rejected";
@@ -10,10 +10,12 @@ exports.ReferralDtoStatus = {
10
10
  ProcessingHas: "processing-has",
11
11
  ProcessingPb: "processing-pb",
12
12
  ProcessingEa: "processing-ea",
13
+ ProcessingBright: "processing-bright",
13
14
  PendingSinghealthFormsg: "pending-singhealth-formsg",
14
15
  PendingSinghealthCallCentre: "pending-singhealth-call-centre",
15
16
  ReferralConfirmedPendingAppt: "referral-confirmed-pending-appt",
16
17
  PendingEmailAck: "pending-email-ack",
18
+ SubmittedToBright: "submitted-to-bright",
17
19
  PendingAmendTimeslot: "pending-amend-timeslot",
18
20
  Confirmed: "confirmed",
19
21
  Rejected: "rejected",
@@ -1,10 +1,11 @@
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";
4
+ export declare type System = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright";
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
+ readonly Bright: "Bright";
10
11
  };
@@ -9,4 +9,5 @@ exports.System = {
9
9
  PartnersBuddy: "PartnersBuddy",
10
10
  Refer: "Refer",
11
11
  EmailAck: "EmailAck",
12
+ Bright: "Bright",
12
13
  };
@@ -4,10 +4,11 @@
4
4
  /**
5
5
  * System that produced the event
6
6
  */
7
- export declare type TimelineEventDtoSystem = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck";
7
+ export declare type TimelineEventDtoSystem = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright";
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
+ readonly Bright: "Bright";
13
14
  };
@@ -9,4 +9,5 @@ exports.TimelineEventDtoSystem = {
9
9
  PartnersBuddy: "PartnersBuddy",
10
10
  Refer: "Refer",
11
11
  EmailAck: "EmailAck",
12
+ Bright: "Bright",
12
13
  };
@@ -12,9 +12,9 @@ export * from "./GetReferralPatientDto";
12
12
  export * from "./ReferringDoctorDto";
13
13
  export * from "./FormResponseAnswer";
14
14
  export * from "./FormResponse";
15
+ export * from "./Form";
15
16
  export * from "./AttachmentDto";
16
17
  export * from "./NoteDto";
17
- export * from "./Form";
18
18
  export * from "./ReferralDtoStatus";
19
19
  export * from "./ReferralDto";
20
20
  export * from "./PaginatedQuery";
@@ -28,9 +28,9 @@ __exportStar(require("./GetReferralPatientDto"), exports);
28
28
  __exportStar(require("./ReferringDoctorDto"), exports);
29
29
  __exportStar(require("./FormResponseAnswer"), exports);
30
30
  __exportStar(require("./FormResponse"), exports);
31
+ __exportStar(require("./Form"), exports);
31
32
  __exportStar(require("./AttachmentDto"), exports);
32
33
  __exportStar(require("./NoteDto"), exports);
33
- __exportStar(require("./Form"), exports);
34
34
  __exportStar(require("./ReferralDtoStatus"), exports);
35
35
  __exportStar(require("./ReferralDto"), exports);
36
36
  __exportStar(require("./PaginatedQuery"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.25";
1
+ export declare const SDK_VERSION = "0.0.27";
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.25";
4
+ exports.SDK_VERSION = "0.0.27";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengovsg/refx-ts-sdk",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
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.25";
1
+ export declare const SDK_VERSION = "0.0.27";
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.25";
4
+ exports.SDK_VERSION = "0.0.27";