@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.
Files changed (121) hide show
  1. package/README.md +18 -0
  2. package/api/resources/eligibility/client/Client.d.ts +3 -0
  3. package/api/resources/eligibility/client/Client.js +7 -10
  4. package/api/resources/eligibility/client/requests/EligibilityGetRequest.d.ts +8 -5
  5. package/api/resources/health/client/Client.js +1 -1
  6. package/api/resources/index.d.ts +2 -1
  7. package/api/resources/index.js +3 -2
  8. package/api/resources/links/client/Client.js +1 -1
  9. package/api/resources/links/client/requests/CreateLinkReqUpsert.d.ts +8 -0
  10. package/api/resources/links/types/CreateLinkReqUpsertClinicType.d.ts +11 -0
  11. package/api/resources/links/types/CreateLinkReqUpsertClinicType.js +10 -0
  12. package/api/resources/links/types/index.d.ts +1 -0
  13. package/api/resources/links/types/index.js +1 -0
  14. package/api/resources/notes/client/Client.js +1 -1
  15. package/api/resources/offerings/client/Client.d.ts +6 -2
  16. package/api/resources/offerings/client/Client.js +13 -15
  17. package/api/resources/offerings/client/requests/OfferingsListRequest.d.ts +10 -6
  18. package/api/resources/public/client/Client.js +1 -1
  19. package/api/resources/referrals/client/Client.js +9 -9
  20. package/api/resources/referrals/client/requests/CreateReferralReq.d.ts +6 -0
  21. package/api/resources/referrals/index.d.ts +1 -0
  22. package/api/resources/referrals/index.js +1 -0
  23. package/api/resources/referrals/types/CreateReferralReqClinicType.d.ts +11 -0
  24. package/api/resources/referrals/types/CreateReferralReqClinicType.js +10 -0
  25. package/api/resources/referrals/types/index.d.ts +1 -0
  26. package/api/resources/referrals/types/index.js +17 -0
  27. package/api/resources/webhooks/client/Client.js +2 -2
  28. package/api/types/AdditionalReferralField.d.ts +2 -1
  29. package/api/types/AdditionalReferralField.js +1 -0
  30. package/api/types/AppointmentDto.d.ts +12 -0
  31. package/api/types/AppointmentDto.js +5 -0
  32. package/api/types/AppointmentDtoStatus.d.ts +11 -0
  33. package/api/types/AppointmentDtoStatus.js +13 -0
  34. package/api/types/CreatePatientReq.d.ts +2 -0
  35. package/api/types/FullReferralDto.d.ts +7 -0
  36. package/api/types/FullReferralDtoClinicType.d.ts +11 -0
  37. package/api/types/FullReferralDtoClinicType.js +10 -0
  38. package/api/types/GetReferralPatientDto.d.ts +2 -0
  39. package/api/types/PublicReferralDto.d.ts +6 -0
  40. package/api/types/PublicReferralDtoClinicType.d.ts +11 -0
  41. package/api/types/PublicReferralDtoClinicType.js +10 -0
  42. package/api/types/ReferralDto.d.ts +6 -0
  43. package/api/types/ReferralDtoClinicType.d.ts +11 -0
  44. package/api/types/ReferralDtoClinicType.js +10 -0
  45. package/api/types/ReferralLinkType.d.ts +2 -1
  46. package/api/types/ReferralLinkType.js +1 -0
  47. package/api/types/ReferrerIdType.d.ts +2 -1
  48. package/api/types/ReferrerIdType.js +1 -0
  49. package/api/types/UpdateEmailAckOfferingReq.d.ts +9 -0
  50. package/api/types/UpdateEmailAckOfferingReq.js +5 -0
  51. package/api/types/index.d.ts +6 -0
  52. package/api/types/index.js +6 -0
  53. package/browser/jsonwebtoken-stub.d.ts +5 -0
  54. package/browser/jsonwebtoken-stub.js +10 -0
  55. package/dist/api/resources/eligibility/client/Client.d.ts +3 -0
  56. package/dist/api/resources/eligibility/client/Client.js +7 -10
  57. package/dist/api/resources/eligibility/client/requests/EligibilityGetRequest.d.ts +8 -5
  58. package/dist/api/resources/health/client/Client.js +1 -1
  59. package/dist/api/resources/index.d.ts +2 -1
  60. package/dist/api/resources/index.js +3 -2
  61. package/dist/api/resources/links/client/Client.js +1 -1
  62. package/dist/api/resources/links/client/requests/CreateLinkReqUpsert.d.ts +8 -0
  63. package/dist/api/resources/links/types/CreateLinkReqUpsertClinicType.d.ts +11 -0
  64. package/dist/api/resources/links/types/CreateLinkReqUpsertClinicType.js +10 -0
  65. package/dist/api/resources/links/types/index.d.ts +1 -0
  66. package/dist/api/resources/links/types/index.js +1 -0
  67. package/dist/api/resources/notes/client/Client.js +1 -1
  68. package/dist/api/resources/offerings/client/Client.d.ts +6 -2
  69. package/dist/api/resources/offerings/client/Client.js +13 -15
  70. package/dist/api/resources/offerings/client/requests/OfferingsListRequest.d.ts +10 -6
  71. package/dist/api/resources/public/client/Client.js +1 -1
  72. package/dist/api/resources/referrals/client/Client.js +9 -9
  73. package/dist/api/resources/referrals/client/requests/CreateReferralReq.d.ts +6 -0
  74. package/dist/api/resources/referrals/index.d.ts +1 -0
  75. package/dist/api/resources/referrals/index.js +1 -0
  76. package/dist/api/resources/referrals/types/CreateReferralReqClinicType.d.ts +11 -0
  77. package/dist/api/resources/referrals/types/CreateReferralReqClinicType.js +10 -0
  78. package/dist/api/resources/referrals/types/index.d.ts +1 -0
  79. package/dist/api/resources/referrals/types/index.js +17 -0
  80. package/dist/api/resources/webhooks/client/Client.js +2 -2
  81. package/dist/api/types/AdditionalReferralField.d.ts +2 -1
  82. package/dist/api/types/AdditionalReferralField.js +1 -0
  83. package/dist/api/types/AppointmentDto.d.ts +12 -0
  84. package/dist/api/types/AppointmentDto.js +5 -0
  85. package/dist/api/types/AppointmentDtoStatus.d.ts +11 -0
  86. package/dist/api/types/AppointmentDtoStatus.js +13 -0
  87. package/dist/api/types/CreatePatientReq.d.ts +2 -0
  88. package/dist/api/types/FullReferralDto.d.ts +7 -0
  89. package/dist/api/types/FullReferralDtoClinicType.d.ts +11 -0
  90. package/dist/api/types/FullReferralDtoClinicType.js +10 -0
  91. package/dist/api/types/GetReferralPatientDto.d.ts +2 -0
  92. package/dist/api/types/PublicReferralDto.d.ts +6 -0
  93. package/dist/api/types/PublicReferralDtoClinicType.d.ts +11 -0
  94. package/dist/api/types/PublicReferralDtoClinicType.js +10 -0
  95. package/dist/api/types/ReferralDto.d.ts +6 -0
  96. package/dist/api/types/ReferralDtoClinicType.d.ts +11 -0
  97. package/dist/api/types/ReferralDtoClinicType.js +10 -0
  98. package/dist/api/types/ReferralLinkType.d.ts +2 -1
  99. package/dist/api/types/ReferralLinkType.js +1 -0
  100. package/dist/api/types/ReferrerIdType.d.ts +2 -1
  101. package/dist/api/types/ReferrerIdType.js +1 -0
  102. package/dist/api/types/UpdateEmailAckOfferingReq.d.ts +9 -0
  103. package/dist/api/types/UpdateEmailAckOfferingReq.js +5 -0
  104. package/dist/api/types/index.d.ts +6 -0
  105. package/dist/api/types/index.js +6 -0
  106. package/dist/browser/jsonwebtoken-stub.d.ts +5 -0
  107. package/dist/browser/jsonwebtoken-stub.js +10 -0
  108. package/dist/index.d.ts +1 -0
  109. package/dist/index.js +3 -1
  110. package/dist/version.d.ts +1 -1
  111. package/dist/version.js +1 -1
  112. package/dist/wrapper/ReferralExchangeJwtClient.d.ts +10 -0
  113. package/dist/wrapper/ReferralExchangeJwtClient.js +81 -0
  114. package/index.d.ts +1 -0
  115. package/index.js +3 -1
  116. package/package.json +6 -2
  117. package/reference.md +8 -1
  118. package/version.d.ts +1 -1
  119. package/version.js +1 -1
  120. package/wrapper/ReferralExchangeJwtClient.d.ts +10 -0
  121. 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.0-develop-1759151439", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1759151439", "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.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.0-develop-1759151439", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1759151439", "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.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.0-develop-1759151439", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1759151439", "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.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.0-develop-1759151439", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1759151439", "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.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.0-develop-1759151439", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1759151439", "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.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.0-develop-1759151439", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1759151439", "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.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.0-develop-1759151439", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1759151439", "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.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.0-develop-1759151439", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1759151439", "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.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.0-develop-1759151439", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1759151439", "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.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
  }
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -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.0-develop-1759151439", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1759151439", "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.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.0-develop-1759151439", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.0-develop-1759151439", "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.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
  };
