@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,6 +1,5 @@
1
1
  import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { GmedicResponseMetadata } from "../models.js";
3
- import type { GmedicAgendasPage } from "./models.js";
2
+ import type { GmedicAgendasPageResponse } from "./models.js";
4
3
  export interface ClientOptions extends BaseClientOptions {
5
4
  /**
6
5
  * The URL the paths of the API are relative to.
@@ -37,13 +36,21 @@ export interface ListRequest {
37
36
  * unknown; one physical site never implies id 1.
38
37
  */
39
38
  branchOfficeId?: string;
40
- id?: string;
39
+ /**
40
+ * The agenda id.
41
+ */
42
+ agendaId?: string;
43
+ /**
44
+ * The service id.
45
+ */
41
46
  serviceId?: string;
47
+ /**
48
+ * The connection id.
49
+ */
42
50
  connectionId?: string;
51
+ /**
52
+ * Deprecated: use `agendaId`. Answered until 2027-01-28.
53
+ */
54
+ id?: string;
43
55
  }
44
- export interface ListResponse {
45
- data: GmedicAgendasPage;
46
- error: null;
47
- metadata: GmedicResponseMetadata;
48
- success: true;
49
- }
56
+ export type ListResponse = GmedicAgendasPageResponse;
@@ -12,7 +12,7 @@ export function bind(transport) {
12
12
  const ListOperation = {
13
13
  method: "GET",
14
14
  route: "/v1/gmedic/agendas",
15
- query: { cursor: "cursor", direction: "direction", limit: "limit", branchOfficeId: "branchOfficeId", id: "id", serviceId: "serviceId", connectionId: "connectionId" },
15
+ query: { cursor: "cursor", direction: "direction", limit: "limit", branchOfficeId: "branchOfficeId", agendaId: "agendaId", serviceId: "serviceId", connectionId: "connectionId", id: "id" },
16
16
  response: null,
17
- 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 },
17
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
18
18
  };
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
2
2
  export type { RequestOptions } from "../../_/index.js";
3
3
  export { createClient } from "./client.js";
4
4
  export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
