@opengovsg/refx-ts-sdk 0.0.0-develop-1754962921 → 0.0.0-develop-1756100748

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 (78) 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/index.d.ts +1 -2
  4. package/api/resources/index.js +2 -3
  5. package/api/resources/links/client/Client.js +1 -1
  6. package/api/resources/links/client/requests/CreateLinkReqUpsert.d.ts +2 -0
  7. package/api/resources/links/types/CreateLinkReqUpsertResidentialStatus.d.ts +12 -0
  8. package/api/resources/links/types/CreateLinkReqUpsertResidentialStatus.js +11 -0
  9. package/api/resources/links/types/index.d.ts +1 -0
  10. package/api/resources/links/types/index.js +1 -0
  11. package/api/resources/notes/client/Client.js +1 -1
  12. package/api/resources/offerings/client/Client.d.ts +0 -1
  13. package/api/resources/offerings/client/Client.js +3 -4
  14. package/api/resources/offerings/client/requests/ApiHoldingControllerGetRecommendedOfferingRequest.d.ts +1 -3
  15. package/api/resources/offerings/index.d.ts +0 -1
  16. package/api/resources/offerings/index.js +0 -1
  17. package/api/resources/public/client/Client.js +1 -1
  18. package/api/resources/referrals/client/Client.js +9 -9
  19. package/api/resources/referrals/client/requests/CancelReferralReq.d.ts +2 -0
  20. package/api/resources/webhooks/client/Client.js +2 -2
  21. package/api/types/OfferingDto.d.ts +1 -1
  22. package/api/types/OfferingWithAllowedDto.d.ts +1 -1
  23. package/api/types/System.d.ts +2 -1
  24. package/api/types/System.js +1 -0
  25. package/api/types/TimelineEventDtoSystem.d.ts +2 -1
  26. package/api/types/TimelineEventDtoSystem.js +1 -0
  27. package/api/types/index.d.ts +0 -2
  28. package/api/types/index.js +0 -2
  29. package/dist/api/resources/eligibility/client/Client.js +1 -1
  30. package/dist/api/resources/health/client/Client.js +1 -1
  31. package/dist/api/resources/index.d.ts +1 -2
  32. package/dist/api/resources/index.js +2 -3
  33. package/dist/api/resources/links/client/Client.js +1 -1
  34. package/dist/api/resources/links/client/requests/CreateLinkReqUpsert.d.ts +2 -0
  35. package/dist/api/resources/links/types/CreateLinkReqUpsertResidentialStatus.d.ts +12 -0
  36. package/dist/api/resources/links/types/CreateLinkReqUpsertResidentialStatus.js +11 -0
  37. package/dist/api/resources/links/types/index.d.ts +1 -0
  38. package/dist/api/resources/links/types/index.js +1 -0
  39. package/dist/api/resources/notes/client/Client.js +1 -1
  40. package/dist/api/resources/offerings/client/Client.d.ts +0 -1
  41. package/dist/api/resources/offerings/client/Client.js +3 -4
  42. package/dist/api/resources/offerings/client/requests/ApiHoldingControllerGetRecommendedOfferingRequest.d.ts +1 -3
  43. package/dist/api/resources/offerings/index.d.ts +0 -1
  44. package/dist/api/resources/offerings/index.js +0 -1
  45. package/dist/api/resources/public/client/Client.js +1 -1
  46. package/dist/api/resources/referrals/client/Client.js +9 -9
  47. package/dist/api/resources/referrals/client/requests/CancelReferralReq.d.ts +2 -0
  48. package/dist/api/resources/webhooks/client/Client.js +2 -2
  49. package/dist/api/types/OfferingDto.d.ts +1 -1
  50. package/dist/api/types/OfferingWithAllowedDto.d.ts +1 -1
  51. package/dist/api/types/System.d.ts +2 -1
  52. package/dist/api/types/System.js +1 -0
  53. package/dist/api/types/TimelineEventDtoSystem.d.ts +2 -1
  54. package/dist/api/types/TimelineEventDtoSystem.js +1 -0
  55. package/dist/api/types/index.d.ts +0 -2
  56. package/dist/api/types/index.js +0 -2
  57. package/dist/version.d.ts +1 -1
  58. package/dist/version.js +1 -1
  59. package/package.json +1 -1
  60. package/reference.md +0 -1
  61. package/version.d.ts +1 -1
  62. package/version.js +1 -1
  63. package/api/resources/offerings/types/ApiHoldingControllerGetRecommendedOfferingRequestCategory.d.ts +0 -8
  64. package/api/resources/offerings/types/ApiHoldingControllerGetRecommendedOfferingRequestCategory.js +0 -10
  65. package/api/resources/offerings/types/index.d.ts +0 -1
  66. package/api/resources/offerings/types/index.js +0 -17
  67. package/api/types/OfferingDtoCategory.d.ts +0 -11
  68. package/api/types/OfferingDtoCategory.js +0 -10
  69. package/api/types/OfferingWithAllowedDtoCategory.d.ts +0 -11
  70. package/api/types/OfferingWithAllowedDtoCategory.js +0 -10
  71. package/dist/api/resources/offerings/types/ApiHoldingControllerGetRecommendedOfferingRequestCategory.d.ts +0 -8
  72. package/dist/api/resources/offerings/types/ApiHoldingControllerGetRecommendedOfferingRequestCategory.js +0 -10
  73. package/dist/api/resources/offerings/types/index.d.ts +0 -1
  74. package/dist/api/resources/offerings/types/index.js +0 -17
  75. package/dist/api/types/OfferingDtoCategory.d.ts +0 -11
  76. package/dist/api/types/OfferingDtoCategory.js +0 -10
  77. package/dist/api/types/OfferingWithAllowedDtoCategory.d.ts +0 -11
  78. package/dist/api/types/OfferingWithAllowedDtoCategory.js +0 -10
