@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,19 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ import { OficlinicLookupPatientResultResponseCodec, } from "./models.js";
5
+ export function createClient(options) {
6
+ return bind(new Transport(options));
7
+ }
8
+ export function bind(transport) {
9
+ return {
10
+ lookup: (request, options) => transport.send(LookupOperation, request, options),
11
+ };
12
+ }
13
+ const LookupOperation = {
14
+ method: "POST",
15
+ route: "/v1/oficlinic/patients/lookup",
16
+ body: "flat",
17
+ response: OficlinicLookupPatientResultResponseCodec,
18
+ 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 },
19
+ };
@@ -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, LookupRequest, LookupResponse, } from "./client.js";
5
+ export type { OficlinicLookupPatientBadGatewayError, OficlinicLookupPatientBadGatewayFailure, OficlinicLookupPatientBody, OficlinicLookupPatientConflictError, OficlinicLookupPatientConflictFailure, OficlinicLookupPatientResult, OficlinicLookupPatientResultResponse, OficlinicLookupPatientServiceUnavailableError, OficlinicLookupPatientServiceUnavailableFailure, OficlinicLookupPatientTooManyRequestsError, OficlinicLookupPatientTooManyRequestsFailure, OficlinicLookupPatientUnprocessableContentError, OficlinicLookupPatientUnprocessableContentFailure, OficlinicPatient, OficlinicPatientFound, OficlinicPatientNotFound, } 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,134 @@
1
+ import type { CredentialsRejectedFailure, OutcomeUnknownFailure, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { OficlinicAgentText, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicLoginCoolingDownFailure, OficlinicPatientRecordMismatchFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface OficlinicLookupPatientBadGatewayError {
7
+ data: null;
8
+ error: OficlinicLookupPatientBadGatewayFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type OficlinicLookupPatientBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure | OficlinicPatientRecordMismatchFailure;
16
+ export interface OficlinicLookupPatientBody {
17
+ /**
18
+ * true answers { text }: concise Spanish facts for a messaging or voice
19
+ * agent, with the short ids and the cursor needed to continue. false, the
20
+ * default, answers the structured object.
21
+ */
22
+ agentMode?: boolean;
23
+ /**
24
+ * An Account connection id of the caller's organization.
25
+ */
26
+ connectionId?: string;
27
+ /**
28
+ * The document number, digits only.
29
+ */
30
+ documentNumber: string;
31
+ /**
32
+ * Colombian citizenship card. Other document types are not verified against
33
+ * the provider yet.
34
+ */
35
+ documentType: "CC";
36
+ }
37
+ /**
38
+ * A failed answer.
39
+ */
40
+ export interface OficlinicLookupPatientConflictError {
41
+ data: null;
42
+ error: OficlinicLookupPatientConflictFailure;
43
+ /**
44
+ * What every answer carries besides its data or error.
45
+ */
46
+ metadata: ResponseMetadata;
47
+ success: false;
48
+ }
49
+ export type OficlinicLookupPatientConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
50
+ export type OficlinicLookupPatientResult = OficlinicPatientFound | OficlinicPatientNotFound | OficlinicAgentText;
51
+ /**
52
+ * A successful answer.
53
+ */
54
+ export interface OficlinicLookupPatientResultResponse {
55
+ data: OficlinicLookupPatientResult;
56
+ error: null;
57
+ /**
58
+ * What every answer carries besides its data or error.
59
+ */
60
+ metadata: ResponseMetadata;
61
+ success: true;
62
+ }
63
+ /**
64
+ * A failed answer.
65
+ */
66
+ export interface OficlinicLookupPatientServiceUnavailableError {
67
+ data: null;
68
+ error: OficlinicLookupPatientServiceUnavailableFailure;
69
+ /**
70
+ * What every answer carries besides its data or error.
71
+ */
72
+ metadata: ResponseMetadata;
73
+ success: false;
74
+ }
75
+ export type OficlinicLookupPatientServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
76
+ /**
77
+ * A failed answer.
78
+ */
79
+ export interface OficlinicLookupPatientTooManyRequestsError {
80
+ data: null;
81
+ error: OficlinicLookupPatientTooManyRequestsFailure;
82
+ /**
83
+ * What every answer carries besides its data or error.
84
+ */
85
+ metadata: ResponseMetadata;
86
+ success: false;
87
+ }
88
+ export type OficlinicLookupPatientTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
89
+ /**
90
+ * A failed answer.
91
+ */
92
+ export interface OficlinicLookupPatientUnprocessableContentError {
93
+ data: null;
94
+ error: OficlinicLookupPatientUnprocessableContentFailure;
95
+ /**
96
+ * What every answer carries besides its data or error.
97
+ */
98
+ metadata: ResponseMetadata;
99
+ success: false;
100
+ }
101
+ export type OficlinicLookupPatientUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
102
+ export interface OficlinicPatient {
103
+ address: string | null;
104
+ birthDate: string | null;
105
+ documentNumber: string;
106
+ documentType: string;
107
+ email: string | null;
108
+ familyName: string | null;
109
+ fullName: string | null;
110
+ givenName: string | null;
111
+ /**
112
+ * The provider's internal patient id, which appointment history refers to.
113
+ */
114
+ id: string;
115
+ mobilePhone: string | null;
116
+ municipalityCode: string | null;
117
+ phone: string | null;
118
+ sex: string | null;
119
+ zone: string | null;
120
+ }
121
+ export interface OficlinicPatientFound {
122
+ observedAt: Temporal.Instant;
123
+ patient: OficlinicPatient;
124
+ status: "found";
125
+ }
126
+ export interface OficlinicPatientNotFound {
127
+ observedAt: Temporal.Instant;
128
+ patient: null;
129
+ status: "not_found";
130
+ }
131
+ export declare const OficlinicLookupPatientResultCodec: import("../../_/codec.js").Codec;
132
+ export declare const OficlinicLookupPatientResultResponseCodec: import("../../_/codec.js").Codec;
133
+ export declare const OficlinicPatientFoundCodec: import("../../_/codec.js").Codec;
134
+ export declare const OficlinicPatientNotFoundCodec: import("../../_/codec.js").Codec;
@@ -0,0 +1,13 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { instant, object, union } from "../../_/index.js";
4
+ export const OficlinicLookupPatientResultCodec = union([() => OficlinicPatientFoundCodec, () => OficlinicPatientNotFoundCodec]);
5
+ export const OficlinicLookupPatientResultResponseCodec = object([
6
+ ["data", null, () => OficlinicLookupPatientResultCodec],
7
+ ]);
8
+ export const OficlinicPatientFoundCodec = object([
9
+ ["observedAt", null, instant],
10
+ ]);
11
+ export const OficlinicPatientNotFoundCodec = object([
12
+ ["observedAt", null, instant],
13
+ ]);
@@ -0,0 +1,55 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { OficlinicListPayerContractsResultResponse } 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
+ * List payer contracts
12
+ *
13
+ * List the contracts e-Oficlinic holds for one payer of the connection, in
14
+ * the provider's order, as its booking screen loads them
15
+ * (cbclientescontrato): id, names, number, validity days and active flag.
16
+ * Financial and internal contract fields are never returned. The payer must
17
+ * be one list_payers answers, or PAYER_NOT_FOUND. A contract is not proof of
18
+ * coverage for a patient. Pass pageInfo.nextCursor with the same payerId for
19
+ * more. agentMode true answers concise Spanish text instead.
20
+ */
21
+ list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
22
+ }
23
+ export declare function createClient(options: ClientOptions): Client;
24
+ export declare function bind(transport: Transport): Client;
25
+ export interface ListRequest {
26
+ /**
27
+ * An Account connection id of the caller's organization.
28
+ */
29
+ connectionId?: string;
30
+ /**
31
+ * A payer id from list_payers.
32
+ */
33
+ payerId: string;
34
+ /**
35
+ * An opaque cursor from a previous page's pageInfo.nextCursor or
36
+ * pageInfo.previousCursor.
37
+ */
38
+ cursor?: string;
39
+ /**
40
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
41
+ */
42
+ direction?: "forward" | "backward";
43
+ /**
44
+ * Maximum items returned in one page. Defaults to 25; larger reads require
45
+ * another cursor.
46
+ */
47
+ limit?: number;
48
+ /**
49
+ * true answers { text }: concise Spanish facts for a messaging or voice
50
+ * agent, with the short ids and the cursor needed to continue. false, the
51
+ * default, answers the structured object.
52
+ */
53
+ agentMode?: boolean;
54
+ }
55
+ export type ListResponse = OficlinicListPayerContractsResultResponse;
@@ -0,0 +1,18 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ export function createClient(options) {
5
+ return bind(new Transport(options));
6
+ }
7
+ export function bind(transport) {
8
+ return {
9
+ list: (request, options) => transport.send(ListOperation, request, options),
10
+ };
11
+ }
12
+ const ListOperation = {
13
+ method: "GET",
14
+ route: "/v1/oficlinic/payer-contracts",
15
+ query: { connectionId: "connectionId", payerId: "payerId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode" },
16
+ response: null,
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
+ };
@@ -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, ListRequest, ListResponse, } from "./client.js";
5
+ export type { OficlinicListPayerContractsBadGatewayError, OficlinicListPayerContractsBadGatewayFailure, OficlinicListPayerContractsBadRequestError, OficlinicListPayerContractsBadRequestFailure, OficlinicListPayerContractsConflictError, OficlinicListPayerContractsConflictFailure, OficlinicListPayerContractsNotFoundError, OficlinicListPayerContractsNotFoundFailure, OficlinicListPayerContractsResult, OficlinicListPayerContractsResultResponse, OficlinicListPayerContractsServiceUnavailableError, OficlinicListPayerContractsServiceUnavailableFailure, OficlinicListPayerContractsTooManyRequestsError, OficlinicListPayerContractsTooManyRequestsFailure, OficlinicListPayerContractsUnprocessableContentError, OficlinicListPayerContractsUnprocessableContentFailure, OficlinicPayerContract, OficlinicPayerContractPage, } 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,154 @@
1
+ import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { OficlinicAgentText, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionNotFoundFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicPayerNotFoundFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface OficlinicListPayerContractsBadGatewayError {
7
+ data: null;
8
+ error: OficlinicListPayerContractsBadGatewayFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type OficlinicListPayerContractsBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
16
+ /**
17
+ * A failed answer.
18
+ */
19
+ export interface OficlinicListPayerContractsBadRequestError {
20
+ data: null;
21
+ error: OficlinicListPayerContractsBadRequestFailure;
22
+ /**
23
+ * What every answer carries besides its data or error.
24
+ */
25
+ metadata: ResponseMetadata;
26
+ success: false;
27
+ }
28
+ export type OficlinicListPayerContractsBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
29
+ /**
30
+ * A failed answer.
31
+ */
32
+ export interface OficlinicListPayerContractsConflictError {
33
+ data: null;
34
+ error: OficlinicListPayerContractsConflictFailure;
35
+ /**
36
+ * What every answer carries besides its data or error.
37
+ */
38
+ metadata: ResponseMetadata;
39
+ success: false;
40
+ }
41
+ export type OficlinicListPayerContractsConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
42
+ /**
43
+ * A failed answer.
44
+ */
45
+ export interface OficlinicListPayerContractsNotFoundError {
46
+ data: null;
47
+ error: OficlinicListPayerContractsNotFoundFailure;
48
+ /**
49
+ * What every answer carries besides its data or error.
50
+ */
51
+ metadata: ResponseMetadata;
52
+ success: false;
53
+ }
54
+ export type OficlinicListPayerContractsNotFoundFailure = OficlinicConnectionNotFoundFailure | OficlinicPayerNotFoundFailure;
55
+ export type OficlinicListPayerContractsResult = OficlinicPayerContractPage | OficlinicAgentText;
56
+ /**
57
+ * A successful answer.
58
+ */
59
+ export interface OficlinicListPayerContractsResultResponse {
60
+ data: OficlinicListPayerContractsResult;
61
+ error: null;
62
+ /**
63
+ * What every answer carries besides its data or error.
64
+ */
65
+ metadata: ResponseMetadata;
66
+ success: true;
67
+ }
68
+ /**
69
+ * A failed answer.
70
+ */
71
+ export interface OficlinicListPayerContractsServiceUnavailableError {
72
+ data: null;
73
+ error: OficlinicListPayerContractsServiceUnavailableFailure;
74
+ /**
75
+ * What every answer carries besides its data or error.
76
+ */
77
+ metadata: ResponseMetadata;
78
+ success: false;
79
+ }
80
+ export type OficlinicListPayerContractsServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
81
+ /**
82
+ * A failed answer.
83
+ */
84
+ export interface OficlinicListPayerContractsTooManyRequestsError {
85
+ data: null;
86
+ error: OficlinicListPayerContractsTooManyRequestsFailure;
87
+ /**
88
+ * What every answer carries besides its data or error.
89
+ */
90
+ metadata: ResponseMetadata;
91
+ success: false;
92
+ }
93
+ export type OficlinicListPayerContractsTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
94
+ /**
95
+ * A failed answer.
96
+ */
97
+ export interface OficlinicListPayerContractsUnprocessableContentError {
98
+ data: null;
99
+ error: OficlinicListPayerContractsUnprocessableContentFailure;
100
+ /**
101
+ * What every answer carries besides its data or error.
102
+ */
103
+ metadata: ResponseMetadata;
104
+ success: false;
105
+ }
106
+ export type OficlinicListPayerContractsUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
107
+ export interface OficlinicPayerContract {
108
+ /**
109
+ * The provider's Activo flag; null for an unrecognized value.
110
+ */
111
+ active: boolean | null;
112
+ /**
113
+ * The provider's Contrato value.
114
+ */
115
+ code: string | null;
116
+ /**
117
+ * The first day (FecDesde); null when blank or in an unrecognized format.
118
+ */
119
+ from: string | null;
120
+ /**
121
+ * The provider's contract id (IdContrato).
122
+ */
123
+ id: string;
124
+ /**
125
+ * The contract's description (Descripcion), or its Contrato value when blank.
126
+ */
127
+ name: string;
128
+ /**
129
+ * The contract number (NroContrato).
130
+ */
131
+ number: string | null;
132
+ /**
133
+ * The payer the contract was listed for.
134
+ */
135
+ payerId: string;
136
+ /**
137
+ * The last day (FecHasta); null when blank or in an unrecognized format.
138
+ */
139
+ to: string | null;
140
+ }
141
+ export interface OficlinicPayerContractPage {
142
+ /**
143
+ * Items admitted by this resource contract within the verified organization.
144
+ */
145
+ data: OficlinicPayerContract[];
146
+ /**
147
+ * Discriminator for a resource list response.
148
+ */
149
+ object: "list";
150
+ /**
151
+ * Opaque navigation cursors for this page’s stable keyset order.
152
+ */
153
+ pageInfo: PageInfo;
154
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,54 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { OficlinicListPayerPlansResultResponse } 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
+ * List payer plans
12
+ *
13
+ * List the plans e-Oficlinic offers for one payer of the connection, in the
14
+ * provider's order, as its booking screen loads them (cbclientesplan). The
15
+ * payer must be one list_payers answers for the connection, or
16
+ * PAYER_NOT_FOUND. A booking takes one of these plans. Pass
17
+ * pageInfo.nextCursor with the same payerId for more. agentMode true answers
18
+ * concise Spanish text instead.
19
+ */
20
+ list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
21
+ }
22
+ export declare function createClient(options: ClientOptions): Client;
23
+ export declare function bind(transport: Transport): Client;
24
+ export interface ListRequest {
25
+ /**
26
+ * An Account connection id of the caller's organization.
27
+ */
28
+ connectionId?: string;
29
+ /**
30
+ * A payer id from list_payers.
31
+ */
32
+ payerId: string;
33
+ /**
34
+ * An opaque cursor from a previous page's pageInfo.nextCursor or
35
+ * pageInfo.previousCursor.
36
+ */
37
+ cursor?: string;
38
+ /**
39
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
40
+ */
41
+ direction?: "forward" | "backward";
42
+ /**
43
+ * Maximum items returned in one page. Defaults to 25; larger reads require
44
+ * another cursor.
45
+ */
46
+ limit?: number;
47
+ /**
48
+ * true answers { text }: concise Spanish facts for a messaging or voice
49
+ * agent, with the short ids and the cursor needed to continue. false, the
50
+ * default, answers the structured object.
51
+ */
52
+ agentMode?: boolean;
53
+ }
54
+ export type ListResponse = OficlinicListPayerPlansResultResponse;
@@ -0,0 +1,18 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ export function createClient(options) {
5
+ return bind(new Transport(options));
6
+ }
7
+ export function bind(transport) {
8
+ return {
9
+ list: (request, options) => transport.send(ListOperation, request, options),
10
+ };
11
+ }
12
+ const ListOperation = {
13
+ method: "GET",
14
+ route: "/v1/oficlinic/payer-plans",
15
+ query: { connectionId: "connectionId", payerId: "payerId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode" },
16
+ response: null,
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
+ };
@@ -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, ListRequest, ListResponse, } from "./client.js";
5
+ export type { OficlinicListPayerPlansBadGatewayError, OficlinicListPayerPlansBadGatewayFailure, OficlinicListPayerPlansBadRequestError, OficlinicListPayerPlansBadRequestFailure, OficlinicListPayerPlansConflictError, OficlinicListPayerPlansConflictFailure, OficlinicListPayerPlansNotFoundError, OficlinicListPayerPlansNotFoundFailure, OficlinicListPayerPlansResult, OficlinicListPayerPlansResultResponse, OficlinicListPayerPlansServiceUnavailableError, OficlinicListPayerPlansServiceUnavailableFailure, OficlinicListPayerPlansTooManyRequestsError, OficlinicListPayerPlansTooManyRequestsFailure, OficlinicListPayerPlansUnprocessableContentError, OficlinicListPayerPlansUnprocessableContentFailure, OficlinicPayerPlan, OficlinicPayerPlanPage, } 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,138 @@
1
+ import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { OficlinicAgentText, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionNotFoundFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicPayerNotFoundFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface OficlinicListPayerPlansBadGatewayError {
7
+ data: null;
8
+ error: OficlinicListPayerPlansBadGatewayFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type OficlinicListPayerPlansBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
16
+ /**
17
+ * A failed answer.
18
+ */
19
+ export interface OficlinicListPayerPlansBadRequestError {
20
+ data: null;
21
+ error: OficlinicListPayerPlansBadRequestFailure;
22
+ /**
23
+ * What every answer carries besides its data or error.
24
+ */
25
+ metadata: ResponseMetadata;
26
+ success: false;
27
+ }
28
+ export type OficlinicListPayerPlansBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
29
+ /**
30
+ * A failed answer.
31
+ */
32
+ export interface OficlinicListPayerPlansConflictError {
33
+ data: null;
34
+ error: OficlinicListPayerPlansConflictFailure;
35
+ /**
36
+ * What every answer carries besides its data or error.
37
+ */
38
+ metadata: ResponseMetadata;
39
+ success: false;
40
+ }
41
+ export type OficlinicListPayerPlansConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
42
+ /**
43
+ * A failed answer.
44
+ */
45
+ export interface OficlinicListPayerPlansNotFoundError {
46
+ data: null;
47
+ error: OficlinicListPayerPlansNotFoundFailure;
48
+ /**
49
+ * What every answer carries besides its data or error.
50
+ */
51
+ metadata: ResponseMetadata;
52
+ success: false;
53
+ }
54
+ export type OficlinicListPayerPlansNotFoundFailure = OficlinicConnectionNotFoundFailure | OficlinicPayerNotFoundFailure;
55
+ export type OficlinicListPayerPlansResult = OficlinicPayerPlanPage | OficlinicAgentText;
56
+ /**
57
+ * A successful answer.
58
+ */
59
+ export interface OficlinicListPayerPlansResultResponse {
60
+ data: OficlinicListPayerPlansResult;
61
+ error: null;
62
+ /**
63
+ * What every answer carries besides its data or error.
64
+ */
65
+ metadata: ResponseMetadata;
66
+ success: true;
67
+ }
68
+ /**
69
+ * A failed answer.
70
+ */
71
+ export interface OficlinicListPayerPlansServiceUnavailableError {
72
+ data: null;
73
+ error: OficlinicListPayerPlansServiceUnavailableFailure;
74
+ /**
75
+ * What every answer carries besides its data or error.
76
+ */
77
+ metadata: ResponseMetadata;
78
+ success: false;
79
+ }
80
+ export type OficlinicListPayerPlansServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
81
+ /**
82
+ * A failed answer.
83
+ */
84
+ export interface OficlinicListPayerPlansTooManyRequestsError {
85
+ data: null;
86
+ error: OficlinicListPayerPlansTooManyRequestsFailure;
87
+ /**
88
+ * What every answer carries besides its data or error.
89
+ */
90
+ metadata: ResponseMetadata;
91
+ success: false;
92
+ }
93
+ export type OficlinicListPayerPlansTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
94
+ /**
95
+ * A failed answer.
96
+ */
97
+ export interface OficlinicListPayerPlansUnprocessableContentError {
98
+ data: null;
99
+ error: OficlinicListPayerPlansUnprocessableContentFailure;
100
+ /**
101
+ * What every answer carries besides its data or error.
102
+ */
103
+ metadata: ResponseMetadata;
104
+ success: false;
105
+ }
106
+ export type OficlinicListPayerPlansUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
107
+ export interface OficlinicPayerPlan {
108
+ /**
109
+ * The provider's ExentoCobro flag; null for an unrecognized value.
110
+ */
111
+ exemptFromCharge: boolean | null;
112
+ /**
113
+ * The provider's plan id (IdPlan).
114
+ */
115
+ id: string;
116
+ /**
117
+ * The plan name (Descripcion), as the provider spells it.
118
+ */
119
+ name: string;
120
+ /**
121
+ * The payer the plan was listed for.
122
+ */
123
+ payerId: string;
124
+ }
125
+ export interface OficlinicPayerPlanPage {
126
+ /**
127
+ * Items admitted by this resource contract within the verified organization.
128
+ */
129
+ data: OficlinicPayerPlan[];
130
+ /**
131
+ * Discriminator for a resource list response.
132
+ */
133
+ object: "list";
134
+ /**
135
+ * Opaque navigation cursors for this page’s stable keyset order.
136
+ */
137
+ pageInfo: PageInfo;
138
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};