@opengovsg/refx-ts-sdk 0.0.0-develop-1759151439 → 0.0.0-develop-alpha-1762412839
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/README.md +18 -0
- package/api/resources/eligibility/client/Client.d.ts +3 -0
- package/api/resources/eligibility/client/Client.js +7 -10
- package/api/resources/eligibility/client/requests/EligibilityGetRequest.d.ts +8 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/index.d.ts +2 -1
- package/api/resources/index.js +3 -2
- package/api/resources/links/client/Client.js +1 -1
- package/api/resources/links/client/requests/CreateLinkReqUpsert.d.ts +8 -0
- package/api/resources/links/types/CreateLinkReqUpsertClinicType.d.ts +11 -0
- package/api/resources/links/types/CreateLinkReqUpsertClinicType.js +10 -0
- package/api/resources/links/types/index.d.ts +1 -0
- package/api/resources/links/types/index.js +1 -0
- package/api/resources/notes/client/Client.js +1 -1
- package/api/resources/offerings/client/Client.d.ts +6 -2
- package/api/resources/offerings/client/Client.js +13 -15
- package/api/resources/offerings/client/requests/OfferingsListRequest.d.ts +10 -6
- package/api/resources/public/client/Client.js +1 -1
- package/api/resources/referrals/client/Client.js +9 -9
- package/api/resources/referrals/client/requests/CreateReferralReq.d.ts +6 -0
- package/api/resources/referrals/index.d.ts +1 -0
- package/api/resources/referrals/index.js +1 -0
- package/api/resources/referrals/types/CreateReferralReqClinicType.d.ts +11 -0
- package/api/resources/referrals/types/CreateReferralReqClinicType.js +10 -0
- package/api/resources/referrals/types/index.d.ts +1 -0
- package/api/resources/referrals/types/index.js +17 -0
- package/api/resources/webhooks/client/Client.js +2 -2
- package/api/types/AdditionalReferralField.d.ts +2 -1
- package/api/types/AdditionalReferralField.js +1 -0
- package/api/types/AppointmentDto.d.ts +12 -0
- package/api/types/AppointmentDto.js +5 -0
- package/api/types/AppointmentDtoStatus.d.ts +11 -0
- package/api/types/AppointmentDtoStatus.js +13 -0
- package/api/types/CreatePatientReq.d.ts +2 -0
- package/api/types/FullReferralDto.d.ts +7 -0
- package/api/types/FullReferralDtoClinicType.d.ts +11 -0
- package/api/types/FullReferralDtoClinicType.js +10 -0
- package/api/types/GetReferralPatientDto.d.ts +2 -0
- package/api/types/PublicReferralDto.d.ts +6 -0
- package/api/types/PublicReferralDtoClinicType.d.ts +11 -0
- package/api/types/PublicReferralDtoClinicType.js +10 -0
- package/api/types/ReferralDto.d.ts +6 -0
- package/api/types/ReferralDtoClinicType.d.ts +11 -0
- package/api/types/ReferralDtoClinicType.js +10 -0
- package/api/types/ReferralLinkType.d.ts +2 -1
- package/api/types/ReferralLinkType.js +1 -0
- package/api/types/ReferrerIdType.d.ts +2 -1
- package/api/types/ReferrerIdType.js +1 -0
- package/api/types/UpdateEmailAckOfferingReq.d.ts +9 -0
- package/api/types/UpdateEmailAckOfferingReq.js +5 -0
- package/api/types/index.d.ts +6 -0
- package/api/types/index.js +6 -0
- package/browser/jsonwebtoken-stub.d.ts +5 -0
- package/browser/jsonwebtoken-stub.js +10 -0
- package/dist/api/resources/eligibility/client/Client.d.ts +3 -0
- package/dist/api/resources/eligibility/client/Client.js +7 -10
- package/dist/api/resources/eligibility/client/requests/EligibilityGetRequest.d.ts +8 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +2 -1
- package/dist/api/resources/index.js +3 -2
- package/dist/api/resources/links/client/Client.js +1 -1
- package/dist/api/resources/links/client/requests/CreateLinkReqUpsert.d.ts +8 -0
- package/dist/api/resources/links/types/CreateLinkReqUpsertClinicType.d.ts +11 -0
- package/dist/api/resources/links/types/CreateLinkReqUpsertClinicType.js +10 -0
- package/dist/api/resources/links/types/index.d.ts +1 -0
- package/dist/api/resources/links/types/index.js +1 -0
- package/dist/api/resources/notes/client/Client.js +1 -1
- package/dist/api/resources/offerings/client/Client.d.ts +6 -2
- package/dist/api/resources/offerings/client/Client.js +13 -15
- package/dist/api/resources/offerings/client/requests/OfferingsListRequest.d.ts +10 -6
- package/dist/api/resources/public/client/Client.js +1 -1
- package/dist/api/resources/referrals/client/Client.js +9 -9
- package/dist/api/resources/referrals/client/requests/CreateReferralReq.d.ts +6 -0
- package/dist/api/resources/referrals/index.d.ts +1 -0
- package/dist/api/resources/referrals/index.js +1 -0
- package/dist/api/resources/referrals/types/CreateReferralReqClinicType.d.ts +11 -0
- package/dist/api/resources/referrals/types/CreateReferralReqClinicType.js +10 -0
- package/dist/api/resources/referrals/types/index.d.ts +1 -0
- package/dist/api/resources/referrals/types/index.js +17 -0
- package/dist/api/resources/webhooks/client/Client.js +2 -2
- package/dist/api/types/AdditionalReferralField.d.ts +2 -1
- package/dist/api/types/AdditionalReferralField.js +1 -0
- package/dist/api/types/AppointmentDto.d.ts +12 -0
- package/dist/api/types/AppointmentDto.js +5 -0
- package/dist/api/types/AppointmentDtoStatus.d.ts +11 -0
- package/dist/api/types/AppointmentDtoStatus.js +13 -0
- package/dist/api/types/CreatePatientReq.d.ts +2 -0
- package/dist/api/types/FullReferralDto.d.ts +7 -0
- package/dist/api/types/FullReferralDtoClinicType.d.ts +11 -0
- package/dist/api/types/FullReferralDtoClinicType.js +10 -0
- package/dist/api/types/GetReferralPatientDto.d.ts +2 -0
- package/dist/api/types/PublicReferralDto.d.ts +6 -0
- package/dist/api/types/PublicReferralDtoClinicType.d.ts +11 -0
- package/dist/api/types/PublicReferralDtoClinicType.js +10 -0
- package/dist/api/types/ReferralDto.d.ts +6 -0
- package/dist/api/types/ReferralDtoClinicType.d.ts +11 -0
- package/dist/api/types/ReferralDtoClinicType.js +10 -0
- package/dist/api/types/ReferralLinkType.d.ts +2 -1
- package/dist/api/types/ReferralLinkType.js +1 -0
- package/dist/api/types/ReferrerIdType.d.ts +2 -1
- package/dist/api/types/ReferrerIdType.js +1 -0
- package/dist/api/types/UpdateEmailAckOfferingReq.d.ts +9 -0
- package/dist/api/types/UpdateEmailAckOfferingReq.js +5 -0
- package/dist/api/types/index.d.ts +6 -0
- package/dist/api/types/index.js +6 -0
- package/dist/browser/jsonwebtoken-stub.d.ts +5 -0
- package/dist/browser/jsonwebtoken-stub.js +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/ReferralExchangeJwtClient.d.ts +10 -0
- package/dist/wrapper/ReferralExchangeJwtClient.js +81 -0
- package/index.d.ts +1 -0
- package/index.js +3 -1
- package/package.json +6 -2
- package/reference.md +8 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/ReferralExchangeJwtClient.d.ts +10 -0
- package/wrapper/ReferralExchangeJwtClient.js +81 -0
|
@@ -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.
|
|
110
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-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.
|
|
186
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-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.
|
|
252
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-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.
|
|
306
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-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.
|
|
358
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-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.
|
|
413
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-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.
|
|
466
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-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.
|
|
521
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-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.
|
|
573
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-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,
|
|
@@ -55,4 +55,10 @@ export interface CreateReferralReq {
|
|
|
55
55
|
timeslotStartAt?: number;
|
|
56
56
|
/** Form responses */
|
|
57
57
|
formResponses: ReferralExchange.FormResponse[];
|
|
58
|
+
/** Clinic license number */
|
|
59
|
+
clinicLicenseNumber?: string;
|
|
60
|
+
/** Clinic type */
|
|
61
|
+
clinicType?: ReferralExchange.CreateReferralReqClinicType;
|
|
62
|
+
/** Any clinical information that is relevant to the referral, e.g. medical history, drug allergies, treatment provided, etc. */
|
|
63
|
+
clinicalInfo?: string;
|
|
58
64
|
}
|
|
@@ -14,4 +14,5 @@ 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);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Clinic type
|
|
6
|
+
*/
|
|
7
|
+
export type CreateReferralReqClinicType = "CHAS-only" | "CHAS and HSG";
|
|
8
|
+
export declare const CreateReferralReqClinicType: {
|
|
9
|
+
readonly ChasOnly: "CHAS-only";
|
|
10
|
+
readonly ChasAndHsg: "CHAS and HSG";
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
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.CreateReferralReqClinicType = void 0;
|
|
7
|
+
exports.CreateReferralReqClinicType = {
|
|
8
|
+
ChasOnly: "CHAS-only",
|
|
9
|
+
ChasAndHsg: "CHAS and HSG",
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CreateReferralReqClinicType";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CreateReferralReqClinicType"), exports);
|
|
@@ -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.
|
|
72
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-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.
|
|
116
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
117
117
|
contentType: "application/json",
|
|
118
118
|
requestType: "json",
|
|
119
119
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type AdditionalReferralField = "attachments" | "url" | "link";
|
|
4
|
+
export type AdditionalReferralField = "attachments" | "url" | "link" | "appointments";
|
|
5
5
|
export declare const AdditionalReferralField: {
|
|
6
6
|
readonly Attachments: "attachments";
|
|
7
7
|
readonly Url: "url";
|
|
8
8
|
readonly Link: "link";
|
|
9
|
+
readonly Appointments: "appointments";
|
|
9
10
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ReferralExchange from "../index";
|
|
5
|
+
export interface AppointmentDto {
|
|
6
|
+
status: ReferralExchange.AppointmentDtoStatus;
|
|
7
|
+
institutionName?: string;
|
|
8
|
+
specialtyName?: string;
|
|
9
|
+
subSpecialtyName?: string;
|
|
10
|
+
visitDateTime: string;
|
|
11
|
+
isDischarged: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type AppointmentDtoStatus = "booked" | "actualized" | "noShow" | "cancelled" | "unknown";
|
|
5
|
+
export declare const AppointmentDtoStatus: {
|
|
6
|
+
readonly Booked: "booked";
|
|
7
|
+
readonly Actualized: "actualized";
|
|
8
|
+
readonly NoShow: "noShow";
|
|
9
|
+
readonly Cancelled: "cancelled";
|
|
10
|
+
readonly Unknown: "unknown";
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
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.AppointmentDtoStatus = void 0;
|
|
7
|
+
exports.AppointmentDtoStatus = {
|
|
8
|
+
Booked: "booked",
|
|
9
|
+
Actualized: "actualized",
|
|
10
|
+
NoShow: "noShow",
|
|
11
|
+
Cancelled: "cancelled",
|
|
12
|
+
Unknown: "unknown",
|
|
13
|
+
};
|
|
@@ -16,4 +16,6 @@ export interface CreatePatientReq {
|
|
|
16
16
|
address?: ReferralExchange.CreateAddressReq;
|
|
17
17
|
/** Patient residential status */
|
|
18
18
|
residentialStatus?: ReferralExchange.CreatePatientReqResidentialStatus;
|
|
19
|
+
/** Patient Healthier SG (HSG) enrolment status */
|
|
20
|
+
isHsgEnrolled?: boolean;
|
|
19
21
|
}
|
|
@@ -21,6 +21,12 @@ export interface FullReferralDto {
|
|
|
21
21
|
attachments: ReferralExchange.AttachmentDto[];
|
|
22
22
|
/** URL to view the referral */
|
|
23
23
|
url?: string;
|
|
24
|
+
/** Clinic license number */
|
|
25
|
+
clinicLicenseNumber?: string;
|
|
26
|
+
/** Clinic type */
|
|
27
|
+
clinicType?: ReferralExchange.FullReferralDtoClinicType;
|
|
28
|
+
/** Any clinical information that is relevant to the referral, e.g. medical history, drug allergies, treatment provided, etc. */
|
|
29
|
+
clinicalInfo?: string;
|
|
24
30
|
status: ReferralExchange.FullReferralDtoStatus;
|
|
25
31
|
/** Timeslot start time (ISO datetime) */
|
|
26
32
|
timeslotStartAt?: string;
|
|
@@ -29,4 +35,5 @@ export interface FullReferralDto {
|
|
|
29
35
|
notes: ReferralExchange.NoteDto[];
|
|
30
36
|
timelineEvents: ReferralExchange.TimelineEventDto[];
|
|
31
37
|
links: ReferralExchange.ReferralLinkDto[];
|
|
38
|
+
appointments: ReferralExchange.AppointmentDto[];
|
|
32
39
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Clinic type
|
|
6
|
+
*/
|
|
7
|
+
export type FullReferralDtoClinicType = "CHAS-only" | "CHAS and HSG";
|
|
8
|
+
export declare const FullReferralDtoClinicType: {
|
|
9
|
+
readonly ChasOnly: "CHAS-only";
|
|
10
|
+
readonly ChasAndHsg: "CHAS and HSG";
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
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.FullReferralDtoClinicType = void 0;
|
|
7
|
+
exports.FullReferralDtoClinicType = {
|
|
8
|
+
ChasOnly: "CHAS-only",
|
|
9
|
+
ChasAndHsg: "CHAS and HSG",
|
|
10
|
+
};
|
|
@@ -16,6 +16,8 @@ export interface GetReferralPatientDto {
|
|
|
16
16
|
address?: ReferralExchange.CreateAddressReq;
|
|
17
17
|
/** Patient residential status */
|
|
18
18
|
residentialStatus?: ReferralExchange.GetReferralPatientDtoResidentialStatus;
|
|
19
|
+
/** Patient Healthier SG (HSG) enrolment status */
|
|
20
|
+
isHsgEnrolled?: boolean;
|
|
19
21
|
/** Current CHAS status */
|
|
20
22
|
chasStatus: string;
|
|
21
23
|
}
|
|
@@ -21,4 +21,10 @@ export interface PublicReferralDto {
|
|
|
21
21
|
attachments: ReferralExchange.AttachmentDto[];
|
|
22
22
|
/** URL to view the referral */
|
|
23
23
|
url?: string;
|
|
24
|
+
/** Clinic license number */
|
|
25
|
+
clinicLicenseNumber?: string;
|
|
26
|
+
/** Clinic type */
|
|
27
|
+
clinicType?: ReferralExchange.PublicReferralDtoClinicType;
|
|
28
|
+
/** Any clinical information that is relevant to the referral, e.g. medical history, drug allergies, treatment provided, etc. */
|
|
29
|
+
clinicalInfo?: string;
|
|
24
30
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Clinic type
|
|
6
|
+
*/
|
|
7
|
+
export type PublicReferralDtoClinicType = "CHAS-only" | "CHAS and HSG";
|
|
8
|
+
export declare const PublicReferralDtoClinicType: {
|
|
9
|
+
readonly ChasOnly: "CHAS-only";
|
|
10
|
+
readonly ChasAndHsg: "CHAS and HSG";
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
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.PublicReferralDtoClinicType = void 0;
|
|
7
|
+
exports.PublicReferralDtoClinicType = {
|
|
8
|
+
ChasOnly: "CHAS-only",
|
|
9
|
+
ChasAndHsg: "CHAS and HSG",
|
|
10
|
+
};
|
|
@@ -21,6 +21,12 @@ export interface ReferralDto {
|
|
|
21
21
|
attachments: ReferralExchange.AttachmentDto[];
|
|
22
22
|
/** URL to view the referral */
|
|
23
23
|
url?: string;
|
|
24
|
+
/** Clinic license number */
|
|
25
|
+
clinicLicenseNumber?: string;
|
|
26
|
+
/** Clinic type */
|
|
27
|
+
clinicType?: ReferralExchange.ReferralDtoClinicType;
|
|
28
|
+
/** Any clinical information that is relevant to the referral, e.g. medical history, drug allergies, treatment provided, etc. */
|
|
29
|
+
clinicalInfo?: string;
|
|
24
30
|
status: ReferralExchange.ReferralDtoStatus;
|
|
25
31
|
/** Timeslot start time (ISO datetime) */
|
|
26
32
|
timeslotStartAt?: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Clinic type
|
|
6
|
+
*/
|
|
7
|
+
export type ReferralDtoClinicType = "CHAS-only" | "CHAS and HSG";
|
|
8
|
+
export declare const ReferralDtoClinicType: {
|
|
9
|
+
readonly ChasOnly: "CHAS-only";
|
|
10
|
+
readonly ChasAndHsg: "CHAS and HSG";
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
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.ReferralDtoClinicType = void 0;
|
|
7
|
+
exports.ReferralDtoClinicType = {
|
|
8
|
+
ChasOnly: "CHAS-only",
|
|
9
|
+
ChasAndHsg: "CHAS and HSG",
|
|
10
|
+
};
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* type of referral link
|
|
6
6
|
*/
|
|
7
|
-
export type ReferralLinkType = "upsert" | "amend" | "select-timeslot";
|
|
7
|
+
export type ReferralLinkType = "upsert" | "amend" | "select-timeslot" | "fill-singhealth-formsg";
|
|
8
8
|
export declare const ReferralLinkType: {
|
|
9
9
|
readonly Upsert: "upsert";
|
|
10
10
|
readonly Amend: "amend";
|
|
11
11
|
readonly SelectTimeslot: "select-timeslot";
|
|
12
|
+
readonly FillSinghealthFormsg: "fill-singhealth-formsg";
|
|
12
13
|
};
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Type of ID specified in referrerId.
|
|
6
6
|
*/
|
|
7
|
-
export type ReferrerIdType = "mcr" | "nric" | "email" | "brightUserId";
|
|
7
|
+
export type ReferrerIdType = "mcr" | "nric" | "email" | "brightUserId" | "dcr";
|
|
8
8
|
export declare const ReferrerIdType: {
|
|
9
9
|
readonly Mcr: "mcr";
|
|
10
10
|
readonly Nric: "nric";
|
|
11
11
|
readonly Email: "email";
|
|
12
12
|
readonly BrightUserId: "brightUserId";
|
|
13
|
+
readonly Dcr: "dcr";
|
|
13
14
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface UpdateEmailAckOfferingReq {
|
|
5
|
+
/** Destination email list for the EmailAck offering */
|
|
6
|
+
destinationEmails?: string[];
|
|
7
|
+
/** Activity status of the offering */
|
|
8
|
+
isActive?: boolean;
|
|
9
|
+
}
|
|
@@ -22,6 +22,7 @@ export * from "./FormResponse";
|
|
|
22
22
|
export * from "./Form";
|
|
23
23
|
export * from "./AttachmentDto";
|
|
24
24
|
export * from "./NoteDto";
|
|
25
|
+
export * from "./ReferralDtoClinicType";
|
|
25
26
|
export * from "./ReferralDtoStatus";
|
|
26
27
|
export * from "./ReferralDto";
|
|
27
28
|
export * from "./PaginatedQuery";
|
|
@@ -33,6 +34,9 @@ export * from "./TimelineEventDtoSystem";
|
|
|
33
34
|
export * from "./TimelineEventDto";
|
|
34
35
|
export * from "./ReferralLinkType";
|
|
35
36
|
export * from "./ReferralLinkDto";
|
|
37
|
+
export * from "./AppointmentDtoStatus";
|
|
38
|
+
export * from "./AppointmentDto";
|
|
39
|
+
export * from "./FullReferralDtoClinicType";
|
|
36
40
|
export * from "./FullReferralDtoStatus";
|
|
37
41
|
export * from "./FullReferralDto";
|
|
38
42
|
export * from "./CreatePatientReqGender";
|
|
@@ -40,9 +44,11 @@ export * from "./CreatePatientReqResidentialStatus";
|
|
|
40
44
|
export * from "./CreatePatientReq";
|
|
41
45
|
export * from "./OfferingWithAllowedDto";
|
|
42
46
|
export * from "./Timeslot";
|
|
47
|
+
export * from "./UpdateEmailAckOfferingReq";
|
|
43
48
|
export * from "./TriggerEmailReminderBody";
|
|
44
49
|
export * from "./FormMetadata";
|
|
45
50
|
export * from "./CreateReferralFormReq";
|
|
51
|
+
export * from "./PublicReferralDtoClinicType";
|
|
46
52
|
export * from "./PublicReferralDto";
|
|
47
53
|
export * from "./UpdateAacReq";
|
|
48
54
|
export * from "./UpdateAacBoundaryReq";
|
package/dist/api/types/index.js
CHANGED
|
@@ -38,6 +38,7 @@ __exportStar(require("./FormResponse"), exports);
|
|
|
38
38
|
__exportStar(require("./Form"), exports);
|
|
39
39
|
__exportStar(require("./AttachmentDto"), exports);
|
|
40
40
|
__exportStar(require("./NoteDto"), exports);
|
|
41
|
+
__exportStar(require("./ReferralDtoClinicType"), exports);
|
|
41
42
|
__exportStar(require("./ReferralDtoStatus"), exports);
|
|
42
43
|
__exportStar(require("./ReferralDto"), exports);
|
|
43
44
|
__exportStar(require("./PaginatedQuery"), exports);
|
|
@@ -49,6 +50,9 @@ __exportStar(require("./TimelineEventDtoSystem"), exports);
|
|
|
49
50
|
__exportStar(require("./TimelineEventDto"), exports);
|
|
50
51
|
__exportStar(require("./ReferralLinkType"), exports);
|
|
51
52
|
__exportStar(require("./ReferralLinkDto"), exports);
|
|
53
|
+
__exportStar(require("./AppointmentDtoStatus"), exports);
|
|
54
|
+
__exportStar(require("./AppointmentDto"), exports);
|
|
55
|
+
__exportStar(require("./FullReferralDtoClinicType"), exports);
|
|
52
56
|
__exportStar(require("./FullReferralDtoStatus"), exports);
|
|
53
57
|
__exportStar(require("./FullReferralDto"), exports);
|
|
54
58
|
__exportStar(require("./CreatePatientReqGender"), exports);
|
|
@@ -56,9 +60,11 @@ __exportStar(require("./CreatePatientReqResidentialStatus"), exports);
|
|
|
56
60
|
__exportStar(require("./CreatePatientReq"), exports);
|
|
57
61
|
__exportStar(require("./OfferingWithAllowedDto"), exports);
|
|
58
62
|
__exportStar(require("./Timeslot"), exports);
|
|
63
|
+
__exportStar(require("./UpdateEmailAckOfferingReq"), exports);
|
|
59
64
|
__exportStar(require("./TriggerEmailReminderBody"), exports);
|
|
60
65
|
__exportStar(require("./FormMetadata"), exports);
|
|
61
66
|
__exportStar(require("./CreateReferralFormReq"), exports);
|
|
67
|
+
__exportStar(require("./PublicReferralDtoClinicType"), exports);
|
|
62
68
|
__exportStar(require("./PublicReferralDto"), exports);
|
|
63
69
|
__exportStar(require("./UpdateAacReq"), exports);
|
|
64
70
|
__exportStar(require("./UpdateAacBoundaryReq"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const browserOnlyMessage = "ReferralExchangeJwtClient is only supported in Node.js environments. " +
|
|
4
|
+
"The browser build intentionally excludes the jsonwebtoken dependency.";
|
|
5
|
+
const jsonwebtokenStub = {
|
|
6
|
+
sign() {
|
|
7
|
+
throw new Error(browserOnlyMessage);
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
exports.default = jsonwebtokenStub;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as ReferralExchange from "./api";
|
|
2
2
|
export { ReferralExchangeClient } from "./Client";
|
|
3
|
+
export { ReferralExchangeJwtClient } from "./wrapper/ReferralExchangeJwtClient";
|
|
3
4
|
export { ReferralExchangeEnvironment } from "./environments";
|
|
4
5
|
export { ReferralExchangeError, ReferralExchangeTimeoutError } from "./errors";
|
package/dist/index.js
CHANGED
|
@@ -33,10 +33,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.ReferralExchangeTimeoutError = exports.ReferralExchangeError = exports.ReferralExchangeEnvironment = exports.ReferralExchangeClient = exports.ReferralExchange = void 0;
|
|
36
|
+
exports.ReferralExchangeTimeoutError = exports.ReferralExchangeError = exports.ReferralExchangeEnvironment = exports.ReferralExchangeJwtClient = exports.ReferralExchangeClient = exports.ReferralExchange = void 0;
|
|
37
37
|
exports.ReferralExchange = __importStar(require("./api"));
|
|
38
38
|
var Client_1 = require("./Client");
|
|
39
39
|
Object.defineProperty(exports, "ReferralExchangeClient", { enumerable: true, get: function () { return Client_1.ReferralExchangeClient; } });
|
|
40
|
+
var ReferralExchangeJwtClient_1 = require("./wrapper/ReferralExchangeJwtClient");
|
|
41
|
+
Object.defineProperty(exports, "ReferralExchangeJwtClient", { enumerable: true, get: function () { return ReferralExchangeJwtClient_1.ReferralExchangeJwtClient; } });
|
|
40
42
|
var environments_1 = require("./environments");
|
|
41
43
|
Object.defineProperty(exports, "ReferralExchangeEnvironment", { enumerable: true, get: function () { return environments_1.ReferralExchangeEnvironment; } });
|
|
42
44
|
var errors_1 = require("./errors");
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.54";
|
package/dist/version.js
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReferralExchangeClient } from "../Client";
|
|
2
|
+
export declare namespace ReferralExchangeJwtClient {
|
|
3
|
+
interface Options extends Omit<ReferralExchangeClient.Options, "fetcher" | "apiKey"> {
|
|
4
|
+
privateKey: string;
|
|
5
|
+
apiKeyName: string;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare class ReferralExchangeJwtClient extends ReferralExchangeClient {
|
|
9
|
+
constructor(options: ReferralExchangeJwtClient.Options);
|
|
10
|
+
}
|