@opengovsg/refx-ts-sdk 0.0.63 → 0.0.64

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 (86) hide show
  1. package/api/resources/eligibility/client/Client.js +1 -1
  2. package/api/resources/health/client/Client.js +1 -1
  3. package/api/resources/index.d.ts +2 -1
  4. package/api/resources/index.js +3 -2
  5. package/api/resources/links/client/Client.js +1 -1
  6. package/api/resources/links/client/requests/CreateLinkReqUpsert.d.ts +2 -0
  7. package/api/resources/links/types/CreateLinkReqUpsertNationality.d.ts +264 -0
  8. package/api/resources/links/types/CreateLinkReqUpsertNationality.js +263 -0
  9. package/api/resources/links/types/index.d.ts +1 -0
  10. package/api/resources/links/types/index.js +1 -0
  11. package/api/resources/notes/client/Client.js +1 -1
  12. package/api/resources/offerings/client/Client.d.ts +1 -0
  13. package/api/resources/offerings/client/Client.js +4 -3
  14. package/api/resources/offerings/client/requests/ApiHoldingControllerGetRecommendedOfferingRequest.d.ts +3 -1
  15. package/api/resources/offerings/index.d.ts +1 -0
  16. package/api/resources/offerings/index.js +1 -0
  17. package/api/resources/offerings/types/ApiHoldingControllerGetRecommendedOfferingRequestCategory.d.ts +8 -0
  18. package/api/resources/offerings/types/ApiHoldingControllerGetRecommendedOfferingRequestCategory.js +10 -0
  19. package/api/resources/offerings/types/index.d.ts +1 -0
  20. package/api/resources/offerings/types/index.js +17 -0
  21. package/api/resources/public/client/Client.js +1 -1
  22. package/api/resources/referrals/client/Client.js +10 -10
  23. package/api/resources/referrers/client/Client.js +1 -1
  24. package/api/resources/webhooks/client/Client.js +2 -2
  25. package/api/types/CreatePatientReq.d.ts +2 -0
  26. package/api/types/CreatePatientReqNationality.d.ts +264 -0
  27. package/api/types/CreatePatientReqNationality.js +263 -0
  28. package/api/types/GetReferralPatientDto.d.ts +2 -0
  29. package/api/types/GetReferralPatientDtoNationality.d.ts +264 -0
  30. package/api/types/GetReferralPatientDtoNationality.js +263 -0
  31. package/api/types/OfferingDto.d.ts +1 -1
  32. package/api/types/OfferingDtoCategory.d.ts +11 -0
  33. package/api/types/OfferingDtoCategory.js +10 -0
  34. package/api/types/OfferingWithAllowedDto.d.ts +1 -1
  35. package/api/types/OfferingWithAllowedDtoCategory.d.ts +11 -0
  36. package/api/types/OfferingWithAllowedDtoCategory.js +10 -0
  37. package/api/types/TimelineEventType.d.ts +3 -1
  38. package/api/types/TimelineEventType.js +2 -0
  39. package/api/types/index.d.ts +4 -0
  40. package/api/types/index.js +4 -0
  41. package/dist/api/resources/eligibility/client/Client.js +1 -1
  42. package/dist/api/resources/health/client/Client.js +1 -1
  43. package/dist/api/resources/index.d.ts +2 -1
  44. package/dist/api/resources/index.js +3 -2
  45. package/dist/api/resources/links/client/Client.js +1 -1
  46. package/dist/api/resources/links/client/requests/CreateLinkReqUpsert.d.ts +2 -0
  47. package/dist/api/resources/links/types/CreateLinkReqUpsertNationality.d.ts +264 -0
  48. package/dist/api/resources/links/types/CreateLinkReqUpsertNationality.js +263 -0
  49. package/dist/api/resources/links/types/index.d.ts +1 -0
  50. package/dist/api/resources/links/types/index.js +1 -0
  51. package/dist/api/resources/notes/client/Client.js +1 -1
  52. package/dist/api/resources/offerings/client/Client.d.ts +1 -0
  53. package/dist/api/resources/offerings/client/Client.js +4 -3
  54. package/dist/api/resources/offerings/client/requests/ApiHoldingControllerGetRecommendedOfferingRequest.d.ts +3 -1
  55. package/dist/api/resources/offerings/index.d.ts +1 -0
  56. package/dist/api/resources/offerings/index.js +1 -0
  57. package/dist/api/resources/offerings/types/ApiHoldingControllerGetRecommendedOfferingRequestCategory.d.ts +8 -0
  58. package/dist/api/resources/offerings/types/ApiHoldingControllerGetRecommendedOfferingRequestCategory.js +10 -0
  59. package/dist/api/resources/offerings/types/index.d.ts +1 -0
  60. package/dist/api/resources/offerings/types/index.js +17 -0
  61. package/dist/api/resources/public/client/Client.js +1 -1
  62. package/dist/api/resources/referrals/client/Client.js +10 -10
  63. package/dist/api/resources/referrers/client/Client.js +1 -1
  64. package/dist/api/resources/webhooks/client/Client.js +2 -2
  65. package/dist/api/types/CreatePatientReq.d.ts +2 -0
  66. package/dist/api/types/CreatePatientReqNationality.d.ts +264 -0
  67. package/dist/api/types/CreatePatientReqNationality.js +263 -0
  68. package/dist/api/types/GetReferralPatientDto.d.ts +2 -0
  69. package/dist/api/types/GetReferralPatientDtoNationality.d.ts +264 -0
  70. package/dist/api/types/GetReferralPatientDtoNationality.js +263 -0
  71. package/dist/api/types/OfferingDto.d.ts +1 -1
  72. package/dist/api/types/OfferingDtoCategory.d.ts +11 -0
  73. package/dist/api/types/OfferingDtoCategory.js +10 -0
  74. package/dist/api/types/OfferingWithAllowedDto.d.ts +1 -1
  75. package/dist/api/types/OfferingWithAllowedDtoCategory.d.ts +11 -0
  76. package/dist/api/types/OfferingWithAllowedDtoCategory.js +10 -0
  77. package/dist/api/types/TimelineEventType.d.ts +3 -1
  78. package/dist/api/types/TimelineEventType.js +2 -0
  79. package/dist/api/types/index.d.ts +4 -0
  80. package/dist/api/types/index.js +4 -0
  81. package/dist/version.d.ts +1 -1
  82. package/dist/version.js +1 -1
  83. package/package.json +1 -1
  84. package/reference.md +1 -0
  85. package/version.d.ts +1 -1
  86. package/version.js +1 -1
