@opengovsg/refx-ts-sdk 0.0.0-develop-1753420242 → 0.0.0-develop-1754962921
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.
- package/Client.d.ts +0 -3
- package/Client.js +4 -9
- package/api/resources/eligibility/client/Client.js +1 -1
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/index.d.ts +0 -2
- package/api/resources/index.js +1 -3
- package/api/resources/links/client/Client.js +1 -1
- package/api/resources/notes/client/Client.js +1 -1
- package/api/resources/offerings/client/Client.js +3 -3
- package/api/resources/public/client/Client.js +1 -1
- package/api/resources/referrals/client/Client.js +9 -9
- package/api/resources/webhooks/client/Client.js +2 -2
- package/api/types/CreatePatientReq.d.ts +2 -0
- package/api/types/CreatePatientReqResidentialStatus.d.ts +12 -0
- package/api/types/CreatePatientReqResidentialStatus.js +11 -0
- package/api/types/GetReferralPatientDto.d.ts +2 -0
- package/api/types/GetReferralPatientDtoResidentialStatus.d.ts +12 -0
- package/api/types/GetReferralPatientDtoResidentialStatus.js +11 -0
- package/api/types/ReferrerIdType.d.ts +2 -1
- package/api/types/ReferrerIdType.js +1 -0
- package/api/{resources/aac/client/requests → types}/UpdateAacBoundaryReq.d.ts +0 -4
- package/api/{resources/aac/client/requests → types}/UpdateAacReq.d.ts +0 -4
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/Client.d.ts +0 -3
- package/dist/Client.js +4 -9
- package/dist/api/resources/eligibility/client/Client.js +1 -1
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +0 -2
- package/dist/api/resources/index.js +1 -3
- package/dist/api/resources/links/client/Client.js +1 -1
- package/dist/api/resources/notes/client/Client.js +1 -1
- package/dist/api/resources/offerings/client/Client.js +3 -3
- package/dist/api/resources/public/client/Client.js +1 -1
- package/dist/api/resources/referrals/client/Client.js +9 -9
- package/dist/api/resources/webhooks/client/Client.js +2 -2
- package/dist/api/types/CreatePatientReq.d.ts +2 -0
- package/dist/api/types/CreatePatientReqResidentialStatus.d.ts +12 -0
- package/dist/api/types/CreatePatientReqResidentialStatus.js +11 -0
- package/dist/api/types/GetReferralPatientDto.d.ts +2 -0
- package/dist/api/types/GetReferralPatientDtoResidentialStatus.d.ts +12 -0
- package/dist/api/types/GetReferralPatientDtoResidentialStatus.js +11 -0
- package/dist/api/types/ReferrerIdType.d.ts +2 -1
- package/dist/api/types/ReferrerIdType.js +1 -0
- package/dist/api/{resources/aac/client/requests → types}/UpdateAacBoundaryReq.d.ts +0 -4
- package/dist/api/{resources/aac/client/requests → types}/UpdateAacReq.d.ts +0 -4
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +0 -98
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/aac/client/Client.d.ts +0 -52
- package/api/resources/aac/client/Client.js +0 -172
- package/api/resources/aac/client/index.d.ts +0 -1
- package/api/resources/aac/client/index.js +0 -17
- package/api/resources/aac/client/requests/index.d.ts +0 -2
- package/api/resources/aac/client/requests/index.js +0 -2
- package/api/resources/aac/index.d.ts +0 -1
- package/api/resources/aac/index.js +0 -17
- package/dist/api/resources/aac/client/Client.d.ts +0 -52
- package/dist/api/resources/aac/client/Client.js +0 -172
- package/dist/api/resources/aac/client/index.d.ts +0 -1
- package/dist/api/resources/aac/client/index.js +0 -17
- package/dist/api/resources/aac/client/requests/index.d.ts +0 -2
- package/dist/api/resources/aac/client/requests/index.js +0 -2
- package/dist/api/resources/aac/index.d.ts +0 -1
- package/dist/api/resources/aac/index.js +0 -17
- /package/api/{resources/aac/client/requests → types}/UpdateAacBoundaryReq.js +0 -0
- /package/api/{resources/aac/client/requests → types}/UpdateAacReq.js +0 -0
- /package/dist/api/{resources/aac/client/requests → types}/UpdateAacBoundaryReq.js +0 -0
- /package/dist/api/{resources/aac/client/requests → types}/UpdateAacReq.js +0 -0
|
@@ -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-
|
|
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),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
requestType: "json",
|
|
82
82
|
body: request,
|
|
@@ -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-
|
|
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),
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
queryParameters: _queryParams,
|
|
90
90
|
requestType: "json",
|
|
@@ -144,7 +144,7 @@ class Offerings {
|
|
|
144
144
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
145
145
|
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
146
|
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-
|
|
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),
|
|
148
148
|
contentType: "application/json",
|
|
149
149
|
queryParameters: _queryParams,
|
|
150
150
|
requestType: "json",
|
|
@@ -207,7 +207,7 @@ class Offerings {
|
|
|
207
207
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
208
208
|
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
209
|
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-
|
|
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),
|
|
211
211
|
contentType: "application/json",
|
|
212
212
|
queryParameters: _queryParams,
|
|
213
213
|
requestType: "json",
|
|
@@ -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-
|
|
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),
|
|
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-
|
|
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),
|
|
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-
|
|
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),
|
|
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-
|
|
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),
|
|
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-
|
|
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),
|
|
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-
|
|
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),
|
|
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-
|
|
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),
|
|
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-
|
|
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),
|
|
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-
|
|
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),
|
|
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-
|
|
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),
|
|
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,
|
|
@@ -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-
|
|
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),
|
|
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-
|
|
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),
|
|
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,
|
|
@@ -14,4 +14,6 @@ export interface CreatePatientReq {
|
|
|
14
14
|
/** Patient gender */
|
|
15
15
|
gender: ReferralExchange.CreatePatientReqGender;
|
|
16
16
|
address?: ReferralExchange.CreateAddressReq;
|
|
17
|
+
/** Patient residential status */
|
|
18
|
+
residentialStatus?: ReferralExchange.CreatePatientReqResidentialStatus;
|
|
17
19
|
}
|
|
@@ -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 CreatePatientReqResidentialStatus = "SC" | "PR" | "Foreigner";
|
|
8
|
+
export declare const CreatePatientReqResidentialStatus: {
|
|
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.CreatePatientReqResidentialStatus = void 0;
|
|
7
|
+
exports.CreatePatientReqResidentialStatus = {
|
|
8
|
+
Sc: "SC",
|
|
9
|
+
Pr: "PR",
|
|
10
|
+
Foreigner: "Foreigner",
|
|
11
|
+
};
|
|
@@ -14,6 +14,8 @@ export interface GetReferralPatientDto {
|
|
|
14
14
|
/** Patient gender */
|
|
15
15
|
gender: ReferralExchange.GetReferralPatientDtoGender;
|
|
16
16
|
address?: ReferralExchange.CreateAddressReq;
|
|
17
|
+
/** Patient residential status */
|
|
18
|
+
residentialStatus?: ReferralExchange.GetReferralPatientDtoResidentialStatus;
|
|
17
19
|
/** Current CHAS status */
|
|
18
20
|
chasStatus: string;
|
|
19
21
|
}
|
|
@@ -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 GetReferralPatientDtoResidentialStatus = "SC" | "PR" | "Foreigner";
|
|
8
|
+
export declare const GetReferralPatientDtoResidentialStatus: {
|
|
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.GetReferralPatientDtoResidentialStatus = void 0;
|
|
7
|
+
exports.GetReferralPatientDtoResidentialStatus = {
|
|
8
|
+
Sc: "SC",
|
|
9
|
+
Pr: "PR",
|
|
10
|
+
Foreigner: "Foreigner",
|
|
11
|
+
};
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Type of ID specified in referrerId.
|
|
6
6
|
*/
|
|
7
|
-
export type ReferrerIdType = "mcr" | "nric" | "email";
|
|
7
|
+
export type ReferrerIdType = "mcr" | "nric" | "email" | "brightUserId";
|
|
8
8
|
export declare const ReferrerIdType: {
|
|
9
9
|
readonly Mcr: "mcr";
|
|
10
10
|
readonly Nric: "nric";
|
|
11
11
|
readonly Email: "email";
|
|
12
|
+
readonly BrightUserId: "brightUserId";
|
|
12
13
|
};
|
|
@@ -15,6 +15,7 @@ export * from "./OfferingDtoCategory";
|
|
|
15
15
|
export * from "./OfferingDto";
|
|
16
16
|
export * from "./CreateAddressReq";
|
|
17
17
|
export * from "./GetReferralPatientDtoGender";
|
|
18
|
+
export * from "./GetReferralPatientDtoResidentialStatus";
|
|
18
19
|
export * from "./GetReferralPatientDto";
|
|
19
20
|
export * from "./ReferringDoctorDto";
|
|
20
21
|
export * from "./FormResponseAnswer";
|
|
@@ -36,6 +37,7 @@ export * from "./ReferralLinkDto";
|
|
|
36
37
|
export * from "./FullReferralDtoStatus";
|
|
37
38
|
export * from "./FullReferralDto";
|
|
38
39
|
export * from "./CreatePatientReqGender";
|
|
40
|
+
export * from "./CreatePatientReqResidentialStatus";
|
|
39
41
|
export * from "./CreatePatientReq";
|
|
40
42
|
export * from "./OfferingWithAllowedDtoCategory";
|
|
41
43
|
export * from "./OfferingWithAllowedDto";
|
|
@@ -44,4 +46,6 @@ export * from "./TriggerEmailReminderBody";
|
|
|
44
46
|
export * from "./FormMetadata";
|
|
45
47
|
export * from "./CreateReferralFormReq";
|
|
46
48
|
export * from "./PublicReferralDto";
|
|
49
|
+
export * from "./UpdateAacReq";
|
|
50
|
+
export * from "./UpdateAacBoundaryReq";
|
|
47
51
|
export * from "./OkResponse";
|
package/dist/api/types/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __exportStar(require("./OfferingDtoCategory"), exports);
|
|
|
31
31
|
__exportStar(require("./OfferingDto"), exports);
|
|
32
32
|
__exportStar(require("./CreateAddressReq"), exports);
|
|
33
33
|
__exportStar(require("./GetReferralPatientDtoGender"), exports);
|
|
34
|
+
__exportStar(require("./GetReferralPatientDtoResidentialStatus"), exports);
|
|
34
35
|
__exportStar(require("./GetReferralPatientDto"), exports);
|
|
35
36
|
__exportStar(require("./ReferringDoctorDto"), exports);
|
|
36
37
|
__exportStar(require("./FormResponseAnswer"), exports);
|
|
@@ -52,6 +53,7 @@ __exportStar(require("./ReferralLinkDto"), exports);
|
|
|
52
53
|
__exportStar(require("./FullReferralDtoStatus"), exports);
|
|
53
54
|
__exportStar(require("./FullReferralDto"), exports);
|
|
54
55
|
__exportStar(require("./CreatePatientReqGender"), exports);
|
|
56
|
+
__exportStar(require("./CreatePatientReqResidentialStatus"), exports);
|
|
55
57
|
__exportStar(require("./CreatePatientReq"), exports);
|
|
56
58
|
__exportStar(require("./OfferingWithAllowedDtoCategory"), exports);
|
|
57
59
|
__exportStar(require("./OfferingWithAllowedDto"), exports);
|
|
@@ -60,4 +62,6 @@ __exportStar(require("./TriggerEmailReminderBody"), exports);
|
|
|
60
62
|
__exportStar(require("./FormMetadata"), exports);
|
|
61
63
|
__exportStar(require("./CreateReferralFormReq"), exports);
|
|
62
64
|
__exportStar(require("./PublicReferralDto"), exports);
|
|
65
|
+
__exportStar(require("./UpdateAacReq"), exports);
|
|
66
|
+
__exportStar(require("./UpdateAacBoundaryReq"), exports);
|
|
63
67
|
__exportStar(require("./OkResponse"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.0-develop-
|
|
1
|
+
export declare const SDK_VERSION = "0.0.0-develop-1754962921";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -889,104 +889,6 @@ await client.public.getReferral("referralId");
|
|
|
889
889
|
</dl>
|
|
890
890
|
</details>
|
|
891
891
|
|
|
892
|
-
## Aac
|
|
893
|
-
|
|
894
|
-
<details><summary><code>client.aac.<a href="/src/api/resources/aac/client/Client.ts">aacControllerUpsertAac</a>({ ...params }) -> void</code></summary>
|
|
895
|
-
<dl>
|
|
896
|
-
<dd>
|
|
897
|
-
|
|
898
|
-
#### 🔌 Usage
|
|
899
|
-
|
|
900
|
-
<dl>
|
|
901
|
-
<dd>
|
|
902
|
-
|
|
903
|
-
<dl>
|
|
904
|
-
<dd>
|
|
905
|
-
|
|
906
|
-
```typescript
|
|
907
|
-
await client.aac.aacControllerUpsertAac();
|
|
908
|
-
```
|
|
909
|
-
|
|
910
|
-
</dd>
|
|
911
|
-
</dl>
|
|
912
|
-
</dd>
|
|
913
|
-
</dl>
|
|
914
|
-
|
|
915
|
-
#### ⚙️ Parameters
|
|
916
|
-
|
|
917
|
-
<dl>
|
|
918
|
-
<dd>
|
|
919
|
-
|
|
920
|
-
<dl>
|
|
921
|
-
<dd>
|
|
922
|
-
|
|
923
|
-
**request:** `ReferralExchange.UpdateAacReq`
|
|
924
|
-
|
|
925
|
-
</dd>
|
|
926
|
-
</dl>
|
|
927
|
-
|
|
928
|
-
<dl>
|
|
929
|
-
<dd>
|
|
930
|
-
|
|
931
|
-
**requestOptions:** `Aac.RequestOptions`
|
|
932
|
-
|
|
933
|
-
</dd>
|
|
934
|
-
</dl>
|
|
935
|
-
</dd>
|
|
936
|
-
</dl>
|
|
937
|
-
|
|
938
|
-
</dd>
|
|
939
|
-
</dl>
|
|
940
|
-
</details>
|
|
941
|
-
|
|
942
|
-
<details><summary><code>client.aac.<a href="/src/api/resources/aac/client/Client.ts">aacControllerUpsertAacBoundary</a>({ ...params }) -> void</code></summary>
|
|
943
|
-
<dl>
|
|
944
|
-
<dd>
|
|
945
|
-
|
|
946
|
-
#### 🔌 Usage
|
|
947
|
-
|
|
948
|
-
<dl>
|
|
949
|
-
<dd>
|
|
950
|
-
|
|
951
|
-
<dl>
|
|
952
|
-
<dd>
|
|
953
|
-
|
|
954
|
-
```typescript
|
|
955
|
-
await client.aac.aacControllerUpsertAacBoundary();
|
|
956
|
-
```
|
|
957
|
-
|
|
958
|
-
</dd>
|
|
959
|
-
</dl>
|
|
960
|
-
</dd>
|
|
961
|
-
</dl>
|
|
962
|
-
|
|
963
|
-
#### ⚙️ Parameters
|
|
964
|
-
|
|
965
|
-
<dl>
|
|
966
|
-
<dd>
|
|
967
|
-
|
|
968
|
-
<dl>
|
|
969
|
-
<dd>
|
|
970
|
-
|
|
971
|
-
**request:** `ReferralExchange.UpdateAacBoundaryReq`
|
|
972
|
-
|
|
973
|
-
</dd>
|
|
974
|
-
</dl>
|
|
975
|
-
|
|
976
|
-
<dl>
|
|
977
|
-
<dd>
|
|
978
|
-
|
|
979
|
-
**requestOptions:** `Aac.RequestOptions`
|
|
980
|
-
|
|
981
|
-
</dd>
|
|
982
|
-
</dl>
|
|
983
|
-
</dd>
|
|
984
|
-
</dl>
|
|
985
|
-
|
|
986
|
-
</dd>
|
|
987
|
-
</dl>
|
|
988
|
-
</details>
|
|
989
|
-
|
|
990
892
|
## Webhooks
|
|
991
893
|
|
|
992
894
|
<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">submitSingHealthFormsg</a>() -> void</code></summary>
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.0-develop-
|
|
1
|
+
export declare const SDK_VERSION = "0.0.0-develop-1754962921";
|
package/version.js
CHANGED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "../../../../environments";
|
|
5
|
-
import * as core from "../../../../core";
|
|
6
|
-
import * as ReferralExchange from "../../../index";
|
|
7
|
-
export declare namespace Aac {
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.ReferralExchangeEnvironment | string>;
|
|
10
|
-
/** Specify a custom URL to connect the client to. */
|
|
11
|
-
baseUrl?: core.Supplier<string>;
|
|
12
|
-
apiKey?: core.Supplier<string | undefined>;
|
|
13
|
-
fetcher?: core.FetchFunction;
|
|
14
|
-
}
|
|
15
|
-
interface RequestOptions {
|
|
16
|
-
/** The maximum time to wait for a response in seconds. */
|
|
17
|
-
timeoutInSeconds?: number;
|
|
18
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
19
|
-
maxRetries?: number;
|
|
20
|
-
/** A hook to abort the request. */
|
|
21
|
-
abortSignal?: AbortSignal;
|
|
22
|
-
/** Additional headers to include in the request. */
|
|
23
|
-
headers?: Record<string, string>;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export declare class Aac {
|
|
27
|
-
protected readonly _options: Aac.Options;
|
|
28
|
-
constructor(_options?: Aac.Options);
|
|
29
|
-
/**
|
|
30
|
-
* @param {ReferralExchange.UpdateAacReq} request
|
|
31
|
-
* @param {Aac.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
|
-
*
|
|
33
|
-
* @throws {@link ReferralExchange.UnauthorizedError}
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* await client.aac.aacControllerUpsertAac()
|
|
37
|
-
*/
|
|
38
|
-
aacControllerUpsertAac(request?: ReferralExchange.UpdateAacReq, requestOptions?: Aac.RequestOptions): Promise<void>;
|
|
39
|
-
/**
|
|
40
|
-
* @param {ReferralExchange.UpdateAacBoundaryReq} request
|
|
41
|
-
* @param {Aac.RequestOptions} requestOptions - Request-specific configuration.
|
|
42
|
-
*
|
|
43
|
-
* @throws {@link ReferralExchange.UnauthorizedError}
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* await client.aac.aacControllerUpsertAacBoundary()
|
|
47
|
-
*/
|
|
48
|
-
aacControllerUpsertAacBoundary(request?: ReferralExchange.UpdateAacBoundaryReq, requestOptions?: Aac.RequestOptions): Promise<void>;
|
|
49
|
-
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
50
|
-
Authorization: string | undefined;
|
|
51
|
-
}>;
|
|
52
|
-
}
|