@arbol-ai/sdk 5.36.0 → 5.38.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 (149) hide show
  1. package/dist/client.d.ts +4 -0
  2. package/dist/client.js +10 -0
  3. package/dist/comfachoco/affiliations/client.d.ts +3 -1
  4. package/dist/comfachoco/affiliations/index.d.ts +1 -1
  5. package/dist/comfachoco/affiliations/models.d.ts +13 -6
  6. package/dist/comfachoco/connections/models.d.ts +11 -11
  7. package/dist/comfachoco/index.d.ts +1 -1
  8. package/dist/comfachoco/models.d.ts +0 -63
  9. package/dist/index.d.ts +1 -1
  10. package/dist/models.d.ts +63 -0
  11. package/dist/oficlinic/affiliateTypes/client.d.ts +55 -0
  12. package/dist/oficlinic/affiliateTypes/client.js +18 -0
  13. package/dist/oficlinic/affiliateTypes/index.d.ts +5 -0
  14. package/dist/oficlinic/affiliateTypes/index.js +4 -0
  15. package/dist/oficlinic/affiliateTypes/models.d.ts +135 -0
  16. package/dist/oficlinic/affiliateTypes/models.js +3 -0
  17. package/dist/oficlinic/appointments/client.d.ts +91 -0
  18. package/dist/oficlinic/appointments/client.js +35 -0
  19. package/dist/oficlinic/appointments/index.d.ts +5 -0
  20. package/dist/oficlinic/appointments/index.js +4 -0
  21. package/dist/oficlinic/appointments/models.d.ts +777 -0
  22. package/dist/oficlinic/appointments/models.js +15 -0
  23. package/dist/oficlinic/bookingDays/client.d.ts +64 -0
  24. package/dist/oficlinic/bookingDays/client.js +18 -0
  25. package/dist/oficlinic/bookingDays/index.d.ts +5 -0
  26. package/dist/oficlinic/bookingDays/index.js +4 -0
  27. package/dist/oficlinic/bookingDays/models.d.ts +142 -0
  28. package/dist/oficlinic/bookingDays/models.js +3 -0
  29. package/dist/oficlinic/bookingProfessionals/client.d.ts +76 -0
  30. package/dist/oficlinic/bookingProfessionals/client.js +19 -0
  31. package/dist/oficlinic/bookingProfessionals/index.d.ts +5 -0
  32. package/dist/oficlinic/bookingProfessionals/index.js +4 -0
  33. package/dist/oficlinic/bookingProfessionals/models.d.ts +159 -0
  34. package/dist/oficlinic/bookingProfessionals/models.js +12 -0
  35. package/dist/oficlinic/bookingRooms/client.d.ts +60 -0
  36. package/dist/oficlinic/bookingRooms/client.js +18 -0
  37. package/dist/oficlinic/bookingRooms/index.d.ts +5 -0
  38. package/dist/oficlinic/bookingRooms/index.js +4 -0
  39. package/dist/oficlinic/bookingRooms/models.d.ts +136 -0
  40. package/dist/oficlinic/bookingRooms/models.js +3 -0
  41. package/dist/oficlinic/bookingSlots/client.d.ts +63 -0
  42. package/dist/oficlinic/bookingSlots/client.js +19 -0
  43. package/dist/oficlinic/bookingSlots/index.d.ts +5 -0
  44. package/dist/oficlinic/bookingSlots/index.js +4 -0
  45. package/dist/oficlinic/bookingSlots/models.d.ts +167 -0
  46. package/dist/oficlinic/bookingSlots/models.js +13 -0
  47. package/dist/oficlinic/cancellationReasons/client.d.ts +49 -0
  48. package/dist/oficlinic/cancellationReasons/client.js +18 -0
  49. package/dist/oficlinic/cancellationReasons/index.d.ts +5 -0
  50. package/dist/oficlinic/cancellationReasons/index.js +4 -0
  51. package/dist/oficlinic/cancellationReasons/models.d.ts +114 -0
  52. package/dist/oficlinic/cancellationReasons/models.js +3 -0
  53. package/dist/oficlinic/client.d.ts +49 -0
  54. package/dist/oficlinic/client.js +105 -0
  55. package/dist/oficlinic/connections/client.d.ts +45 -0
  56. package/dist/oficlinic/connections/client.js +25 -0
  57. package/dist/oficlinic/connections/index.d.ts +5 -0
  58. package/dist/oficlinic/connections/index.js +4 -0
  59. package/dist/oficlinic/connections/models.d.ts +40 -0
  60. package/dist/oficlinic/connections/models.js +10 -0
  61. package/dist/oficlinic/index.d.ts +5 -0
  62. package/dist/oficlinic/index.js +4 -0
  63. package/dist/oficlinic/models.d.ts +403 -0
  64. package/dist/oficlinic/models.js +3 -0
  65. package/dist/oficlinic/patients/client.d.ts +27 -0
  66. package/dist/oficlinic/patients/client.js +19 -0
  67. package/dist/oficlinic/patients/index.d.ts +5 -0
  68. package/dist/oficlinic/patients/index.js +4 -0
  69. package/dist/oficlinic/patients/models.d.ts +134 -0
  70. package/dist/oficlinic/patients/models.js +13 -0
  71. package/dist/oficlinic/payerContracts/client.d.ts +55 -0
  72. package/dist/oficlinic/payerContracts/client.js +18 -0
  73. package/dist/oficlinic/payerContracts/index.d.ts +5 -0
  74. package/dist/oficlinic/payerContracts/index.js +4 -0
  75. package/dist/oficlinic/payerContracts/models.d.ts +154 -0
  76. package/dist/oficlinic/payerContracts/models.js +3 -0
  77. package/dist/oficlinic/payerPlans/client.d.ts +54 -0
  78. package/dist/oficlinic/payerPlans/client.js +18 -0
  79. package/dist/oficlinic/payerPlans/index.d.ts +5 -0
  80. package/dist/oficlinic/payerPlans/index.js +4 -0
  81. package/dist/oficlinic/payerPlans/models.d.ts +138 -0
  82. package/dist/oficlinic/payerPlans/models.js +3 -0
  83. package/dist/oficlinic/payerSubplans/client.d.ts +58 -0
  84. package/dist/oficlinic/payerSubplans/client.js +18 -0
  85. package/dist/oficlinic/payerSubplans/index.d.ts +5 -0
  86. package/dist/oficlinic/payerSubplans/index.js +4 -0
  87. package/dist/oficlinic/payerSubplans/models.d.ts +150 -0
  88. package/dist/oficlinic/payerSubplans/models.js +3 -0
  89. package/dist/oficlinic/payers/client.d.ts +50 -0
  90. package/dist/oficlinic/payers/client.js +18 -0
  91. package/dist/oficlinic/payers/index.d.ts +5 -0
  92. package/dist/oficlinic/payers/index.js +4 -0
  93. package/dist/oficlinic/payers/models.d.ts +139 -0
  94. package/dist/oficlinic/payers/models.js +3 -0
  95. package/dist/oficlinic/professionals/client.d.ts +51 -0
  96. package/dist/oficlinic/professionals/client.js +18 -0
  97. package/dist/oficlinic/professionals/index.d.ts +5 -0
  98. package/dist/oficlinic/professionals/index.js +4 -0
  99. package/dist/oficlinic/professionals/models.d.ts +125 -0
  100. package/dist/oficlinic/professionals/models.js +3 -0
  101. package/dist/oficlinic/programs/client.d.ts +54 -0
  102. package/dist/oficlinic/programs/client.js +18 -0
  103. package/dist/oficlinic/programs/index.d.ts +5 -0
  104. package/dist/oficlinic/programs/index.js +4 -0
  105. package/dist/oficlinic/programs/models.d.ts +133 -0
  106. package/dist/oficlinic/programs/models.js +3 -0
  107. package/dist/oficlinic/regimes/client.d.ts +50 -0
  108. package/dist/oficlinic/regimes/client.js +18 -0
  109. package/dist/oficlinic/regimes/index.d.ts +5 -0
  110. package/dist/oficlinic/regimes/index.js +4 -0
  111. package/dist/oficlinic/regimes/models.d.ts +117 -0
  112. package/dist/oficlinic/regimes/models.js +3 -0
  113. package/dist/oficlinic/relationships/client.d.ts +49 -0
  114. package/dist/oficlinic/relationships/client.js +18 -0
  115. package/dist/oficlinic/relationships/index.d.ts +5 -0
  116. package/dist/oficlinic/relationships/index.js +4 -0
  117. package/dist/oficlinic/relationships/models.d.ts +118 -0
  118. package/dist/oficlinic/relationships/models.js +3 -0
  119. package/dist/oficlinic/serviceCatalog/client.d.ts +50 -0
  120. package/dist/oficlinic/serviceCatalog/client.js +27 -0
  121. package/dist/oficlinic/serviceCatalog/index.d.ts +5 -0
  122. package/dist/oficlinic/serviceCatalog/index.js +4 -0
  123. package/dist/oficlinic/serviceCatalog/models.d.ts +126 -0
  124. package/dist/oficlinic/serviceCatalog/models.js +13 -0
  125. package/dist/oficlinic/services/client.d.ts +84 -0
  126. package/dist/oficlinic/services/client.js +27 -0
  127. package/dist/oficlinic/services/index.d.ts +5 -0
  128. package/dist/oficlinic/services/index.js +4 -0
  129. package/dist/oficlinic/services/models.d.ts +437 -0
  130. package/dist/oficlinic/services/models.js +12 -0
  131. package/dist/sanitas/affiliations/client.d.ts +22 -0
  132. package/dist/sanitas/affiliations/client.js +19 -0
  133. package/dist/sanitas/affiliations/index.d.ts +5 -0
  134. package/dist/sanitas/affiliations/index.js +4 -0
  135. package/dist/sanitas/affiliations/models.d.ts +86 -0
  136. package/dist/sanitas/affiliations/models.js +9 -0
  137. package/dist/sanitas/client.d.ts +15 -0
  138. package/dist/sanitas/client.js +20 -0
  139. package/dist/sanitas/connections/client.d.ts +25 -0
  140. package/dist/sanitas/connections/client.js +18 -0
  141. package/dist/sanitas/connections/index.d.ts +5 -0
  142. package/dist/sanitas/connections/index.js +4 -0
  143. package/dist/sanitas/connections/models.d.ts +74 -0
  144. package/dist/sanitas/connections/models.js +9 -0
  145. package/dist/sanitas/index.d.ts +5 -0
  146. package/dist/sanitas/index.js +4 -0
  147. package/dist/sanitas/models.d.ts +220 -0
  148. package/dist/sanitas/models.js +3 -0
  149. package/package.json +3 -3