@@ -0,0 +1,263 @@
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.GetReferralPatientDtoNationality = void 0;
7
+ exports.GetReferralPatientDtoNationality = {
8
+ Singapore: "Singapore",
9
+ Afghanistan: "Afghanistan",
10
+ Albania: "Albania",
11
+ Algeria: "Algeria",
12
+ Andorra: "Andorra",
13
+ Angola: "Angola",
14
+ AntiguaAndBarbuda: "Antigua and Barbuda",
15
+ Argentina: "Argentina",
16
+ Armenia: "Armenia",
17
+ Australia: "Australia",
18
+ Austria: "Austria",
19
+ Azerbaijan: "Azerbaijan",
20
+ Bahamas: "Bahamas",
21
+ Bahrain: "Bahrain",
22
+ Bangladesh: "Bangladesh",
23
+ Barbados: "Barbados",
24
+ Belarus: "Belarus",
25
+ Belgium: "Belgium",
26
+ Belize: "Belize",
27
+ Benin: "Benin",
28
+ Bhutan: "Bhutan",
29
+ Bolivia: "Bolivia",
30
+ BosniaAndHerzegovina: "Bosnia and Herzegovina",
31
+ Botswana: "Botswana",
32
+ Brazil: "Brazil",
33
+ Brunei: "Brunei",
34
+ Bulgaria: "Bulgaria",
35
+ BurkinaFaso: "Burkina Faso",
36
+ Myanmar: "Myanmar",
37
+ Burundi: "Burundi",
38
+ Cambodia: "Cambodia",
39
+ Cameroon: "Cameroon",
40
+ Canada: "Canada",
41
+ CapeVerde: "Cape Verde",
42
+ CentralAfricanRepublic: "Central African Republic",
43
+ Chad: "Chad",
44
+ Chile: "Chile",
45
+ China: "China",
46
+ Colombia: "Colombia",
47
+ Comoros: "Comoros",
48
+ CongoRepublicOf: "Congo, Republic of",
49
+ CostaRica: "Costa Rica",
50
+ CoteDIvoire: "Cote d'Ivoire",
51
+ Croatia: "Croatia",
52
+ Cuba: "Cuba",
53
+ Cyprus: "Cyprus",
54
+ CzechRepublic: "Czech Republic",
55
+ Denmark: "Denmark",
56
+ Djibouti: "Djibouti",
57
+ Dominica: "Dominica",
58
+ DominicanRepublic: "Dominican Republic",
59
+ Ecuador: "Ecuador",
60
+ Egypt: "Egypt",
61
+ ElSalvador: "El Salvador",
62
+ EquatorialGuinea: "Equatorial Guinea",
63
+ Eritrea: "Eritrea",
64
+ Estonia: "Estonia",
65
+ Ethiopia: "Ethiopia",
66
+ Fiji: "Fiji",
67
+ Finland: "Finland",
68
+ France: "France",
69
+ Gabon: "Gabon",
70
+ Gambia: "Gambia",
71
+ Georgia: "Georgia",
72
+ Germany: "Germany",
73
+ Ghana: "Ghana",
74
+ Greece: "Greece",
75
+ Grenada: "Grenada",
76
+ Guatemala: "Guatemala",
77
+ Guinea: "Guinea",
78
+ GuineaBissau: "Guinea-Bissau",
79
+ Guyana: "Guyana",
80
+ Haiti: "Haiti",
81
+ HolySee: "Holy See",
82
+ Honduras: "Honduras",
83
+ Hungary: "Hungary",
84
+ Iceland: "Iceland",
85
+ India: "India",
86
+ Indonesia: "Indonesia",
87
+ Iran: "Iran",
88
+ Iraq: "Iraq",
89
+ Ireland: "Ireland",
90
+ Israel: "Israel",
91
+ Italy: "Italy",
92
+ Jamaica: "Jamaica",
93
+ Japan: "Japan",
94
+ Jordan: "Jordan",
95
+ Kazakhstan: "Kazakhstan",
96
+ Kenya: "Kenya",
97
+ Kiribati: "Kiribati",
98
+ Kuwait: "Kuwait",
99
+ Kyrgyzstan: "Kyrgyzstan",
100
+ Laos: "Laos",
101
+ Latvia: "Latvia",
102
+ Lebanon: "Lebanon",
103
+ Lesotho: "Lesotho",
104
+ Liberia: "Liberia",
105
+ Libya: "Libya",
106
+ Liechtenstein: "Liechtenstein",
107
+ Lithuania: "Lithuania",
108
+ Luxembourg: "Luxembourg",
109
+ Macedonia: "Macedonia",
110
+ Madagascar: "Madagascar",
111
+ Malawi: "Malawi",
112
+ Malaysia: "Malaysia",
113
+ Maldives: "Maldives",
114
+ Mali: "Mali",
115
+ Malta: "Malta",
116
+ MarshallIslands: "Marshall Islands",
117
+ Mauritania: "Mauritania",
118
+ Mauritius: "Mauritius",
119
+ Mexico: "Mexico",
120
+ Micronesia: "Micronesia",
121
+ Moldova: "Moldova",
122
+ Monaco: "Monaco",
123
+ Mongolia: "Mongolia",
124
+ Morocco: "Morocco",
125
+ Mozambique: "Mozambique",
126
+ Namibia: "Namibia",
127
+ Nauru: "Nauru",
128
+ Nepal: "Nepal",
129
+ Netherlands: "Netherlands",
130
+ NewZealand: "New Zealand",
131
+ Nicaragua: "Nicaragua",
132
+ Niger: "Niger",
133
+ Nigeria: "Nigeria",
134
+ NorthKorea: "North Korea",
135
+ Norway: "Norway",
136
+ Oman: "Oman",
137
+ Pakistan: "Pakistan",
138
+ Palau: "Palau",
139
+ Panama: "Panama",
140
+ PapuaNewGuinea: "Papua New Guinea",
141
+ Paraguay: "Paraguay",
142
+ Peru: "Peru",
143
+ Philippines: "Philippines",
144
+ Poland: "Poland",
145
+ Portugal: "Portugal",
146
+ Qatar: "Qatar",
147
+ Romania: "Romania",
148
+ Russia: "Russia",
149
+ Rwanda: "Rwanda",
150
+ SaintKittsAndNevis: "Saint Kitts and Nevis",
151
+ SaintLucia: "Saint Lucia",
152
+ SaintVincentAndTheGrenadines: "Saint Vincent and the Grenadines",
153
+ Samoa: "Samoa",
154
+ SanMarino: "San Marino",
155
+ SaoTomeAndPrincipe: "Sao Tome and Principe",
156
+ SaudiArabia: "Saudi Arabia",
157
+ Senegal: "Senegal",
158
+ Seychelles: "Seychelles",
159
+ SierraLeone: "Sierra Leone",
160
+ Slovakia: "Slovakia",
161
+ Slovenia: "Slovenia",
162
+ SolomonIslands: "Solomon Islands",
163
+ Somalia: "Somalia",
164
+ SouthAfrica: "South Africa",
165
+ SouthKorea: "South Korea",
166
+ Spain: "Spain",
167
+ SriLanka: "Sri Lanka",
168
+ Sudan: "Sudan",
169
+ Suriname: "Suriname",
170
+ Swaziland: "Swaziland",
171
+ Sweden: "Sweden",
172
+ Switzerland: "Switzerland",
173
+ Syria: "Syria",
174
+ Taiwan: "Taiwan",
175
+ Tajikistan: "Tajikistan",
176
+ Tanzania: "Tanzania",
177
+ Thailand: "Thailand",
178
+ Togo: "Togo",
179
+ Tonga: "Tonga",
180
+ TrinidadAndTobago: "Trinidad and Tobago",
181
+ Tunisia: "Tunisia",
182
+ Turkey: "Turkey",
183
+ Turkmenistan: "Turkmenistan",
184
+ Tuvalu: "Tuvalu",
185
+ Uganda: "Uganda",
186
+ Ukraine: "Ukraine",
187
+ UnitedArabEmirates: "United Arab Emirates",
188
+ UnitedKingdom: "United Kingdom",
189
+ UnitedStatesOfAmerica: "United States of America",
190
+ Uruguay: "Uruguay",
191
+ Uzbekistan: "Uzbekistan",
192
+ Vanuatu: "Vanuatu",
193
+ Venezuela: "Venezuela",
194
+ Vietnam: "Vietnam",
195
+ Yemen: "Yemen",
196
+ Yugoslavia: "Yugoslavia",
197
+ Zambia: "Zambia",
198
+ Zimbabwe: "Zimbabwe",
199
+ CongoDemocraticRepublicOf: "Congo, Democratic Republic of",
200
+ TimorLeste: "Timor-Leste",
201
+ Anguilla: "Anguilla",
202
+ ChristmasIsland: "Christmas Island",
203
+ FalklandIslandsMalvinas: "Falkland Islands (Malvinas)",
204
+ FaroeIslands: "Faroe Islands",
205
+ FrenchGuiana: "French Guiana",
206
+ Gibraltar: "Gibraltar",
207
+ Greenland: "Greenland",
208
+ SouthGeorgiaAndTheSouthSandwichIslands: "South Georgia And The South Sandwich Islands",
209
+ HongKong: "Hong Kong",
210
+ HeardIslandAndMcdonaldIslands: "Heard Island and Mcdonald Islands",
211
+ BritishIndianOceanTerritory: "British Indian Ocean Territory",
212
+ CaymanIslands: "Cayman Islands",
213
+ Macao: "Macao",
214
+ NorthernMarianaIslands: "Northern Mariana Islands",
215
+ Martinique: "Martinique",
216
+ Montserrat: "Montserrat",
217
+ NewCaledonia: "New Caledonia",
218
+ NorfolkIsland: "Norfolk Island",
219
+ Niue: "Niue",
220
+ FrenchPolynesia: "French Polynesia",
221
+ SaintPierreAndMiquelon: "Saint Pierre and Miquelon",
222
+ Pitcairn: "Pitcairn",
223
+ PuertoRico: "Puerto Rico",
224
+ PalestinianTerritoryOccupied: "Palestinian Territory, Occupied",
225
+ CookIslands: "Cook Islands",
226
+ Reunion: "Reunion",
227
+ BouvetIsland: "Bouvet Island",
228
+ CocosKeelingIslands: "Cocos (Keeling)Islands",
229
+ SaintHelena: "Saint Helena",
230
+ SvalbardAndJanMayen: "Svalbard and Jan Mayen",
231
+ TurksAndCaicosIslands: "Turks and Caicos Islands",
232
+ FrenchSouthernTerritories: "French Southern Territories",
233
+ Tokelau: "Tokelau",
234
+ UnitedStatesMinorOutlyingIslands: "United States Minor Outlying Islands",
235
+ VirginIslandsBritish: "Virgin Islands, British",
236
+ VirginIslandsUs: "Virgin Islands, U.S.",
237
+ WallisAndFutuna: "Wallis and Futuna",
238
+ Mayotte: "Mayotte",
239
+ Others: "Others",
240
+ Bermuda: "Bermuda",
241
+ Guadeloupe: "Guadeloupe",
242
+ NetherlandsAntilles: "Netherlands Antilles",
243
+ WesternSahara: "Western Sahara",
244
+ Guam: "Guam",
245
+ Unknown: "Unknown",
246
+ Aruba: "Aruba",
247
+ Antarctica: "Antarctica",
248
+ AlandIslands: "\u00C5land Islands",
249
+ SerbMont: "Serb/Mont",
250
+ Guernsey: "Guernsey",
251
+ IsleOfMan: "Isle Of Man",
252
+ Jersey: "Jersey",
253
+ WesternSamoa: "Western Samoa",
254
+ Kosovo: "Kosovo",
255
+ BonaireSintEustatiusAndSaba: "Bonaire, Sint Eustatius, and Saba",
256
+ Curacao: "Curacao",
257
+ SaintBarthelemy: "Saint Barthelemy",
258
+ SintMaarten: "Sint Maarten",
259
+ SouthSudan: "South Sudan",
260
+ Serbia: "Serbia",
261
+ Montenegro: "Montenegro",
262
+ SaintMartin: "Saint Martin",
263
+ };
@@ -17,7 +17,7 @@ export interface OfferingDto {
17
17
  isSubsidisable: boolean;
18
18
  timeslotPolicy: ReferralExchange.TimeslotPolicy;
19
19
  /** Category of the offering. Used to group offerings together. */
20
- category?: "aac";
20
+ category?: ReferralExchange.OfferingDtoCategory;
21
21
  /** NEHR code for the offering */
22
22
  nehrCode?: string;
23
23
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Category of the offering. Used to group offerings together.
6
+ */
7
+ export type OfferingDtoCategory = "aac" | "acp";
8
+ export declare const OfferingDtoCategory: {
9
+ readonly Aac: "aac";
10
+ readonly Acp: "acp";
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.OfferingDtoCategory = void 0;
7
+ exports.OfferingDtoCategory = {
8
+ Aac: "aac",
9
+ Acp: "acp",
10
+ };
@@ -17,7 +17,7 @@ export interface OfferingWithAllowedDto {
17
17
  isSubsidisable: boolean;
18
18
  timeslotPolicy: ReferralExchange.TimeslotPolicy;
19
19
  /** Category of the offering. Used to group offerings together. */
20
- category?: "aac";
20
+ category?: ReferralExchange.OfferingWithAllowedDtoCategory;
21
21
  /** NEHR code for the offering */
22
22
  nehrCode?: string;
23
23
  /** Whether the offering is allowed based on the provided query parameters */
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Category of the offering. Used to group offerings together.
6
+ */
7
+ export type OfferingWithAllowedDtoCategory = "aac" | "acp";
8
+ export declare const OfferingWithAllowedDtoCategory: {
9
+ readonly Aac: "aac";
10
+ readonly Acp: "acp";
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.OfferingWithAllowedDtoCategory = void 0;
7
+ exports.OfferingWithAllowedDtoCategory = {
8
+ Aac: "aac",
9
+ Acp: "acp",
10
+ };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type TimelineEventType = "draft.created" | "draft.updated" | "draft.deleted" | "referral.created" | "referral.confirmed" | "referral.rejected" | "referral.pending-cancelled" | "referral.amended" | "referral.cancelled" | "referral.validated" | "referral.pending-email-ack" | "appt.confirmed" | "appt.rescheduled" | "appt.location-updated" | "appt.rejected" | "note.created" | "singhealth-patient-details.submitted" | "referral.ea-reminder-sent" | "referral.form-response-submitted" | "referral.back-to-draft" | "referral.fyi-sent" | "referral.email-sent" | "referral.discharged" | "referral.sms-sent" | "referral.sms-status-changed";
4
+ export type TimelineEventType = "draft.created" | "draft.updated" | "draft.deleted" | "referral.created" | "referral.confirmed" | "referral.rejected" | "referral.pending-cancelled" | "referral.amended" | "referral.cancelled" | "referral.validated" | "referral.pending-email-ack" | "appt.confirmed" | "appt.cancelled" | "appt.no-show" | "appt.rescheduled" | "appt.location-updated" | "appt.rejected" | "note.created" | "singhealth-patient-details.submitted" | "referral.ea-reminder-sent" | "referral.form-response-submitted" | "referral.back-to-draft" | "referral.fyi-sent" | "referral.email-sent" | "referral.discharged" | "referral.sms-sent" | "referral.sms-status-changed";
5
5
  export declare const TimelineEventType: {
6
6
  readonly DraftCreated: "draft.created";
7
7
  readonly DraftUpdated: "draft.updated";
@@ -15,6 +15,8 @@ export declare const TimelineEventType: {
15
15
  readonly ReferralValidated: "referral.validated";
16
16
  readonly ReferralPendingEmailAck: "referral.pending-email-ack";
17
17
  readonly ApptConfirmed: "appt.confirmed";
18
+ readonly ApptCancelled: "appt.cancelled";
19
+ readonly ApptNoShow: "appt.no-show";
18
20
  readonly ApptRescheduled: "appt.rescheduled";
19
21
  readonly ApptLocationUpdated: "appt.location-updated";
20
22
  readonly ApptRejected: "appt.rejected";
@@ -17,6 +17,8 @@ exports.TimelineEventType = {
17
17
  ReferralValidated: "referral.validated",
18
18
  ReferralPendingEmailAck: "referral.pending-email-ack",
19
19
  ApptConfirmed: "appt.confirmed",
20
+ ApptCancelled: "appt.cancelled",
21
+ ApptNoShow: "appt.no-show",
20
22
  ApptRescheduled: "appt.rescheduled",
21
23
  ApptLocationUpdated: "appt.location-updated",
22
24
  ApptRejected: "appt.rejected",
@@ -11,10 +11,12 @@ export * from "./ReferralRole";
11
11
  export * from "./InstitutionCoreDto";
12
12
  export * from "./System";
13
13
  export * from "./TimeslotPolicy";
14
+ export * from "./OfferingDtoCategory";
14
15
  export * from "./OfferingDto";
15
16
  export * from "./CreateAddressReq";
16
17
  export * from "./GetReferralPatientDtoGender";
17
18
  export * from "./GetReferralPatientDtoResidentialStatus";
19
+ export * from "./GetReferralPatientDtoNationality";
18
20
  export * from "./GetReferralPatientDto";
19
21
  export * from "./ReferringDoctorDto";
20
22
  export * from "./FormResponseAnswer";
@@ -42,11 +44,13 @@ export * from "./FullReferralDtoStatus";
42
44
  export * from "./FullReferralDto";
43
45
  export * from "./CreatePatientReqGender";
44
46
  export * from "./CreatePatientReqResidentialStatus";
47
+ export * from "./CreatePatientReqNationality";
45
48
  export * from "./CreatePatientReq";
46
49
  export * from "./CreateReferrerReq";
47
50
  export * from "./ReferrerStatusDto";
48
51
  export * from "./GetReferrersRes";
49
52
  export * from "./EligibilityReasonDto";
53
+ export * from "./OfferingWithAllowedDtoCategory";
50
54
  export * from "./OfferingWithAllowedDto";
51
55
  export * from "./Timeslot";
52
56
  export * from "./UpdateEmailAckOfferingReq";
@@ -27,10 +27,12 @@ __exportStar(require("./ReferralRole"), exports);
27
27
  __exportStar(require("./InstitutionCoreDto"), exports);
28
28
  __exportStar(require("./System"), exports);
29
29
  __exportStar(require("./TimeslotPolicy"), exports);
30
+ __exportStar(require("./OfferingDtoCategory"), exports);
30
31
  __exportStar(require("./OfferingDto"), exports);
31
32
  __exportStar(require("./CreateAddressReq"), exports);
32
33
  __exportStar(require("./GetReferralPatientDtoGender"), exports);
33
34
  __exportStar(require("./GetReferralPatientDtoResidentialStatus"), exports);
35
+ __exportStar(require("./GetReferralPatientDtoNationality"), exports);
34
36
  __exportStar(require("./GetReferralPatientDto"), exports);
35
37
  __exportStar(require("./ReferringDoctorDto"), exports);
36
38
  __exportStar(require("./FormResponseAnswer"), exports);
@@ -58,11 +60,13 @@ __exportStar(require("./FullReferralDtoStatus"), exports);
58
60
  __exportStar(require("./FullReferralDto"), exports);
59
61
  __exportStar(require("./CreatePatientReqGender"), exports);
60
62
  __exportStar(require("./CreatePatientReqResidentialStatus"), exports);
63
+ __exportStar(require("./CreatePatientReqNationality"), exports);
61
64
  __exportStar(require("./CreatePatientReq"), exports);
62
65
  __exportStar(require("./CreateReferrerReq"), exports);
63
66
  __exportStar(require("./ReferrerStatusDto"), exports);
64
67
  __exportStar(require("./GetReferrersRes"), exports);
65
68
  __exportStar(require("./EligibilityReasonDto"), exports);
69
+ __exportStar(require("./OfferingWithAllowedDtoCategory"), exports);
66
70
  __exportStar(require("./OfferingWithAllowedDto"), exports);
67
71
  __exportStar(require("./Timeslot"), exports);
68
72
  __exportStar(require("./UpdateEmailAckOfferingReq"), exports);
@@ -89,7 +89,7 @@ class Eligibility {
89
89
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
90
90
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/eligibility"),
91
91
  method: "GET",
92
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.63", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",
@@ -69,7 +69,7 @@ class Health {
69
69
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
70
70
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/health"),
71
71
  method: "GET",
72
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.63", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.63", "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.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
73
73
  contentType: "application/json",
74
74
  requestType: "json",
75
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,10 +1,11 @@
1
+ export * as offerings from "./offerings";
2
+ export * from "./offerings/types";
1
3
  export * as links from "./links";
2
4
  export * from "./links/types";
3
5
  export * as eligibility from "./eligibility";
4
6
  export * as referrals from "./referrals";
5
7
  export * as notes from "./notes";
6
8
  export * as referrers from "./referrers";
7
- export * as offerings from "./offerings";
8
9
  export * as public_ from "./public";
9
10
  export * as webhooks from "./webhooks";
10
11
  export * as health from "./health";
@@ -36,14 +36,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.health = exports.webhooks = exports.public_ = exports.offerings = exports.referrers = exports.notes = exports.referrals = exports.eligibility = exports.links = void 0;
39
+ exports.health = exports.webhooks = exports.public_ = exports.referrers = exports.notes = exports.referrals = exports.eligibility = exports.links = exports.offerings = void 0;
40
+ exports.offerings = __importStar(require("./offerings"));
41
+ __exportStar(require("./offerings/types"), exports);
40
42
  exports.links = __importStar(require("./links"));
41
43
  __exportStar(require("./links/types"), exports);
42
44
  exports.eligibility = __importStar(require("./eligibility"));
43
45
  exports.referrals = __importStar(require("./referrals"));
44
46
  exports.notes = __importStar(require("./notes"));
45
47
  exports.referrers = __importStar(require("./referrers"));
46
- exports.offerings = __importStar(require("./offerings"));
47
48
  exports.public_ = __importStar(require("./public"));
48
49
  exports.webhooks = __importStar(require("./webhooks"));
49
50
  exports.health = __importStar(require("./health"));
@@ -82,7 +82,7 @@ class Links {
82
82
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
83
83
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/links/upsert"),
84
84
  method: "POST",
85
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.63", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.64", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.64", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  body: Object.assign(Object.assign({}, request), { referrerInstitutionIdType: "hci" }),
@@ -43,6 +43,8 @@ export interface CreateLinkReqUpsert {
43
43
  address?: ReferralExchange.CreateAddressReq;
44
44
  /** Patient residential status */
45
45
  residentialStatus?: ReferralExchange.CreateLinkReqUpsertResidentialStatus;
46
+ /** Patient nationality */
47
+ nationality?: ReferralExchange.CreateLinkReqUpsertNationality;
46
48
  /** Patient Healthier SG (HSG) enrolment status */
47
49
  isPatientHsgEnrolled?: boolean;
48
50
  /** Clinic license number */