5
- export type { GmedicAgendasPage } from "./models.js";
5
+ export type { GmedicAgendasPage, GmedicAgendasPageResponse, GmedicListAgendasBadGatewayError, GmedicListAgendasBadGatewayFailure, GmedicListAgendasNotFoundError, GmedicListAgendasNotFoundFailure, GmedicListAgendasServiceUnavailableError, GmedicListAgendasServiceUnavailableFailure, } from "./models.js";
@@ -1,4 +1,5 @@
1
- import type { PageInfo } from "../../models.js";
1
+ import type { OutcomeUnknownFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
2
3
  export interface GmedicAgendasPage {
3
4
  /**
4
5
  * Items admitted by this resource contract within the verified organization.
@@ -30,3 +31,54 @@ export interface GmedicAgendasPage {
30
31
  */
31
32
  pageInfo: PageInfo;
32
33
  }
34
+ /**
35
+ * A successful answer.
36
+ */
37
+ export interface GmedicAgendasPageResponse {
38
+ data: GmedicAgendasPage;
39
+ error: null;
40
+ /**
41
+ * What every answer carries besides its data or error.
42
+ */
43
+ metadata: ResponseMetadata;
44
+ success: true;
45
+ }
46
+ /**
47
+ * A failed answer.
48
+ */
49
+ export interface GmedicListAgendasBadGatewayError {
50
+ data: null;
51
+ error: GmedicListAgendasBadGatewayFailure;
52
+ /**
53
+ * What every answer carries besides its data or error.
54
+ */
55
+ metadata: ResponseMetadata;
56
+ success: false;
57
+ }
58
+ export type GmedicListAgendasBadGatewayFailure = OutcomeUnknownFailure | GmedicProviderAccessRejectedFailure | GmedicProviderResponseInvalidFailure;
59
+ /**
60
+ * A failed answer.
61
+ */
62
+ export interface GmedicListAgendasNotFoundError {
63
+ data: null;
64
+ error: GmedicListAgendasNotFoundFailure;
65
+ /**
66
+ * What every answer carries besides its data or error.
67
+ */
68
+ metadata: ResponseMetadata;
69
+ success: false;
70
+ }
71
+ export type GmedicListAgendasNotFoundFailure = GmedicConnectionNotFoundFailure | GmedicRecordNotFoundFailure;
72
+ /**
73
+ * A failed answer.
74
+ */
75
+ export interface GmedicListAgendasServiceUnavailableError {
76
+ data: null;
77
+ error: GmedicListAgendasServiceUnavailableFailure;
78
+ /**
79
+ * What every answer carries besides its data or error.
80
+ */
81
+ metadata: ResponseMetadata;
82
+ success: false;
83
+ }
84
+ export type GmedicListAgendasServiceUnavailableFailure = 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 GmedicAppointmentsPage } from "./models.js";
2
+ import { type GmedicAppointmentsPageResponse, type GmedicCreateAppointmentBody, type GmedicCreateAppointmentResultResponse, type GmedicUpdateAppointmentBody, type GmedicUpdateAppointmentResultResponse } from "./models.js";
4
3
  export interface ClientOptions extends BaseClientOptions {
5
4
  /**
6
5
  * The URL the paths of the API are relative to.
@@ -32,135 +31,8 @@ export interface Client {
32
31
  }
33
32
  export declare function createClient(options: ClientOptions): Client;
34
33
  export declare function bind(transport: Transport): Client;
35
- export interface CreateRequest {
36
- connectionId?: string;
37
- data: {
38
- agendaId: string;
39
- allDay?: boolean;
40
- attentionTypeId?: string;
41
- authorization?: string;
42
- authorizationSessions?: number;
43
- block?: boolean;
44
- branchOfficeId?: string;
45
- colorId?: string;
46
- consultationPurposeId?: string;
47
- cupCode?: string;
48
- currentSessions?: string;
49
- description?: string;
50
- desiredDate?: string;
51
- endDate: string;
52
- externalCauseId?: string;
53
- invoice?: string;
54
- location?: string;
55
- medicalAuthorizationId?: string;
56
- medicalServiceId?: string;
57
- modality?: string;
58
- notificationMail?: string;
59
- notificationNumber?: string;
60
- patientId: string;
61
- serviceId?: string;
62
- serviceModalityId?: string;
63
- servicesGroupId?: string;
64
- startDate: string;
65
- stateId?: string;
66
- title: string;
67
- viaEntryId?: string;
68
- };
69
- }
70
- export interface CreateResponse {
71
- data: {
72
- agendaId?: string | null;
73
- agendaName?: string | null;
74
- allDay?: boolean | null;
75
- appointmentColor?: {
76
- id: string;
77
- label?: string | null;
78
- name?: string | null;
79
- value?: string | null;
80
- } | null;
81
- authorization?: string | null;
82
- authorizationSessions?: number | null;
83
- block?: boolean | null;
84
- branchOffice?: string | null;
85
- consultationPurposeCode?: string | null;
86
- consultationPurposeId?: string | null;
87
- consultationPurposeName?: string | null;
88
- creationDate?: string | null;
89
- cupCode?: string | null;
90
- cupName?: string | null;
91
- currentSessions?: string | null;
92
- date?: string | null;
93
- description?: string | null;
94
- desiredDate?: string | null;
95
- endDate?: string | null;
96
- entidad?: string | null;
97
- externalCauseCode?: string | null;
98
- externalCauseId?: string | null;
99
- externalCauseName?: string | null;
100
- id: string;
101
- invoice?: string | null;
102
- key?: string | null;
103
- location?: string | null;
104
- mainAttendantDocumentType?: {
105
- id: string;
106
- label?: string | null;
107
- name?: string | null;
108
- value?: string | null;
109
- } | null;
110
- mainAttendantEmail?: string | null;
111
- mainAttendantId?: string | null;
112
- mainAttendantIdentification?: string | null;
113
- mainAttendantMobile?: string | null;
114
- mainAttendantName?: string | null;
115
- mainAttendantPhone?: string | null;
116
- mainDiagnosticCode?: string | null;
117
- mainDiagnosticName?: string | null;
118
- medicalAuthorizationId?: string | null;
119
- medicalServiceCode?: string | null;
120
- medicalServiceId?: string | null;
121
- medicalServiceName?: string | null;
122
- meetUrl?: string | null;
123
- modality?: "FACE_TO_FACE" | "VIRTUAL" | "HOME_VISIT" | "NOT_APPLICABLE" | null;
124
- modificationDate?: string | null;
125
- opportunityIndicator?: number | null;
126
- personCreator?: string | null;
127
- readOnly?: boolean | null;
128
- rejectReason?: {
129
- id: string;
130
- label?: string | null;
131
- name?: string | null;
132
- value?: string | null;
133
- } | null;
134
- selfServiceAllowCancel?: boolean | null;
135
- selfServiceAllowReschedule?: boolean | null;
136
- service?: string | null;
137
- serviceId?: string | null;
138
- serviceModalityCode?: string | null;
139
- serviceModalityId?: string | null;
140
- serviceModalityName?: string | null;
141
- servicesGroupCode?: string | null;
142
- servicesGroupId?: string | null;
143
- servicesGroupName?: string | null;
144
- startDate?: string | null;
145
- state?: {
146
- id: string;
147
- label?: string | null;
148
- name?: string | null;
149
- value?: string | null;
150
- } | null;
151
- time?: string | null;
152
- title?: string | null;
153
- userObjectId?: string | null;
154
- userType?: string | null;
155
- viaEntryCode?: string | null;
156
- viaEntryId?: string | null;
157
- viaEntryName?: string | null;
158
- videocallProvider?: string | null;
159
- };
160
- error: null;
161
- metadata: GmedicResponseMetadata;
162
- success: true;
163
- }
34
+ export type CreateRequest = GmedicCreateAppointmentBody;
35
+ export type CreateResponse = GmedicCreateAppointmentResultResponse;
164
36
  export interface ListRequest {
165
37
  /**
166
38
  * Opaque cursor returned by pageInfo; omit it to request the first page.
@@ -175,119 +47,40 @@ export interface ListRequest {
175
47
  * another cursor.
176
48
  */
177
49
  limit?: number;
50
+ /**
51
+ * The agenda id.
52
+ */
178
53
  agendaId?: string;
54
+ /**
55
+ * The date.
56
+ */
179
57
  date?: string;
180
- id?: string;
58
+ /**
59
+ * The appointment id.
60
+ */
61
+ appointmentId?: string;
62
+ /**
63
+ * The patient id.
64
+ */
181
65
  patientId?: string;
66
+ /**
67
+ * The pending.
68
+ */
182
69
  pending?: boolean;
70
+ /**
71
+ * The connection id.
72
+ */
183
73
  connectionId?: string;
74
+ /**
75
+ * Deprecated: use `appointmentId`. Answered until 2027-01-28.
76
+ */
77
+ id?: string;
184
78
  }