@@ -8,4 +8,5 @@ exports.AdditionalReferralField = {
8
8
  Attachments: "attachments",
9
9
  Url: "url",
10
10
  Link: "link",
11
+ Appointments: "appointments",
11
12
  };
@@ -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,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
  };
@@ -8,4 +8,5 @@ exports.ReferralLinkType = {
8
8
  Upsert: "upsert",
9
9
  Amend: "amend",
10
10
  SelectTimeslot: "select-timeslot",
11
+ FillSinghealthFormsg: "fill-singhealth-formsg",
11
12
  };
@@ -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
  };
@@ -9,4 +9,5 @@ exports.ReferrerIdType = {
9
9
  Nric: "nric",
10
10
  Email: "email",
11
11
  BrightUserId: "brightUserId",
12
+ Dcr: "dcr",
12
13
  };
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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";
@@ -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,5 @@
1
+ interface JsonWebTokenStub {
2
+ sign: () => never;
3
+ }
4
+ declare const jsonwebtokenStub: JsonWebTokenStub;
5
+ export default jsonwebtokenStub;
@@ -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.0-develop-1759151439";
1
+ export declare const SDK_VERSION = "0.0.54";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.0-develop-1759151439";
4
+ exports.SDK_VERSION = "0.0.54";
@@ -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
+ }