@@ -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.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-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.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-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.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
72
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-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,
@@ -1,10 +1,9 @@
1
- export * as offerings from "./offerings";
2
- export * from "./offerings/types";
3
1
  export * as links from "./links";
4
2
  export * from "./links/types";
5
3
  export * as eligibility from "./eligibility";
6
4
  export * as referrals from "./referrals";
7
5
  export * as notes from "./notes";
6
+ export * as offerings from "./offerings";
8
7
  export * as public_ from "./public";
9
8
  export * as webhooks from "./webhooks";
10
9
  export * as health from "./health";
@@ -36,14 +36,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.health = exports.webhooks = exports.public_ = exports.notes = exports.referrals = exports.eligibility = exports.links = exports.offerings = void 0;
40
- exports.offerings = __importStar(require("./offerings"));
41
- __exportStar(require("./offerings/types"), exports);
39
+ exports.health = exports.webhooks = exports.public_ = exports.offerings = exports.notes = exports.referrals = exports.eligibility = exports.links = void 0;
42
40
  exports.links = __importStar(require("./links"));
43
41
  __exportStar(require("./links/types"), exports);
44
42
  exports.eligibility = __importStar(require("./eligibility"));
45
43
  exports.referrals = __importStar(require("./referrals"));
46
44
  exports.notes = __importStar(require("./notes"));
45
+ exports.offerings = __importStar(require("./offerings"));
47
46
  exports.public_ = __importStar(require("./public"));
48
47
  exports.webhooks = __importStar(require("./webhooks"));
49
48
  exports.health = __importStar(require("./health"));