185
- export interface ListResponse {
186
- data: GmedicAppointmentsPage;
187
- error: null;
188
- metadata: GmedicResponseMetadata;
189
- success: true;
190
- }
191
- export interface UpdateRequest {
192
- color?: "BLUE" | "RED" | "PINK" | "PURPLE" | "DARK_PURPLE" | "STEELE_BLUE" | "LIGHT_BLUE" | "TEAL" | "LIGHT_TEAL" | "GREEN" | "LIGHT_GREEN" | "YELLOW_GREEN" | "YELLOW" | "ORANGE" | "RED_ORANGE" | "LIGHT_BROWN" | "LIGHT_PURPLE" | "GREY" | "BLUE_GREY" | "YELLOW_GREY" | "BROWN";
193
- connectionId?: string;
194
- endDate?: string;
195
- id: string;
196
- rejectReasonCode?: string;
197
- startDate?: string;
198
- status?: "SCHEDULED" | "ATTENDED" | "UNATTENDED" | "CANCELED" | "PENALIZED" | "CONFIRMED" | "DECLINED";
199
- }
200
- export interface UpdateResponse {
201
- data: {
202
- agendaId?: string | null;
203
- agendaName?: string | null;
204
- allDay?: boolean | null;
205
- appointmentColor?: {
206
- id: string;
207
- label?: string | null;
208
- name?: string | null;
209
- value?: string | null;
210
- } | null;
211
- authorization?: string | null;
212
- authorizationSessions?: number | null;
213
- block?: boolean | null;
214
- branchOffice?: string | null;
215
- consultationPurposeCode?: string | null;
216
- consultationPurposeId?: string | null;
217
- consultationPurposeName?: string | null;
218
- creationDate?: string | null;
219
- cupCode?: string | null;
220
- cupName?: string | null;
221
- currentSessions?: string | null;
222
- date?: string | null;
223
- description?: string | null;
224
- desiredDate?: string | null;
225
- endDate?: string | null;
226
- entidad?: string | null;
227
- externalCauseCode?: string | null;
228
- externalCauseId?: string | null;
229
- externalCauseName?: string | null;
230
- id: string;
231
- invoice?: string | null;
232
- key?: string | null;
233
- location?: string | null;
234
- mainAttendantDocumentType?: {
235
- id: string;
236
- label?: string | null;
237
- name?: string | null;
238
- value?: string | null;
239
- } | null;
240
- mainAttendantEmail?: string | null;
241
- mainAttendantId?: string | null;
242
- mainAttendantIdentification?: string | null;
243
- mainAttendantMobile?: string | null;
244
- mainAttendantName?: string | null;
245
- mainAttendantPhone?: string | null;
246
- mainDiagnosticCode?: string | null;
247
- mainDiagnosticName?: string | null;
248
- medicalAuthorizationId?: string | null;
249
- medicalServiceCode?: string | null;
250
- medicalServiceId?: string | null;
251
- medicalServiceName?: string | null;
252
- meetUrl?: string | null;
253
- modality?: "FACE_TO_FACE" | "VIRTUAL" | "HOME_VISIT" | "NOT_APPLICABLE" | null;
254
- modificationDate?: string | null;
255
- opportunityIndicator?: number | null;
256
- personCreator?: string | null;
257
- readOnly?: boolean | null;
258
- rejectReason?: {
259
- id: string;
260
- label?: string | null;
261
- name?: string | null;
262
- value?: string | null;
263
- } | null;
264
- selfServiceAllowCancel?: boolean | null;
265
- selfServiceAllowReschedule?: boolean | null;
266
- service?: string | null;
267
- serviceId?: string | null;
268
- serviceModalityCode?: string | null;
269
- serviceModalityId?: string | null;
270
- serviceModalityName?: string | null;
271
- servicesGroupCode?: string | null;
272
- servicesGroupId?: string | null;
273
- servicesGroupName?: string | null;
274
- startDate?: string | null;
275
- state?: {
276
- id: string;
277
- label?: string | null;
278
- name?: string | null;
279
- value?: string | null;
280
- } | null;
281
- time?: string | null;
282
- title?: string | null;
283
- userObjectId?: string | null;
284
- userType?: string | null;
285
- viaEntryCode?: string | null;
286
- viaEntryId?: string | null;
287
- viaEntryName?: string | null;
288
- videocallProvider?: string | null;
289
- };
290
- error: null;
291
- metadata: GmedicResponseMetadata;
292
- success: true;
293
- }
79
+ export type ListResponse = GmedicAppointmentsPageResponse;
80
+ export type UpdateRequest = {
81
+ /**
82
+ * The appointment id.
83
+ */
84
+ appointmentId: string;
85
+ } & GmedicUpdateAppointmentBody;
86
+ export type UpdateResponse = GmedicUpdateAppointmentResultResponse;
@@ -1,7 +1,7 @@
1
1
  // Code generated by forge. DO NOT EDIT.