@@ -0,0 +1,105 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport } from "../_/index.js";
4
+ import { bind as bindAffiliateTypes, } from "./affiliateTypes/client.js";
5
+ import { bind as bindAppointments, } from "./appointments/client.js";
6
+ import { bind as bindBookingDays, } from "./bookingDays/client.js";
7
+ import { bind as bindBookingProfessionals, } from "./bookingProfessionals/client.js";
8
+ import { bind as bindBookingRooms, } from "./bookingRooms/client.js";
9
+ import { bind as bindBookingSlots, } from "./bookingSlots/client.js";
10
+ import { bind as bindCancellationReasons, } from "./cancellationReasons/client.js";
11
+ import { bind as bindConnections, } from "./connections/client.js";
12
+ import { bind as bindPatients, } from "./patients/client.js";
13
+ import { bind as bindPayerContracts, } from "./payerContracts/client.js";
14
+ import { bind as bindPayerPlans, } from "./payerPlans/client.js";
15
+ import { bind as bindPayerSubplans, } from "./payerSubplans/client.js";
16
+ import { bind as bindPayers, } from "./payers/client.js";
17
+ import { bind as bindProfessionals, } from "./professionals/client.js";
18
+ import { bind as bindPrograms, } from "./programs/client.js";
19
+ import { bind as bindRegimes, } from "./regimes/client.js";
20
+ import { bind as bindRelationships, } from "./relationships/client.js";
21
+ import { bind as bindServiceCatalog, } from "./serviceCatalog/client.js";
22
+ import { bind as bindServices, } from "./services/client.js";
23
+ export function createClient(options) {
24
+ return bind(new Transport(options));
25
+ }
26
+ export function bind(transport) {
27
+ let affiliateTypesClient;
28
+ let appointmentsClient;
29
+ let bookingDaysClient;
30
+ let bookingProfessionalsClient;
31
+ let bookingRoomsClient;
32
+ let bookingSlotsClient;
33
+ let cancellationReasonsClient;
34
+ let connectionsClient;
35
+ let patientsClient;
36
+ let payerContractsClient;
37
+ let payerPlansClient;
38
+ let payerSubplansClient;
39
+ let payersClient;
40
+ let professionalsClient;
41
+ let programsClient;
42
+ let regimesClient;
43
+ let relationshipsClient;
44
+ let serviceCatalogClient;
45
+ let servicesClient;
46
+ return {
47
+ get affiliateTypes() {
48
+ return (affiliateTypesClient ??= bindAffiliateTypes(transport));
49
+ },
50
+ get appointments() {
51
+ return (appointmentsClient ??= bindAppointments(transport));
52
+ },
53
+ get bookingDays() {
54
+ return (bookingDaysClient ??= bindBookingDays(transport));
55
+ },
56
+ get bookingProfessionals() {
57
+ return (bookingProfessionalsClient ??= bindBookingProfessionals(transport));
58
+ },
59
+ get bookingRooms() {
60
+ return (bookingRoomsClient ??= bindBookingRooms(transport));
61
+ },
62
+ get bookingSlots() {
63
+ return (bookingSlotsClient ??= bindBookingSlots(transport));
64
+ },
65
+ get cancellationReasons() {
66
+ return (cancellationReasonsClient ??= bindCancellationReasons(transport));
67
+ },
68
+ get connections() {
69
+ return (connectionsClient ??= bindConnections(transport));
70
+ },
71
+ get patients() {
72
+ return (patientsClient ??= bindPatients(transport));
73
+ },
74
+ get payerContracts() {
75
+ return (payerContractsClient ??= bindPayerContracts(transport));
76
+ },
77
+ get payerPlans() {
78
+ return (payerPlansClient ??= bindPayerPlans(transport));
79
+ },
80
+ get payerSubplans() {
81
+ return (payerSubplansClient ??= bindPayerSubplans(transport));
82
+ },
83
+ get payers() {
84
+ return (payersClient ??= bindPayers(transport));
85
+ },
86
+ get professionals() {
87
+ return (professionalsClient ??= bindProfessionals(transport));
88
+ },
89
+ get programs() {
90
+ return (programsClient ??= bindPrograms(transport));
91
+ },
92
+ get regimes() {
93
+ return (regimesClient ??= bindRegimes(transport));
94
+ },
95
+ get relationships() {
96
+ return (relationshipsClient ??= bindRelationships(transport));
97
+ },
98
+ get serviceCatalog() {
99
+ return (serviceCatalogClient ??= bindServiceCatalog(transport));
100
+ },
101
+ get services() {
102
+ return (servicesClient ??= bindServices(transport));
103
+ },
104
+ };
105
+ }
@@ -0,0 +1,45 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { DeletedObjectResponse } from "../../models.js";
3
+ import { type OficlinicConnectionViewResponse } from "./models.js";
4
+ export interface ClientOptions extends BaseClientOptions {
5
+ /**
6
+ * The URL the paths of the API are relative to.
7
+ */
8
+ baseUrl: string;
9
+ }
10
+ export interface Client {
11
+ /**
12
+ * Delete a connection
13
+ *
14
+ * Invalidate the provider session of an e-Oficlinic connection of the
15
+ * caller's organization: its cookies and session state are forgotten at once,
16
+ * even during a read. Account retires the sealed credentials separately.
17
+ * Repeating the call answers the same.
18
+ */
19
+ delete(request: DeleteRequest, options?: RequestOptions): Promise<DeleteResponse>;
20
+ /**
21
+ * Get a connection
22
+ *
23
+ * Read an e-Oficlinic connection of the caller's organization: Account's name
24
+ * and status, the provider session's state and why it stopped, the selected
25
+ * company, site and IPS, and when it was verified and last used. It never
26
+ * contacts the provider and never returns credentials or cookies.
27
+ */
28
+ get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
29
+ }
30
+ export declare function createClient(options: ClientOptions): Client;
31
+ export declare function bind(transport: Transport): Client;
32
+ export interface DeleteRequest {
33
+ /**
34
+ * An Account connection id of the caller's organization.
35
+ */
36
+ connectionId: string;
37
+ }
38
+ export type DeleteResponse = DeletedObjectResponse;
39
+ export interface GetRequest {
40
+ /**
41
+ * An Account connection id of the caller's organization.
42
+ */
43
+ connectionId: string;
44
+ }
45
+ export type GetResponse = OficlinicConnectionViewResponse;
@@ -0,0 +1,25 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ import { OficlinicConnectionViewResponseCodec, } from "./models.js";
5
+ export function createClient(options) {
6
+ return bind(new Transport(options));
7
+ }
8
+ export function bind(transport) {
9
+ return {
10
+ delete: (request, options) => transport.send(DeleteOperation, request, options),
11
+ get: (request, options) => transport.send(GetOperation, request, options),
12
+ };
13
+ }
14
+ const DeleteOperation = {
15
+ method: "DELETE",
16
+ route: "/v1/oficlinic/connections/{connectionId}",
17
+ response: null,
18
+ errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
19
+ };
20
+ const GetOperation = {
21
+ method: "GET",
22
+ route: "/v1/oficlinic/connections/{connectionId}",
23
+ response: OficlinicConnectionViewResponseCodec,
24
+ errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
25
+ };
@@ -0,0 +1,5 @@
1
+ export { ApiError } from "../../_/index.js";
2
+ export type { RequestOptions } from "../../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, DeleteRequest, DeleteResponse, GetRequest, GetResponse, } from "./client.js";
5
+ export type { OficlinicConnectionView, OficlinicConnectionViewResponse, } from "./models.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../../_/index.js";
4
+ export { createClient } from "./client.js";
@@ -0,0 +1,40 @@
1
+ import type { ResponseMetadata } from "../../models.js";
2
+ export interface OficlinicConnectionView {
3
+ context: {
4
+ companyId: string;
5
+ ipsId: string;
6
+ siteId: string;
7
+ } | null;
8
+ /**
9
+ * An Account connection id of the caller's organization.
10
+ */
11
+ id: string;
12
+ lastUsedAt: Temporal.Instant | null;
13
+ name: string;
14
+ /**
15
+ * ready serves reads; expired renews once from Account on the next read;
16
+ * signing_in is an interrupted sign-in the next read resumes; stopped needs a
17
+ * new verification; none has no local session.
18
+ */
19
+ session: "ready" | "expired" | "signing_in" | "stopped" | "none";
20
+ /**
21
+ * Account's status of the connection; only an active one serves reads.
22
+ */
23
+ status: "active" | "disabled" | "failed";
24
+ stopReason: "credentials_rejected" | "sign_in_unconfirmed" | "identity_mismatch" | "session_rejected" | "provider_changed" | null;
25
+ verifiedAt: Temporal.Instant | null;
26
+ }
27
+ /**
28
+ * A successful answer.
29
+ */
30
+ export interface OficlinicConnectionViewResponse {
31
+ data: OficlinicConnectionView;
32
+ error: null;
33
+ /**
34
+ * What every answer carries besides its data or error.
35
+ */
36
+ metadata: ResponseMetadata;
37
+ success: true;
38
+ }
39
+ export declare const OficlinicConnectionViewCodec: import("../../_/codec.js").Codec;
40
+ export declare const OficlinicConnectionViewResponseCodec: import("../../_/codec.js").Codec;
@@ -0,0 +1,10 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { instant, object } from "../../_/index.js";
4
+ export const OficlinicConnectionViewCodec = object([
5
+ ["lastUsedAt", null, instant],
6
+ ["verifiedAt", null, instant],
7
+ ]);
8
+ export const OficlinicConnectionViewResponseCodec = object([
9
+ ["data", null, () => OficlinicConnectionViewCodec],
10
+ ]);
@@ -0,0 +1,5 @@
1
+ export { ApiError } from "../_/index.js";
2
+ export type { RequestOptions } from "../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, } from "./client.js";
5
+ export type { OficlinicAgentText, OficlinicBookingOptionNotFoundFailure, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionNotFoundError, OficlinicConnectionNotFoundFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicPatientRecordMismatchFailure, OficlinicPayerNotFoundFailure, OficlinicPayerOptionNotFoundFailure, OficlinicProgramUnitsNotSupportedFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSelectionExpiredError, OficlinicSelectionExpiredFailure, OficlinicSelectionNotAvailableFailure, OficlinicSignInOutcomeUnknownFailure, } from "./models.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../_/index.js";
4
+ export { createClient } from "./client.js";
@@ -0,0 +1,403 @@
1
+ import type { Empty, ResponseMetadata } from "../models.js";
2
+ export interface OficlinicAgentText {
3
+ /**
4
+ * Concise Spanish facts of the answer, with the ids and cursor to continue.
5
+ * Pending or unknown outcomes are stated as such.
6
+ */
7
+ text: string;
8
+ }
9
+ /**
10
+ * The program, attention type, regime, affiliate type, relationship or
11
+ * cancellation reason is not one the provider lists.
12
+ */
13
+ export interface OficlinicBookingOptionNotFoundFailure {
14
+ /**
15
+ * The failure code, stable across releases.
16
+ */
17
+ code: "BOOKING_OPTION_NOT_FOUND";
18
+ /**
19
+ * No fields.
20
+ */
21
+ data: Empty;
22
+ /**
23
+ * What went wrong, for people; it never contains input values.
24
+ */
25
+ message: string;
26
+ /**
27
+ * Whether repeating the same request may succeed.
28
+ */
29
+ retryable: false;
30
+ }
31
+ /**
32
+ * Another operation is using this connection or signing in for the
33
+ * organization.
34
+ */
35
+ export interface OficlinicConnectionBusyFailure {
36
+ /**
37
+ * The failure code, stable across releases.
38
+ */
39
+ code: "CONNECTION_BUSY";
40
+ /**
41
+ * No fields.
42
+ */
43
+ data: Empty;
44
+ /**
45
+ * What went wrong, for people; it never contains input values.
46
+ */
47
+ message: string;
48
+ /**
49
+ * Whether repeating the same request may succeed.
50
+ */
51
+ retryable: true;
52
+ }
53
+ /**
54
+ * The connection is not active.
55
+ */
56
+ export interface OficlinicConnectionNotActiveFailure {
57
+ /**
58
+ * The failure code, stable across releases.
59
+ */
60
+ code: "CONNECTION_NOT_ACTIVE";
61
+ /**
62
+ * No fields.
63
+ */
64
+ data: Empty;
65
+ /**
66
+ * What went wrong, for people; it never contains input values.
67
+ */
68
+ message: string;
69
+ /**
70
+ * Whether repeating the same request may succeed.
71
+ */
72
+ retryable: false;
73
+ }
74
+ /**
75
+ * A failed answer.
76
+ */
77
+ export interface OficlinicConnectionNotFoundError {
78
+ data: null;
79
+ /**
80
+ * The connection does not exist in this organization.
81
+ */
82
+ error: OficlinicConnectionNotFoundFailure;
83
+ /**
84
+ * What every answer carries besides its data or error.
85
+ */
86
+ metadata: ResponseMetadata;
87
+ success: false;
88
+ }
89
+ /**
90
+ * The connection does not exist in this organization.
91
+ */
92
+ export interface OficlinicConnectionNotFoundFailure {
93
+ /**
94
+ * The failure code, stable across releases.
95
+ */
96
+ code: "CONNECTION_NOT_FOUND";
97
+ /**
98
+ * No fields.
99
+ */
100
+ data: Empty;
101
+ /**
102
+ * What went wrong, for people; it never contains input values.
103
+ */
104
+ message: string;
105
+ /**
106
+ * Whether repeating the same request may succeed.
107
+ */
108
+ retryable: false;
109
+ }
110
+ /**
111
+ * The organization has several active connections: select one.
112
+ */
113
+ export interface OficlinicConnectionRequiredFailure {
114
+ /**
115
+ * The failure code, stable across releases.
116
+ */
117
+ code: "CONNECTION_REQUIRED";
118
+ /**
119
+ * No fields.
120
+ */
121
+ data: Empty;
122
+ /**
123
+ * What went wrong, for people; it never contains input values.
124
+ */
125
+ message: string;
126
+ /**
127
+ * Whether repeating the same request may succeed.
128
+ */
129
+ retryable: false;
130
+ }
131
+ /**
132
+ * The selected company, site or IPS is not available to the provider account.
133
+ */
134
+ export interface OficlinicContextNotAvailableFailure {
135
+ /**
136
+ * The failure code, stable across releases.
137
+ */
138
+ code: "CONTEXT_NOT_AVAILABLE";
139
+ /**
140
+ * No fields.
141
+ */
142
+ data: Empty;
143
+ /**
144
+ * What went wrong, for people; it never contains input values.
145
+ */
146
+ message: string;
147
+ /**
148
+ * Whether repeating the same request may succeed.
149
+ */
150
+ retryable: false;
151
+ }
152
+ /**
153
+ * The cursor is invalid or belongs to another list.
154
+ */
155
+ export interface OficlinicInvalidCursorFailure {
156
+ /**
157
+ * The failure code, stable across releases.
158
+ */
159
+ code: "INVALID_CURSOR";
160
+ /**
161
+ * No fields.
162
+ */
163
+ data: Empty;
164
+ /**
165
+ * What went wrong, for people; it never contains input values.
166
+ */
167
+ message: string;
168
+ /**
169
+ * Whether repeating the same request may succeed.
170
+ */
171
+ retryable: false;
172
+ }
173
+ /**
174
+ * Provider sign-in is cooling down for this organization.
175
+ */
176
+ export interface OficlinicLoginCoolingDownFailure {
177
+ /**
178
+ * The failure code, stable across releases.
179
+ */
180
+ code: "LOGIN_COOLING_DOWN";
181
+ /**
182
+ * No fields.
183
+ */
184
+ data: Empty;
185
+ /**
186
+ * What went wrong, for people; it never contains input values.
187
+ */
188
+ message: string;
189
+ /**
190
+ * Whether repeating the same request may succeed.
191
+ */
192
+ retryable: true;
193
+ }
194
+ /**
195
+ * The provider answered a record that does not match the request.
196
+ */
197
+ export interface OficlinicPatientRecordMismatchFailure {
198
+ /**
199
+ * The failure code, stable across releases.
200
+ */
201
+ code: "PATIENT_RECORD_MISMATCH";
202
+ /**
203
+ * No fields.
204
+ */
205
+ data: Empty;
206
+ /**
207
+ * What went wrong, for people; it never contains input values.
208
+ */
209
+ message: string;
210
+ /**
211
+ * Whether repeating the same request may succeed.
212
+ */
213
+ retryable: false;
214
+ }
215
+ /**
216
+ * The payer is not configured for the connection's company and IPS.
217
+ */
218
+ export interface OficlinicPayerNotFoundFailure {
219
+ /**
220
+ * The failure code, stable across releases.
221
+ */
222
+ code: "PAYER_NOT_FOUND";
223
+ /**
224
+ * No fields.
225
+ */
226
+ data: Empty;
227
+ /**
228
+ * What went wrong, for people; it never contains input values.
229
+ */
230
+ message: string;
231
+ /**
232
+ * Whether repeating the same request may succeed.
233
+ */
234
+ retryable: false;
235
+ }
236
+ /**
237
+ * The plan, subplan or contract is not one the provider lists for the payer, or
238
+ * the contract is inactive.
239
+ */
240
+ export interface OficlinicPayerOptionNotFoundFailure {
241
+ /**
242
+ * The failure code, stable across releases.
243
+ */
244
+ code: "PAYER_OPTION_NOT_FOUND";
245
+ /**
246
+ * No fields.
247
+ */
248
+ data: Empty;
249
+ /**
250
+ * What went wrong, for people; it never contains input values.
251
+ */
252
+ message: string;
253
+ /**
254
+ * Whether repeating the same request may succeed.
255
+ */
256
+ retryable: false;
257
+ }
258
+ /**
259
+ * The attention type's source unit count is not exactly one, and this service
260
+ * books one-unit programs only.
261
+ */
262
+ export interface OficlinicProgramUnitsNotSupportedFailure {
263
+ /**
264
+ * The failure code, stable across releases.
265
+ */
266
+ code: "PROGRAM_UNITS_NOT_SUPPORTED";
267
+ /**
268
+ * No fields.
269
+ */
270
+ data: Empty;
271
+ /**
272
+ * What went wrong, for people; it never contains input values.
273
+ */
274
+ message: string;
275
+ /**
276
+ * Whether repeating the same request may succeed.
277
+ */
278
+ retryable: false;
279
+ }
280
+ /**
281
+ * The provider session does not belong to the connection's user and selected
282
+ * context.
283
+ */
284
+ export interface OficlinicProviderIdentityMismatchFailure {
285
+ /**
286
+ * The failure code, stable across releases.
287
+ */
288
+ code: "PROVIDER_IDENTITY_MISMATCH";
289
+ /**
290
+ * No fields.
291
+ */
292
+ data: Empty;
293
+ /**
294
+ * What went wrong, for people; it never contains input values.
295
+ */
296
+ message: string;
297
+ /**
298
+ * Whether repeating the same request may succeed.
299
+ */
300
+ retryable: false;
301
+ }
302
+ /**
303
+ * Provider sign-in is stopped for this connection. Verify the connection again.
304
+ */
305
+ export interface OficlinicReauthenticationRequiredFailure {
306
+ /**
307
+ * The failure code, stable across releases.
308
+ */
309
+ code: "REAUTHENTICATION_REQUIRED";
310
+ /**
311
+ * No fields.
312
+ */
313
+ data: Empty;
314
+ /**
315
+ * What went wrong, for people; it never contains input values.
316
+ */
317
+ message: string;
318
+ /**
319
+ * Whether repeating the same request may succeed.
320
+ */
321
+ retryable: false;
322
+ }
323
+ /**
324
+ * A failed answer.
325
+ */
326
+ export interface OficlinicSelectionExpiredError {
327
+ data: null;
328
+ /**
329
+ * The availability flow expired or does not exist. List booking professionals
330
+ * again.
331
+ */
332
+ error: OficlinicSelectionExpiredFailure;
333
+ /**
334
+ * What every answer carries besides its data or error.
335
+ */
336
+ metadata: ResponseMetadata;
337
+ success: false;
338
+ }
339
+ /**
340
+ * The availability flow expired or does not exist. List booking professionals
341
+ * again.
342
+ */
343
+ export interface OficlinicSelectionExpiredFailure {
344
+ /**
345
+ * The failure code, stable across releases.
346
+ */
347
+ code: "SELECTION_EXPIRED";
348
+ /**
349
+ * No fields.
350
+ */
351
+ data: Empty;
352
+ /**
353
+ * What went wrong, for people; it never contains input values.
354
+ */
355
+ message: string;
356
+ /**
357
+ * Whether repeating the same request may succeed.
358
+ */
359
+ retryable: false;
360
+ }
361
+ /**
362
+ * The professional, room, day or slot is not offered in this availability flow,
363
+ * or is no longer offered.
364
+ */
365
+ export interface OficlinicSelectionNotAvailableFailure {
366
+ /**
367
+ * The failure code, stable across releases.
368
+ */
369
+ code: "SELECTION_NOT_AVAILABLE";
370
+ /**
371
+ * No fields.
372
+ */
373
+ data: Empty;
374
+ /**
375
+ * What went wrong, for people; it never contains input values.
376
+ */
377
+ message: string;
378
+ /**
379
+ * Whether repeating the same request may succeed.
380
+ */
381
+ retryable: false;
382
+ }
383
+ /**
384
+ * The provider did not confirm a sign-in. It is not repeated automatically.
385
+ */
386
+ export interface OficlinicSignInOutcomeUnknownFailure {
387
+ /**
388
+ * The failure code, stable across releases.
389
+ */
390
+ code: "SIGN_IN_OUTCOME_UNKNOWN";
391
+ /**
392
+ * No fields.
393
+ */
394
+ data: Empty;
395
+ /**
396
+ * What went wrong, for people; it never contains input values.
397
+ */
398
+ message: string;
399
+ /**
400
+ * Whether repeating the same request may succeed.
401
+ */
402
+ retryable: false;
403
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,27 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import { type OficlinicLookupPatientBody, type OficlinicLookupPatientResultResponse } from "./models.js";
3
+ export interface ClientOptions extends BaseClientOptions {
4
+ /**
5
+ * The URL the paths of the API are relative to.
6
+ */
7
+ baseUrl: string;
8
+ }
9
+ export interface Client {
10
+ /**
11
+ * Look up a patient by document
12
+ *
13
+ * Look up one patient in e-Oficlinic by citizenship card (CC) number, sent in
14
+ * the body and never in a URL. found answers a deliberately projected record
15
+ * (provider id, names, birth date, sex, address, phones, email, municipality)
16
+ * only when the provider returned a record with the requested document;
17
+ * not_found answers only the provider explicit negative. Any failure is not
18
+ * evidence that the patient is absent. This does not verify payer rights or
19
+ * the identity of the person presenting the document. agentMode true answers
20
+ * concise Spanish text instead.
21
+ */
22
+ lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
23
+ }
24
+ export declare function createClient(options: ClientOptions): Client;
25
+ export declare function bind(transport: Transport): Client;
26
+ export type LookupRequest = OficlinicLookupPatientBody;
27
+ export type LookupResponse = OficlinicLookupPatientResultResponse;