@@ -79,7 +79,7 @@ class Links {
79
79
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
80
80
  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"),
81
81
  method: "POST",
82
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
83
  contentType: "application/json",
84
84
  requestType: "json",
85
85
  body: request,
@@ -37,4 +37,6 @@ export interface CreateLinkReqUpsert {
37
37
  /** Patient gender */
38
38
  patientGender?: ReferralExchange.CreateLinkReqUpsertPatientGender;
39
39
  address?: ReferralExchange.CreateAddressReq;
40
+ /** Patient residential status */
41
+ residentialStatus?: ReferralExchange.CreateLinkReqUpsertResidentialStatus;
40
42
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Patient residential status
6
+ */
7
+ export type CreateLinkReqUpsertResidentialStatus = "SC" | "PR" | "Foreigner";
8
+ export declare const CreateLinkReqUpsertResidentialStatus: {
9
+ readonly Sc: "SC";
10
+ readonly Pr: "PR";
11
+ readonly Foreigner: "Foreigner";
12
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CreateLinkReqUpsertResidentialStatus = void 0;
7
+ exports.CreateLinkReqUpsertResidentialStatus = {
8
+ Sc: "SC",
9
+ Pr: "PR",
10
+ Foreigner: "Foreigner",
11
+ };
@@ -1 +1,2 @@
1
1
  export * from "./CreateLinkReqUpsertPatientGender";
2
+ export * from "./CreateLinkReqUpsertResidentialStatus";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./CreateLinkReqUpsertPatientGender"), exports);
18
+ __exportStar(require("./CreateLinkReqUpsertResidentialStatus"), exports);
@@ -76,7 +76,7 @@ class Notes {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  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`),
78
78
  method: "POST",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  body: request,
@@ -45,7 +45,6 @@ export declare class Offerings {
45
45
  *
46
46
  * @example
47
47
  * await client.offerings.apiHoldingControllerGetRecommendedOffering({
48
- * category: "aac service",
49
48
  * postalCode: "postalCode"
50
49
  * })
51
50
  */
@@ -84,7 +84,7 @@ class Offerings {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  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"),
86
86
  method: "GET",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-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
88
  contentType: "application/json",
89
89
  queryParameters: _queryParams,
90
90
  requestType: "json",
@@ -130,7 +130,6 @@ class Offerings {
130
130
  *
131
131
  * @example
132
132
  * await client.offerings.apiHoldingControllerGetRecommendedOffering({
133
- * category: "aac service",
134
133
  * postalCode: "postalCode"
135
134
  * })
136
135
  */
@@ -144,7 +143,7 @@ class Offerings {
144
143
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
145
144
  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"),
146
145
  method: "GET",
147
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-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
147
  contentType: "application/json",
149
148
  queryParameters: _queryParams,
150
149
  requestType: "json",
@@ -207,7 +206,7 @@ class Offerings {
207
206
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
208
207
  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`),
209
208
  method: "GET",
210
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
209
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-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
210
  contentType: "application/json",
212
211
  queryParameters: _queryParams,
213
212
  requestType: "json",
@@ -1,11 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as ReferralExchange from "../../../../index";
5
4
  /**
6
5
  * @example
7
6
  * {
8
- * category: "aac service",
9
7
  * postalCode: "postalCode"
10
8
  * }
11
9
  */
@@ -13,7 +11,7 @@ export interface ApiHoldingControllerGetRecommendedOfferingRequest {
13
11
  /**
14
12
  * Offering category to retrieve recommendation for
15
13
  */
16
- category: ReferralExchange.ApiHoldingControllerGetRecommendedOfferingRequestCategory;
14
+ category: "aac";
17
15
  /**
18
16
  * Postal code of the patient to retrieve recommendation for
19
17
  */
@@ -1,2 +1 @@
1
- export * from "./types";
2
1
  export * from "./client";
@@ -14,5 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types"), exports);
18
17
  __exportStar(require("./client"), exports);
@@ -84,7 +84,7 @@ class Public {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  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)}`),
86
86
  method: "GET",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-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
88
  contentType: "application/json",
89
89
  queryParameters: _queryParams,
90
90
  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.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
110
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
111
111
  contentType: "application/json",
112
112
  queryParameters: _queryParams,
113
113
  requestType: "json",
@@ -183,7 +183,7 @@ class Referrals {
183
183
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
184
184
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/referrals"),
185
185
  method: "POST",
186
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
186
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
187
187
  contentType: "application/json",
188
188
  requestType: "json",
189
189
  body: request,
@@ -249,7 +249,7 @@ class Referrals {
249
249
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
250
250
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}`),
251
251
  method: "GET",
252
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
252
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
253
253
  contentType: "application/json",
254
254
  queryParameters: _queryParams,
255
255
  requestType: "json",
@@ -303,7 +303,7 @@ class Referrals {
303
303
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
304
304
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}`),
305
305
  method: "DELETE",
306
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
306
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
307
307
  contentType: "application/json",
308
308
  requestType: "json",
309
309
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -355,7 +355,7 @@ class Referrals {
355
355
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
356
356
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/cancel`),
357
357
  method: "POST",
358
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
358
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
359
359
  contentType: "application/json",
360
360
  requestType: "json",
361
361
  body: request,
@@ -410,7 +410,7 @@ class Referrals {
410
410
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
411
411
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/amend`),
412
412
  method: "POST",
413
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
413
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
414
414
  contentType: "application/json",
415
415
  requestType: "json",
416
416
  body: request,
@@ -463,7 +463,7 @@ class Referrals {
463
463
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
464
464
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/accept`),
465
465
  method: "POST",
466
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
466
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
467
467
  contentType: "application/json",
468
468
  requestType: "json",
469
469
  body: request,
@@ -518,7 +518,7 @@ class Referrals {
518
518
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
519
519
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/reject`),
520
520
  method: "POST",
521
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
521
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
522
522
  contentType: "application/json",
523
523
  requestType: "json",
524
524
  body: request,
@@ -570,7 +570,7 @@ class Referrals {
570
570
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
571
571
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/back-to-draft`),
572
572
  method: "POST",
573
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
573
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
574
574
  contentType: "application/json",
575
575
  requestType: "json",
576
576
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -10,4 +10,6 @@ export interface CancelReferralReq {
10
10
  cancelledByUin?: string;
11
11
  /** Name of the person cancelling the referral, if available */
12
12
  cancelledByName?: string;
13
+ /** Optional note to save when cancelling the referral */
14
+ cancelNote?: string;
13
15
  }
@@ -69,7 +69,7 @@ class Webhooks {
69
69
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
70
70
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/webhooks/formsg/singhealth-profile"),
71
71
  method: "POST",
72
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
72
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
73
73
  contentType: "application/json",
74
74
  requestType: "json",
75
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -113,7 +113,7 @@ class Webhooks {
113
113
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
114
114
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/webhooks/formsg/form-submission/${encodeURIComponent(formId)}`),
115
115
  method: "POST",
116
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-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,
@@ -17,5 +17,5 @@ export interface OfferingDto {
17
17
  isSubsidisable: boolean;
18
18
  timeslotPolicy: ReferralExchange.TimeslotPolicy;
19
19
  /** Category of the offering. Used to group offerings together. */
20
- category?: ReferralExchange.OfferingDtoCategory;
20
+ category?: "aac";
21
21
  }
@@ -17,7 +17,7 @@ export interface OfferingWithAllowedDto {
17
17
  isSubsidisable: boolean;
18
18
  timeslotPolicy: ReferralExchange.TimeslotPolicy;
19
19
  /** Category of the offering. Used to group offerings together. */
20
- category?: ReferralExchange.OfferingWithAllowedDtoCategory;
20
+ category?: "aac";
21
21
  /** Whether the offering is allowed based on the provided query parameters */
22
22
  isAllowed: boolean;
23
23
  }
@@ -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";
4
+ export type System = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright" | "FYI" | "AAC" | "GPConnect";
5
5
  export declare const System: {
6
6
  readonly Has: "HAS";
7
7
  readonly PartnersBuddy: "PartnersBuddy";
@@ -10,4 +10,5 @@ export declare const System: {
10
10
  readonly Bright: "Bright";
11
11
  readonly Fyi: "FYI";
12
12
  readonly Aac: "AAC";
13
+ readonly GpConnect: "GPConnect";
13
14
  };
@@ -12,4 +12,5 @@ exports.System = {
12
12
  Bright: "Bright",
13
13
  Fyi: "FYI",
14
14
  Aac: "AAC",
15
+ GpConnect: "GPConnect",
15
16
  };
@@ -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";
7
+ export type TimelineEventDtoSystem = "HAS" | "PartnersBuddy" | "Refer" | "EmailAck" | "Bright" | "FYI" | "AAC" | "GPConnect";
8
8
  export declare const TimelineEventDtoSystem: {
9
9
  readonly Has: "HAS";
10
10
  readonly PartnersBuddy: "PartnersBuddy";
@@ -13,4 +13,5 @@ export declare const TimelineEventDtoSystem: {
13
13
  readonly Bright: "Bright";
14
14
  readonly Fyi: "FYI";
15
15
  readonly Aac: "AAC";
16
+ readonly GpConnect: "GPConnect";
16
17
  };
@@ -12,4 +12,5 @@ exports.TimelineEventDtoSystem = {
12
12
  Bright: "Bright",
13
13
  Fyi: "FYI",
14
14
  Aac: "AAC",
15
+ GpConnect: "GPConnect",
15
16
  };
@@ -11,7 +11,6 @@ export * from "./ReferralRole";
11
11
  export * from "./InstitutionCoreDto";
12
12
  export * from "./System";
13
13
  export * from "./TimeslotPolicy";
14
- export * from "./OfferingDtoCategory";
15
14
  export * from "./OfferingDto";
16
15
  export * from "./CreateAddressReq";
17
16
  export * from "./GetReferralPatientDtoGender";
@@ -39,7 +38,6 @@ export * from "./FullReferralDto";
39
38
  export * from "./CreatePatientReqGender";
40
39
  export * from "./CreatePatientReqResidentialStatus";
41
40
  export * from "./CreatePatientReq";
42
- export * from "./OfferingWithAllowedDtoCategory";
43
41
  export * from "./OfferingWithAllowedDto";
44
42
  export * from "./Timeslot";
45
43
  export * from "./TriggerEmailReminderBody";
@@ -27,7 +27,6 @@ __exportStar(require("./ReferralRole"), exports);
27
27
  __exportStar(require("./InstitutionCoreDto"), exports);
28
28
  __exportStar(require("./System"), exports);
29
29
  __exportStar(require("./TimeslotPolicy"), exports);
30
- __exportStar(require("./OfferingDtoCategory"), exports);
31
30
  __exportStar(require("./OfferingDto"), exports);
32
31
  __exportStar(require("./CreateAddressReq"), exports);
33
32
  __exportStar(require("./GetReferralPatientDtoGender"), exports);
@@ -55,7 +54,6 @@ __exportStar(require("./FullReferralDto"), exports);
55
54
  __exportStar(require("./CreatePatientReqGender"), exports);
56
55
  __exportStar(require("./CreatePatientReqResidentialStatus"), exports);
57
56
  __exportStar(require("./CreatePatientReq"), exports);
58
- __exportStar(require("./OfferingWithAllowedDtoCategory"), exports);
59
57
  __exportStar(require("./OfferingWithAllowedDto"), exports);
60
58
  __exportStar(require("./Timeslot"), exports);
61
59
  __exportStar(require("./TriggerEmailReminderBody"), exports);
@@ -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.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-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.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-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.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
72
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-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,
@@ -1,10 +1,9 @@
1
- export * as offerings from "./offerings";
2
- export * from "./offerings/types";
3
1
  export * as links from "./links";
4
2
  export * from "./links/types";
5
3
  export * as eligibility from "./eligibility";
6
4
  export * as referrals from "./referrals";
7
5
  export * as notes from "./notes";
6
+ export * as offerings from "./offerings";
8
7
  export * as public_ from "./public";
9
8
  export * as webhooks from "./webhooks";
10
9
  export * as health from "./health";
@@ -36,14 +36,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.health = exports.webhooks = exports.public_ = exports.notes = exports.referrals = exports.eligibility = exports.links = exports.offerings = void 0;
40
- exports.offerings = __importStar(require("./offerings"));
41
- __exportStar(require("./offerings/types"), exports);
39
+ exports.health = exports.webhooks = exports.public_ = exports.offerings = exports.notes = exports.referrals = exports.eligibility = exports.links = void 0;
42
40
  exports.links = __importStar(require("./links"));
43
41
  __exportStar(require("./links/types"), exports);
44
42
  exports.eligibility = __importStar(require("./eligibility"));
45
43
  exports.referrals = __importStar(require("./referrals"));
46
44
  exports.notes = __importStar(require("./notes"));
45
+ exports.offerings = __importStar(require("./offerings"));
47
46
  exports.public_ = __importStar(require("./public"));
48
47
  exports.webhooks = __importStar(require("./webhooks"));
49
48
  exports.health = __importStar(require("./health"));
@@ -79,7 +79,7 @@ class Links {
79
79
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
80
80
  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"),
81
81
  method: "POST",
82
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
83
  contentType: "application/json",
84
84
  requestType: "json",
85
85
  body: request,
@@ -37,4 +37,6 @@ export interface CreateLinkReqUpsert {
37
37
  /** Patient gender */
38
38
  patientGender?: ReferralExchange.CreateLinkReqUpsertPatientGender;
39
39
  address?: ReferralExchange.CreateAddressReq;
40
+ /** Patient residential status */
41
+ residentialStatus?: ReferralExchange.CreateLinkReqUpsertResidentialStatus;
40
42
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Patient residential status
6
+ */
7
+ export type CreateLinkReqUpsertResidentialStatus = "SC" | "PR" | "Foreigner";
8
+ export declare const CreateLinkReqUpsertResidentialStatus: {
9
+ readonly Sc: "SC";
10
+ readonly Pr: "PR";
11
+ readonly Foreigner: "Foreigner";
12
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CreateLinkReqUpsertResidentialStatus = void 0;
7
+ exports.CreateLinkReqUpsertResidentialStatus = {
8
+ Sc: "SC",
9
+ Pr: "PR",
10
+ Foreigner: "Foreigner",
11
+ };
@@ -1 +1,2 @@
1
1
  export * from "./CreateLinkReqUpsertPatientGender";
2
+ export * from "./CreateLinkReqUpsertResidentialStatus";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./CreateLinkReqUpsertPatientGender"), exports);
18
+ __exportStar(require("./CreateLinkReqUpsertResidentialStatus"), exports);
@@ -76,7 +76,7 @@ class Notes {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  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`),
78
78
  method: "POST",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1754962921", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1754962921", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.0-develop-1756100748", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1756100748", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  body: request,
@@ -45,7 +45,6 @@ export declare class Offerings {
45
45
  *
46
46
  * @example
47
47
  * await client.offerings.apiHoldingControllerGetRecommendedOffering({
48
- * category: "aac service",
49
48
  * postalCode: "postalCode"
50
49
  * })
51
50
  */