2
2
  /* eslint-disable */
3
- import { Transport, object, } from "../../_/index.js";
4
- import { GmedicAppointmentsPageCodec, } from "./models.js";
3
+ import { Transport, } from "../../_/index.js";
4
+ import { GmedicAppointmentsPageResponseCodec, GmedicCreateAppointmentBodyCodec, GmedicCreateAppointmentResultResponseCodec, GmedicUpdateAppointmentBodyCodec, GmedicUpdateAppointmentResultResponseCodec, } from "./models.js";
5
5
  export function createClient(options) {
6
6
  return bind(new Transport(options));
7
7
  }
@@ -16,20 +16,22 @@ const CreateOperation = {
16
16
  method: "POST",
17
17
  route: "/v1/gmedic/appointments",
18
18
  body: "flat",
19
- response: object([["data", null, object([["meetURL", "meetUrl"]])]]),
20
- 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 },
19
+ request: GmedicCreateAppointmentBodyCodec,
20
+ response: GmedicCreateAppointmentResultResponseCodec,
21
+ 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 },
21
22
  };
22
23
  const ListOperation = {
23
24
  method: "GET",
24
25
  route: "/v1/gmedic/appointments",
25
- query: { cursor: "cursor", direction: "direction", limit: "limit", agendaId: "agendaId", date: "date", id: "id", patientId: "patientId", pending: "pending", connectionId: "connectionId" },
26
- response: object([["data", null, () => GmedicAppointmentsPageCodec]]),
27
- 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 },
26
+ query: { cursor: "cursor", direction: "direction", limit: "limit", agendaId: "agendaId", date: "date", appointmentId: "appointmentId", patientId: "patientId", pending: "pending", connectionId: "connectionId", id: "id" },
27
+ response: GmedicAppointmentsPageResponseCodec,
28
+ 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
  };
