@arbol-ai/sdk 4.0.0 → 5.0.0

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 (230) hide show
  1. package/README.md +15 -3
  2. package/dist/agenda/appointments/client.d.ts +165 -52
  3. package/dist/agenda/appointments/client.js +19 -11
  4. package/dist/agenda/appointments/index.d.ts +1 -1
  5. package/dist/agenda/availability/client.d.ts +11 -72
  6. package/dist/agenda/availability/client.js +5 -14
  7. package/dist/agenda/availability/index.d.ts +1 -1
  8. package/dist/agenda/bookingLocations/client.d.ts +51 -0
  9. package/dist/agenda/bookingLocations/client.js +19 -0
  10. package/dist/agenda/bookingLocations/index.d.ts +4 -0
  11. package/dist/agenda/bookingLocations/index.js +4 -0
  12. package/dist/agenda/bookingOfferings/client.d.ts +82 -0
  13. package/dist/agenda/bookingOfferings/client.js +18 -0
  14. package/dist/agenda/bookingOfferings/index.d.ts +5 -0
  15. package/dist/agenda/bookingOfferings/index.js +4 -0
  16. package/dist/agenda/bookingOfferings/models.d.ts +92 -0
  17. package/dist/agenda/bookingOfferings/models.js +3 -0
  18. package/dist/agenda/bookingRequirements/client.d.ts +118 -0
  19. package/dist/agenda/bookingRequirements/client.js +18 -0
  20. package/dist/agenda/bookingRequirements/index.d.ts +4 -0
  21. package/dist/agenda/bookingRequirements/index.js +4 -0
  22. package/dist/agenda/bookingSlots/client.d.ts +78 -0
  23. package/dist/agenda/bookingSlots/client.js +19 -0
  24. package/dist/agenda/bookingSlots/index.d.ts +4 -0
  25. package/dist/agenda/bookingSlots/index.js +4 -0
  26. package/dist/agenda/bookings/client.d.ts +44 -375
  27. package/dist/agenda/bookings/client.js +10 -52
  28. package/dist/agenda/bookings/index.d.ts +2 -2
  29. package/dist/agenda/bookings/models.d.ts +0 -92
  30. package/dist/agenda/client.d.ts +14 -0
  31. package/dist/agenda/client.js +35 -0
  32. package/dist/agenda/firstAvailability/client.d.ts +74 -0
  33. package/dist/agenda/firstAvailability/client.js +19 -0
  34. package/dist/agenda/firstAvailability/index.d.ts +5 -0
  35. package/dist/agenda/firstAvailability/index.js +4 -0
  36. package/dist/agenda/firstAvailability/models.d.ts +31 -0
  37. package/dist/agenda/firstAvailability/models.js +7 -0
  38. package/dist/agenda/index.d.ts +1 -1
  39. package/dist/agenda/models.d.ts +19 -94
  40. package/dist/agenda/models.js +0 -3
  41. package/dist/agenda/nearestBookingSlots/client.d.ts +93 -0
  42. package/dist/agenda/nearestBookingSlots/client.js +19 -0
  43. package/dist/agenda/nearestBookingSlots/index.d.ts +5 -0
  44. package/dist/agenda/nearestBookingSlots/index.js +4 -0
  45. package/dist/agenda/nearestBookingSlots/models.d.ts +38 -0
  46. package/dist/agenda/nearestBookingSlots/models.js +7 -0
  47. package/dist/agenda/offerings/client.d.ts +2 -2
  48. package/dist/agenda/offerings/client.js +1 -1
  49. package/dist/agenda/resourceSchedules/client.d.ts +75 -0
  50. package/dist/agenda/resourceSchedules/client.js +19 -0
  51. package/dist/agenda/resourceSchedules/index.d.ts +4 -0
  52. package/dist/agenda/resourceSchedules/index.js +4 -0
  53. package/dist/agenda/resources/client.d.ts +2 -2
  54. package/dist/agenda/resources/client.js +1 -1
  55. package/dist/agenda/scheduleRules/client.d.ts +125 -85
  56. package/dist/agenda/scheduleRules/client.js +17 -16
  57. package/dist/agenda/scheduleRules/index.d.ts +2 -1
  58. package/dist/agenda/scheduleRules/models.d.ts +33 -0
  59. package/dist/agenda/scheduleRules/models.js +6 -0
  60. package/dist/agenda/services/client.d.ts +2 -2
  61. package/dist/agenda/services/client.js +1 -1
  62. package/dist/agenda/waitlist/client.d.ts +40 -29
  63. package/dist/agenda/waitlist/client.js +4 -4
  64. package/dist/agenda/waitlist/index.d.ts +1 -1
  65. package/dist/agenda/waitlist/models.d.ts +17 -0
  66. package/dist/agenda/waitlist/models.js +4 -1
  67. package/dist/axxa/authorizations/client.d.ts +3 -35
  68. package/dist/axxa/authorizations/client.js +1 -1
  69. package/dist/axxa/authorizations/index.d.ts +1 -0
  70. package/dist/axxa/authorizations/models.d.ts +112 -0
  71. package/dist/axxa/authorizations/models.js +3 -0
  72. package/dist/axxa/connections/client.d.ts +19 -45
  73. package/dist/axxa/connections/client.js +10 -11
  74. package/dist/axxa/connections/index.d.ts +1 -0
  75. package/dist/axxa/connections/models.d.ts +269 -0
  76. package/dist/axxa/connections/models.js +3 -0
  77. package/dist/axxa/eligibility/client.d.ts +3 -25
  78. package/dist/axxa/eligibility/client.js +1 -1
  79. package/dist/axxa/eligibility/index.d.ts +1 -0
  80. package/dist/axxa/eligibility/models.d.ts +102 -0
  81. package/dist/axxa/eligibility/models.js +3 -0
  82. package/dist/axxa/index.d.ts +1 -1
  83. package/dist/axxa/models.d.ts +243 -168
  84. package/dist/axxa/provider/client.d.ts +5 -11
  85. package/dist/axxa/provider/client.js +1 -1
  86. package/dist/axxa/provider/index.d.ts +1 -0
  87. package/dist/axxa/provider/models.d.ts +87 -0
  88. package/dist/axxa/provider/models.js +3 -0
  89. package/dist/gmedic/agendaServices/client.d.ts +13 -9
  90. package/dist/gmedic/agendaServices/client.js +2 -2
  91. package/dist/gmedic/agendaServices/index.d.ts +1 -1
  92. package/dist/gmedic/agendaServices/models.d.ts +53 -1
  93. package/dist/gmedic/agendas/client.d.ts +16 -9
  94. package/dist/gmedic/agendas/client.js +2 -2
  95. package/dist/gmedic/agendas/index.d.ts +1 -1
  96. package/dist/gmedic/agendas/models.d.ts +53 -1
  97. package/dist/gmedic/appointments/client.d.ts +34 -241
  98. package/dist/gmedic/appointments/client.js +12 -10
  99. package/dist/gmedic/appointments/index.d.ts +1 -1
  100. package/dist/gmedic/appointments/models.d.ts +518 -1
  101. package/dist/gmedic/appointments/models.js +28 -2
  102. package/dist/gmedic/availability/client.d.ts +24 -10
  103. package/dist/gmedic/availability/client.js +4 -3
  104. package/dist/gmedic/availability/index.d.ts +1 -1
  105. package/dist/gmedic/availability/models.d.ts +57 -1
  106. package/dist/gmedic/availability/models.js +7 -1
  107. package/dist/gmedic/availableDays/client.d.ts +11 -8
  108. package/dist/gmedic/availableDays/client.js +1 -1
  109. package/dist/gmedic/availableDays/index.d.ts +1 -1
  110. package/dist/gmedic/availableDays/models.d.ts +53 -1
  111. package/dist/gmedic/branchOffices/client.d.ts +13 -9
  112. package/dist/gmedic/branchOffices/client.js +2 -2
  113. package/dist/gmedic/branchOffices/index.d.ts +1 -1
  114. package/dist/gmedic/branchOffices/models.d.ts +58 -1
  115. package/dist/gmedic/connections/client.d.ts +19 -42
  116. package/dist/gmedic/connections/client.js +10 -11
  117. package/dist/gmedic/connections/index.d.ts +1 -0
  118. package/dist/gmedic/connections/models.d.ts +162 -0
  119. package/dist/gmedic/connections/models.js +3 -0
  120. package/dist/gmedic/dictionaryEntries/client.d.ts +20 -10
  121. package/dist/gmedic/dictionaryEntries/client.js +2 -2
  122. package/dist/gmedic/dictionaryEntries/index.d.ts +1 -1
  123. package/dist/gmedic/dictionaryEntries/models.d.ts +53 -1
  124. package/dist/gmedic/healthPartners/client.d.ts +19 -9
  125. package/dist/gmedic/healthPartners/client.js +2 -2
  126. package/dist/gmedic/healthPartners/index.d.ts +1 -1
  127. package/dist/gmedic/healthPartners/models.d.ts +53 -1
  128. package/dist/gmedic/healthPromotionEntities/client.d.ts +20 -10
  129. package/dist/gmedic/healthPromotionEntities/client.js +2 -2
  130. package/dist/gmedic/healthPromotionEntities/index.d.ts +1 -1
  131. package/dist/gmedic/healthPromotionEntities/models.d.ts +53 -1
  132. package/dist/gmedic/index.d.ts +1 -1
  133. package/dist/gmedic/laboralRiskManagers/client.d.ts +20 -10
  134. package/dist/gmedic/laboralRiskManagers/client.js +2 -2
  135. package/dist/gmedic/laboralRiskManagers/index.d.ts +1 -1
  136. package/dist/gmedic/laboralRiskManagers/models.d.ts +53 -1
  137. package/dist/gmedic/models.d.ts +194 -133
  138. package/dist/gmedic/occupations/client.d.ts +19 -9
  139. package/dist/gmedic/occupations/client.js +2 -2
  140. package/dist/gmedic/occupations/index.d.ts +1 -1
  141. package/dist/gmedic/occupations/models.d.ts +53 -1
  142. package/dist/gmedic/patientNotes/client.d.ts +25 -55
  143. package/dist/gmedic/patientNotes/client.js +5 -5
  144. package/dist/gmedic/patientNotes/index.d.ts +1 -1
  145. package/dist/gmedic/patientNotes/models.d.ts +232 -1
  146. package/dist/gmedic/patients/client.d.ts +40 -359
  147. package/dist/gmedic/patients/client.js +13 -5
  148. package/dist/gmedic/patients/index.d.ts +2 -2
  149. package/dist/gmedic/patients/models.d.ts +795 -1
  150. package/dist/gmedic/services/client.d.ts +22 -16
  151. package/dist/gmedic/services/client.js +2 -2
  152. package/dist/gmedic/services/index.d.ts +1 -1
  153. package/dist/gmedic/services/models.d.ts +53 -3
  154. package/dist/gmedic/sessionPackages/client.d.ts +21 -58
  155. package/dist/gmedic/sessionPackages/client.js +5 -5
  156. package/dist/gmedic/sessionPackages/index.d.ts +1 -1
  157. package/dist/gmedic/sessionPackages/models.d.ts +183 -1
  158. package/dist/index.d.ts +1 -1
  159. package/dist/models.d.ts +61 -0
  160. package/dist/models.js +6 -0
  161. package/dist/nuevaEps/affiliations/client.js +1 -1
  162. package/dist/nuevaEps/affiliations/models.d.ts +3 -1
  163. package/dist/nuevaEps/connections/client.d.ts +9 -9
  164. package/dist/nuevaEps/connections/client.js +9 -9
  165. package/dist/nuevaEps/connections/index.d.ts +1 -1
  166. package/dist/nuevaEps/connections/models.d.ts +1 -47
  167. package/dist/nuevaEps/connections/models.js +1 -8
  168. package/dist/sura/affiliations/client.d.ts +3 -35
  169. package/dist/sura/affiliations/client.js +6 -6
  170. package/dist/sura/affiliations/index.d.ts +1 -0
  171. package/dist/sura/affiliations/models.d.ts +71 -0
  172. package/dist/sura/affiliations/models.js +8 -0
  173. package/dist/sura/appointments/client.d.ts +27 -327
  174. package/dist/sura/appointments/client.js +15 -21
  175. package/dist/sura/appointments/index.d.ts +2 -1
  176. package/dist/sura/appointments/models.d.ts +310 -0
  177. package/dist/sura/appointments/models.js +22 -0
  178. package/dist/sura/authorizations/client.d.ts +3 -43
  179. package/dist/sura/authorizations/client.js +6 -6
  180. package/dist/sura/authorizations/index.d.ts +1 -0
  181. package/dist/sura/authorizations/models.d.ts +79 -0
  182. package/dist/sura/authorizations/models.js +8 -0
  183. package/dist/sura/availability/client.d.ts +4 -68
  184. package/dist/sura/availability/client.js +9 -9
  185. package/dist/sura/availability/index.d.ts +2 -1
  186. package/dist/sura/availability/models.d.ts +103 -0
  187. package/dist/sura/availability/models.js +8 -0
  188. package/dist/sura/bookingOptions/client.d.ts +35 -0
  189. package/dist/sura/bookingOptions/client.js +19 -0
  190. package/dist/sura/bookingOptions/index.d.ts +5 -0
  191. package/dist/sura/bookingOptions/index.js +4 -0
  192. package/dist/sura/bookingOptions/models.d.ts +143 -0
  193. package/dist/sura/bookingOptions/models.js +8 -0
  194. package/dist/sura/client.d.ts +2 -0
  195. package/dist/sura/client.js +5 -0
  196. package/dist/sura/connections/client.d.ts +20 -98
  197. package/dist/sura/connections/client.js +10 -10
  198. package/dist/sura/connections/index.d.ts +1 -1
  199. package/dist/sura/connections/models.d.ts +102 -1
  200. package/dist/sura/connections/models.js +6 -0
  201. package/dist/sura/copays/client.d.ts +4 -40
  202. package/dist/sura/copays/client.js +9 -9
  203. package/dist/sura/copays/index.d.ts +2 -1
  204. package/dist/sura/copays/models.d.ts +75 -0
  205. package/dist/sura/copays/models.js +8 -0
  206. package/dist/sura/index.d.ts +1 -1
  207. package/dist/sura/models.d.ts +204 -148
  208. package/dist/sura/models.js +20 -1
  209. package/dist/sura/operations/client.d.ts +2 -7
  210. package/dist/sura/operations/client.js +4 -4
  211. package/dist/sura/operations/index.d.ts +1 -0
  212. package/dist/sura/operations/models.d.ts +43 -0
  213. package/dist/sura/operations/models.js +8 -0
  214. package/dist/sura/patients/client.d.ts +3 -40
  215. package/dist/sura/patients/client.js +6 -6
  216. package/dist/sura/patients/index.d.ts +1 -0
  217. package/dist/sura/patients/models.d.ts +76 -0
  218. package/dist/sura/patients/models.js +8 -0
  219. package/dist/sura/professionals/client.d.ts +7 -9
  220. package/dist/sura/professionals/client.js +3 -4
  221. package/dist/sura/professionals/index.d.ts +1 -1
  222. package/dist/sura/professionals/models.d.ts +40 -1
  223. package/dist/sura/services/client.d.ts +7 -8
  224. package/dist/sura/services/client.js +3 -4
  225. package/dist/sura/services/index.d.ts +1 -0
  226. package/dist/sura/services/models.d.ts +40 -0
  227. package/dist/sura/services/models.js +3 -0
  228. package/dist/visoft/index.d.ts +1 -1
  229. package/dist/visoft/models.d.ts +1 -16
  230. package/package.json +3 -3
@@ -1,4 +1,155 @@
1
- import type { PageInfo } from "../../models.js";
1
+ import type { Empty, OutcomeUnknownFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface GmedicCreatePatientNoteBadGatewayError {
7
+ data: null;
8
+ error: GmedicCreatePatientNoteBadGatewayFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type GmedicCreatePatientNoteBadGatewayFailure = OutcomeUnknownFailure | GmedicProviderAccessRejectedFailure | GmedicProviderResponseInvalidFailure;
16
+ export interface GmedicCreatePatientNoteBody {
17
+ connectionId?: string;
18
+ data: {
19
+ alert?: boolean;
20
+ date: string;
21
+ text: string;
22
+ };
23
+ patientId: string;
24
+ }
25
+ /**
26
+ * A failed answer.
27
+ */
28
+ export interface GmedicCreatePatientNoteNotFoundError {
29
+ data: null;
30
+ error: GmedicCreatePatientNoteNotFoundFailure;
31
+ /**
32
+ * What every answer carries besides its data or error.
33
+ */
34
+ metadata: ResponseMetadata;
35
+ success: false;
36
+ }
37
+ export type GmedicCreatePatientNoteNotFoundFailure = GmedicConnectionNotFoundFailure | GmedicRecordNotFoundFailure | GmedicPatientNotFoundFailure;
38
+ export interface GmedicCreatePatientNoteResult {
39
+ alert?: boolean | null;
40
+ date?: string | null;
41
+ id: string;
42
+ key?: string | null;
43
+ patient?: string | null;
44
+ text?: string | null;
45
+ user?: string | null;
46
+ }
47
+ /**
48
+ * A successful answer.
49
+ */
50
+ export interface GmedicCreatePatientNoteResultResponse {
51
+ data: GmedicCreatePatientNoteResult;
52
+ error: null;
53
+ /**
54
+ * What every answer carries besides its data or error.
55
+ */
56
+ metadata: ResponseMetadata;
57
+ success: true;
58
+ }
59
+ /**
60
+ * A failed answer.
61
+ */
62
+ export interface GmedicCreatePatientNoteServiceUnavailableError {
63
+ data: null;
64
+ error: GmedicCreatePatientNoteServiceUnavailableFailure;
65
+ /**
66
+ * What every answer carries besides its data or error.
67
+ */
68
+ metadata: ResponseMetadata;
69
+ success: false;
70
+ }
71
+ export type GmedicCreatePatientNoteServiceUnavailableFailure = UpstreamUnavailableFailure | GmedicCatalogSearchIncompleteFailure | GmedicProviderUnavailableFailure;
72
+ /**
73
+ * A failed answer.
74
+ */
75
+ export interface GmedicListPatientNotesBadGatewayError {
76
+ data: null;
77
+ error: GmedicListPatientNotesBadGatewayFailure;
78
+ /**
79
+ * What every answer carries besides its data or error.
80
+ */
81
+ metadata: ResponseMetadata;
82
+ success: false;
83
+ }
84
+ export type GmedicListPatientNotesBadGatewayFailure = OutcomeUnknownFailure | GmedicProviderAccessRejectedFailure | GmedicProviderResponseInvalidFailure;
85
+ /**
86
+ * A failed answer.
87
+ */
88
+ export interface GmedicListPatientNotesNotFoundError {
89
+ data: null;
90
+ error: GmedicListPatientNotesNotFoundFailure;
91
+ /**
92
+ * What every answer carries besides its data or error.
93
+ */
94
+ metadata: ResponseMetadata;
95
+ success: false;
96
+ }
97
+ export type GmedicListPatientNotesNotFoundFailure = GmedicConnectionNotFoundFailure | GmedicRecordNotFoundFailure | GmedicPatientNoteNotFoundFailure;
98
+ /**
99
+ * A failed answer.
100
+ */
101
+ export interface GmedicListPatientNotesServiceUnavailableError {
102
+ data: null;
103
+ error: GmedicListPatientNotesServiceUnavailableFailure;
104
+ /**
105
+ * What every answer carries besides its data or error.
106
+ */
107
+ metadata: ResponseMetadata;
108
+ success: false;
109
+ }
110
+ export type GmedicListPatientNotesServiceUnavailableFailure = UpstreamUnavailableFailure | GmedicCatalogSearchIncompleteFailure | GmedicProviderUnavailableFailure;
111
+ /**
112
+ * gMedic has no patient with this id.
113
+ */
114
+ export interface GmedicPatientNotFoundFailure {
115
+ /**
116
+ * The failure code, stable across releases.
117
+ */
118
+ code: "PATIENT_NOT_FOUND";
119
+ /**
120
+ * No fields.
121
+ */
122
+ data: Empty;
123
+ /**
124
+ * What went wrong, for people; it never contains input values.
125
+ */
126
+ message: string;
127
+ /**
128
+ * Whether repeating the same request may succeed.
129
+ */
130
+ retryable: false;
131
+ }
132
+ /**
133
+ * gMedic has no patient note with this id.
134
+ */
135
+ export interface GmedicPatientNoteNotFoundFailure {
136
+ /**
137
+ * The failure code, stable across releases.
138
+ */
139
+ code: "PATIENT_NOTE_NOT_FOUND";
140
+ /**
141
+ * No fields.
142
+ */
143
+ data: Empty;
144
+ /**
145
+ * What went wrong, for people; it never contains input values.
146
+ */
147
+ message: string;
148
+ /**
149
+ * Whether repeating the same request may succeed.
150
+ */
151
+ retryable: false;
152
+ }
2
153
  export interface GmedicPatientNotesPage {
3
154
  /**
4
155
  * Items admitted by this resource contract within the verified organization.
@@ -21,3 +172,83 @@ export interface GmedicPatientNotesPage {
21
172
  */
22
173
  pageInfo: PageInfo;
23
174
  }
175
+ /**
176
+ * A successful answer.
177
+ */
178
+ export interface GmedicPatientNotesPageResponse {
179
+ data: GmedicPatientNotesPage;
180
+ error: null;
181
+ /**
182
+ * What every answer carries besides its data or error.
183
+ */
184
+ metadata: ResponseMetadata;
185
+ success: true;
186
+ }
187
+ /**
188
+ * A failed answer.
189
+ */
190
+ export interface GmedicUpdatePatientNoteBadGatewayError {
191
+ data: null;
192
+ error: GmedicUpdatePatientNoteBadGatewayFailure;
193
+ /**
194
+ * What every answer carries besides its data or error.
195
+ */
196
+ metadata: ResponseMetadata;
197
+ success: false;
198
+ }
199
+ export type GmedicUpdatePatientNoteBadGatewayFailure = OutcomeUnknownFailure | GmedicProviderAccessRejectedFailure | GmedicProviderResponseInvalidFailure;
200
+ export interface GmedicUpdatePatientNoteBody {
201
+ connectionId?: string;
202
+ data: {
203
+ alert?: boolean;
204
+ date: string;
205
+ text: string;
206
+ };
207
+ }
208
+ /**
209
+ * A failed answer.
210
+ */
211
+ export interface GmedicUpdatePatientNoteNotFoundError {
212
+ data: null;
213
+ error: GmedicUpdatePatientNoteNotFoundFailure;
214
+ /**
215
+ * What every answer carries besides its data or error.
216
+ */
217
+ metadata: ResponseMetadata;
218
+ success: false;
219
+ }
220
+ export type GmedicUpdatePatientNoteNotFoundFailure = GmedicConnectionNotFoundFailure | GmedicRecordNotFoundFailure | GmedicPatientNoteNotFoundFailure;
221
+ export interface GmedicUpdatePatientNoteResult {
222
+ alert?: boolean | null;
223
+ date?: string | null;
224
+ id: string;
225
+ key?: string | null;
226
+ patient?: string | null;
227
+ text?: string | null;
228
+ user?: string | null;
229
+ }
230
+ /**
231
+ * A successful answer.
232
+ */
233
+ export interface GmedicUpdatePatientNoteResultResponse {
234
+ data: GmedicUpdatePatientNoteResult;
235
+ error: null;
236
+ /**
237
+ * What every answer carries besides its data or error.
238
+ */
239
+ metadata: ResponseMetadata;
240
+ success: true;
241
+ }
242
+ /**
243
+ * A failed answer.
244
+ */
245
+ export interface GmedicUpdatePatientNoteServiceUnavailableError {
246
+ data: null;
247
+ error: GmedicUpdatePatientNoteServiceUnavailableFailure;
248
+ /**
249
+ * What every answer carries besides its data or error.
250
+ */
251
+ metadata: ResponseMetadata;
252
+ success: false;
253
+ }
254
+ export type GmedicUpdatePatientNoteServiceUnavailableFailure = UpstreamUnavailableFailure | GmedicCatalogSearchIncompleteFailure | GmedicProviderUnavailableFailure;
@@ -1,6 +1,5 @@
1
1
  import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { GmedicResponseMetadata } from "../models.js";
3
- import type { GmedicPatientsPage } from "./models.js";
2
+ import type { GmedicCreatePatientBody, GmedicCreatePatientResultResponse, GmedicLookupPatientsBody, GmedicPatientMatchesPageResponse, GmedicPatientsPageResponse, GmedicUpdatePatientBody, GmedicUpdatePatientResultResponse } from "./models.js";
4
3
  export interface ClientOptions extends BaseClientOptions {
5
4
  /**
6
5
  * The URL the paths of the API are relative to.
@@ -19,9 +18,18 @@ export interface Client {
19
18
  * List patients
20
19
  *
21
20
  * Use the organization gMedic account. Read-only request; provider failures
22
- * are never empty results.
21
+ * are never empty results. Find a patient by identity document with
22
+ * patients.lookup.
23
23
  */
24
24
  list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
25
+ /**
26
+ * Look up patients by identity document
27
+ *
28
+ * Use the organization gMedic account. Finds the patient with this exact
29
+ * document type and number. Read-only request; an empty page means no such
30
+ * patient, and provider failures are never empty results.
31
+ */
32
+ lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
25
33
  /**
26
34
  * Update patient
27
35
  *
@@ -32,180 +40,8 @@ export interface Client {
32
40
  }
33
41
  export declare function createClient(options: ClientOptions): Client;
34
42
  export declare function bind(transport: Transport): Client;
35
- export interface CreateRequest {
36
- connectionId?: string;
37
- data: {
38
- address?: string;
39
- afpId?: string;
40
- arlId?: string;
41
- birthDate?: string;
42
- bloodTypeId?: string;
43
- childrenCount?: number;
44
- contactPerson?: string;
45
- contactPersonPhone?: string;
46
- countryCode?: string;
47
- dependentsCount?: number;
48
- disabilityCategoryId?: string;
49
- documentNumber: string;
50
- documentTypeId: string;
51
- educationLevelId?: string;
52
- email?: string;
53
- epsId?: string;
54
- ethnicityId?: string;
55
- expeditionPlaceCode?: string;
56
- firstName: string;
57
- genderId?: string;
58
- healthPartnerId?: string;
59
- healthPartnerIdNumber?: string;
60
- healthRegimeId?: string;
61
- householdCompositionTypeId?: string;
62
- householdSize?: number;
63
- lastName: string;
64
- locationCode?: string;
65
- locationZoneTypeId?: string;
66
- maritalStatusId?: string;
67
- mobile?: string;
68
- occupationId?: string;
69
- phone?: string;
70
- profession?: string;
71
- properties?: {
72
- [key: string]: string;
73
- };
74
- referredByName?: string;
75
- referredByTypeId?: string;
76
- responsible?: string;
77
- responsiblePhone?: string;
78
- responsibleRelationship?: string;
79
- socioeconomicStratum?: number;
80
- sourceCountryCode?: string;
81
- };
82
- }
83
- export interface CreateResponse {
84
- data: {
85
- address?: string | null;
86
- afp?: {
87
- id: string;
88
- label?: string | null;
89
- name?: string | null;
90
- value?: string | null;
91
- } | null;
92
- ageInYears?: number | null;
93
- ageMonths?: number | null;
94
- arl?: string | null;
95
- birthDate?: string | null;
96
- birthdayDays?: number | null;
97
- category?: {
98
- id: string;
99
- label?: string | null;
100
- name?: string | null;
101
- value?: string | null;
102
- } | null;
103
- childrenCount?: number | null;
104
- contactPerson?: string | null;
105
- contactPersonPhone?: string | null;
106
- creationDate?: string | null;
107
- dependentsCount?: number | null;
108
- disabilityCategory?: {
109
- id: string;
110
- label?: string | null;
111
- name?: string | null;
112
- value?: string | null;
113
- } | null;
114
- documentNumber?: string | null;
115
- documentType?: {
116
- id: string;
117
- label?: string | null;
118
- name?: string | null;
119
- value?: string | null;
120
- } | null;
121
- educationLevel?: {
122
- id: string;
123
- label?: string | null;
124
- name?: string | null;
125
- value?: string | null;
126
- } | null;
127
- email?: string | null;
128
- eps?: string | null;
129
- ethnicity?: {
130
- id: string;
131
- label?: string | null;
132
- name?: string | null;
133
- value?: string | null;
134
- } | null;
135
- firstName?: string | null;
136
- gender?: {
137
- id: string;
138
- label?: string | null;
139
- name?: string | null;
140
- value?: string | null;
141
- } | null;
142
- genderIdentity?: {
143
- id: string;
144
- label?: string | null;
145
- name?: string | null;
146
- value?: string | null;
147
- } | null;
148
- healthCompanyName?: string | null;
149
- healthRegime?: {
150
- id: string;
151
- label?: string | null;
152
- name?: string | null;
153
- value?: string | null;
154
- } | null;
155
- householdCompositionType?: {
156
- id: string;
157
- label?: string | null;
158
- name?: string | null;
159
- value?: string | null;
160
- } | null;
161
- householdSize?: number | null;
162
- id: string;
163
- jobCompany?: string | null;
164
- key?: string | null;
165
- lastName?: string | null;
166
- location?: string | null;
167
- maritalStatus?: {
168
- id: string;
169
- label?: string | null;
170
- name?: string | null;
171
- value?: string | null;
172
- } | null;
173
- mobile?: string | null;
174
- modificationDate?: string | null;
175
- occupation?: string | null;
176
- patientType?: {
177
- id: string;
178
- label?: string | null;
179
- name?: string | null;
180
- value?: string | null;
181
- } | null;
182
- phone?: string | null;
183
- profession?: string | null;
184
- properties?: {
185
- [key: string]: unknown;
186
- } | null;
187
- referredBy?: {
188
- id: string;
189
- label?: string | null;
190
- name?: string | null;
191
- value?: string | null;
192
- } | null;
193
- referredByName?: string | null;
194
- responsible?: string | null;
195
- responsiblePhone?: string | null;
196
- responsibleRelationship?: string | null;
197
- socioeconomicStratum?: number | null;
198
- state?: {
199
- id: string;
200
- label?: string | null;
201
- name?: string | null;
202
- value?: string | null;
203
- } | null;
204
- };
205
- error: null;
206
- metadata: GmedicResponseMetadata;
207
- success: true;
208
- }
43
+ export type CreateRequest = GmedicCreatePatientBody;
44
+ export type CreateResponse = GmedicCreatePatientResultResponse;
209
45
  export interface ListRequest {
210
46
  /**
211
47
  * Opaque cursor returned by pageInfo; omit it to request the first page.
@@ -220,189 +56,34 @@ export interface ListRequest {
220
56
  * another cursor.
221
57
  */
222
58
  limit?: number;
223
- id?: string;
59
+ /**
60
+ * The patient id.
61
+ */
62
+ patientId?: string;
63
+ /**
64
+ * Deprecated: use `patients.lookup`. Answered until 2027-01-28.
65
+ */
224
66
  documentNumber?: string;
67
+ /**
68
+ * Deprecated: use `patients.lookup`. Answered until 2027-01-28.
69
+ */
225
70
  documentType?: "CC" | "NIT" | "CE" | "NITE" | "PA" | "TI" | "RC" | "AS" | "MS" | "CD" | "SC" | "NU" | "PE" | "PT" | "CV" | "NV" | "DE" | "SI";
71
+ /**
72
+ * The connection id.
73
+ */
226
74
  connectionId?: string;
75
+ /**
76
+ * Deprecated: use `patientId`. Answered until 2027-01-28.
77
+ */
78
+ id?: string;
227
79
  }
228
- export interface ListResponse {
229
- data: GmedicPatientsPage;
230
- error: null;
231
- metadata: GmedicResponseMetadata;
232
- success: true;
233
- }
234
- export interface UpdateRequest {
235
- connectionId?: string;
236
- data: {
237
- address?: string;
238
- afpId?: string;
239
- arlId?: string;
240
- birthDate?: string;
241
- bloodTypeId?: string;
242
- childrenCount?: number;
243
- contactPerson?: string;
244
- contactPersonPhone?: string;
245
- countryCode?: string;
246
- dependentsCount?: number;
247
- disabilityCategoryId?: string;
248
- documentNumber: string;
249
- documentTypeId: string;
250
- educationLevelId?: string;
251
- email?: string;
252
- epsId?: string;
253
- ethnicityId?: string;
254
- expeditionPlaceCode?: string;
255
- firstName: string;
256
- genderId?: string;
257
- healthPartnerId?: string;
258
- healthPartnerIdNumber?: string;
259
- healthRegimeId?: string;
260
- householdCompositionTypeId?: string;
261
- householdSize?: number;
262
- lastName: string;
263
- locationCode?: string;
264
- locationZoneTypeId?: string;
265
- maritalStatusId?: string;
266
- mobile?: string;
267
- occupationId?: string;
268
- phone?: string;
269
- profession?: string;
270
- properties?: {
271
- [key: string]: string;
272
- };
273
- referredByName?: string;
274
- referredByTypeId?: string;
275
- responsible?: string;
276
- responsiblePhone?: string;
277
- responsibleRelationship?: string;
278
- socioeconomicStratum?: number;
279
- sourceCountryCode?: string;
280
- };
281
- id: string;
282
- }
283
- export interface UpdateResponse {
284
- data: {
285
- address?: string | null;
286
- afp?: {
287
- id: string;
288
- label?: string | null;
289
- name?: string | null;
290
- value?: string | null;
291
- } | null;
292
- ageInYears?: number | null;
293
- ageMonths?: number | null;
294
- arl?: string | null;
295
- birthDate?: string | null;
296
- birthdayDays?: number | null;
297
- category?: {
298
- id: string;
299
- label?: string | null;
300
- name?: string | null;
301
- value?: string | null;
302
- } | null;
303
- childrenCount?: number | null;
304
- contactPerson?: string | null;
305
- contactPersonPhone?: string | null;
306
- creationDate?: string | null;
307
- dependentsCount?: number | null;
308
- disabilityCategory?: {
309
- id: string;
310
- label?: string | null;
311
- name?: string | null;
312
- value?: string | null;
313
- } | null;
314
- documentNumber?: string | null;
315
- documentType?: {
316
- id: string;
317
- label?: string | null;
318
- name?: string | null;
319
- value?: string | null;
320
- } | null;
321
- educationLevel?: {
322
- id: string;
323
- label?: string | null;
324
- name?: string | null;
325
- value?: string | null;
326
- } | null;
327
- email?: string | null;
328
- eps?: string | null;
329
- ethnicity?: {
330
- id: string;
331
- label?: string | null;
332
- name?: string | null;
333
- value?: string | null;
334
- } | null;
335
- firstName?: string | null;
336
- gender?: {
337
- id: string;
338
- label?: string | null;
339
- name?: string | null;
340
- value?: string | null;
341
- } | null;
342
- genderIdentity?: {
343
- id: string;
344
- label?: string | null;
345
- name?: string | null;
346
- value?: string | null;
347
- } | null;
348
- healthCompanyName?: string | null;
349
- healthRegime?: {
350
- id: string;
351
- label?: string | null;
352
- name?: string | null;
353
- value?: string | null;
354
- } | null;
355
- householdCompositionType?: {
356
- id: string;
357
- label?: string | null;
358
- name?: string | null;
359
- value?: string | null;
360
- } | null;
361
- householdSize?: number | null;
362
- id: string;
363
- jobCompany?: string | null;
364
- key?: string | null;
365
- lastName?: string | null;
366
- location?: string | null;
367
- maritalStatus?: {
368
- id: string;
369
- label?: string | null;
370
- name?: string | null;
371
- value?: string | null;
372
- } | null;
373
- mobile?: string | null;
374
- modificationDate?: string | null;
375
- occupation?: string | null;
376
- patientType?: {
377
- id: string;
378
- label?: string | null;
379
- name?: string | null;
380
- value?: string | null;
381
- } | null;
382
- phone?: string | null;
383
- profession?: string | null;
384
- properties?: {
385
- [key: string]: unknown;
386
- } | null;
387
- referredBy?: {
388
- id: string;
389
- label?: string | null;
390
- name?: string | null;
391
- value?: string | null;
392
- } | null;
393
- referredByName?: string | null;
394
- responsible?: string | null;
395
- responsiblePhone?: string | null;
396
- responsibleRelationship?: string | null;
397
- socioeconomicStratum?: number | null;
398
- state?: {
399
- id: string;
400
- label?: string | null;
401
- name?: string | null;
402
- value?: string | null;
403
- } | null;
404
- };
405
- error: null;
406
- metadata: GmedicResponseMetadata;
407
- success: true;
408
- }
80
+ export type ListResponse = GmedicPatientsPageResponse;
81
+ export type LookupRequest = GmedicLookupPatientsBody;
82
+ export type LookupResponse = GmedicPatientMatchesPageResponse;
83
+ export type UpdateRequest = {
84
+ /**
85
+ * The patient id.
86
+ */
87
+ patientId: string;
88
+ } & GmedicUpdatePatientBody;
89
+ export type UpdateResponse = GmedicUpdatePatientResultResponse;
@@ -8,6 +8,7 @@ export function bind(transport) {
8
8
  return {
9
9
  create: (request, options) => transport.send(CreateOperation, request, options),
10
10
  list: (request, options) => transport.send(ListOperation, request, options),
11
+ lookup: (request, options) => transport.send(LookupOperation, request, options),
11
12
  update: (request, options) => transport.send(UpdateOperation, request, options),
12
13
  };
13
14
  }
@@ -16,19 +17,26 @@ const CreateOperation = {
16
17
  route: "/v1/gmedic/patients",
17
18
  body: "flat",
18
19
  response: null,
19
- errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
20
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
20
21
  };
21
22
  const ListOperation = {
22
23
  method: "GET",
23
24
  route: "/v1/gmedic/patients",
24
- query: { cursor: "cursor", direction: "direction", limit: "limit", id: "id", documentNumber: "documentNumber", documentType: "documentType", connectionId: "connectionId" },
25
+ query: { cursor: "cursor", direction: "direction", limit: "limit", patientId: "patientId", documentNumber: "documentNumber", documentType: "documentType", connectionId: "connectionId", id: "id" },
25
26
  response: null,
26
- errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
27
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
28
+ };
29
+ const LookupOperation = {
30
+ method: "POST",
31
+ route: "/v1/gmedic/patients/lookup",
32
+ body: "flat",
33
+ response: null,
34
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
27
35
  };
28
36
  const UpdateOperation = {
29
37
  method: "PATCH",
30
- route: "/v1/gmedic/patients",
38
+ route: "/v1/gmedic/patients/{patientId}",
31
39
  body: "flat",
32
40
  response: null,
33
- errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
41
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
34
42
  };