29
30
  const UpdateOperation = {
30
31
  method: "PATCH",
31
- route: "/v1/gmedic/appointments",
32
+ route: "/v1/gmedic/appointments/{appointmentId}",
32
33
  body: "flat",
33
- response: object([["data", null, object([["meetURL", "meetUrl"]])]]),
34
- 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 },
34
+ request: GmedicUpdateAppointmentBodyCodec,
35
+ response: GmedicUpdateAppointmentResultResponseCodec,
36
+ 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 },
35
37
  };
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
2
2
  export type { RequestOptions } from "../../_/index.js";
3
3
  export { createClient } from "./client.js";
4
4
  export type { Client, ClientOptions, CreateRequest, CreateResponse, ListRequest, ListResponse, UpdateRequest, UpdateResponse, } from "./client.js";
5
- export type { GmedicAppointmentsPage } from "./models.js";
5
+ export type { GmedicAppointmentNotFoundFailure, GmedicAppointmentsPage, GmedicAppointmentsPageResponse, GmedicCreateAppointmentBadGatewayError, GmedicCreateAppointmentBadGatewayFailure, GmedicCreateAppointmentBody, GmedicCreateAppointmentNotFoundError, GmedicCreateAppointmentNotFoundFailure, GmedicCreateAppointmentResult, GmedicCreateAppointmentResultResponse, GmedicCreateAppointmentServiceUnavailableError, GmedicCreateAppointmentServiceUnavailableFailure, GmedicListAppointmentsBadGatewayError, GmedicListAppointmentsBadGatewayFailure, GmedicListAppointmentsNotFoundError, GmedicListAppointmentsNotFoundFailure, GmedicListAppointmentsServiceUnavailableError, GmedicListAppointmentsServiceUnavailableFailure, GmedicUpdateAppointmentBadGatewayError, GmedicUpdateAppointmentBadGatewayFailure, GmedicUpdateAppointmentBody, GmedicUpdateAppointmentNotFoundError, GmedicUpdateAppointmentNotFoundFailure, GmedicUpdateAppointmentResult, GmedicUpdateAppointmentResultResponse, GmedicUpdateAppointmentServiceUnavailableError, GmedicUpdateAppointmentServiceUnavailableFailure, } from "./models.js";