@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,58 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { OficlinicListPayerSubplansResultResponse } 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 subplans
12
+ *
13
+ * List the subplans e-Oficlinic offers for one plan of a payer, in the
14
+ * provider's order, as its booking screen loads them (cbclientessubplan). The
15
+ * payer must be the connection's and the plan one of the payer's
16
+ * (list_payer_plans), or PAYER_NOT_FOUND or PAYER_OPTION_NOT_FOUND. A booking
17
+ * takes one of these subplans. Pass pageInfo.nextCursor with the same filters
18
+ * for more. agentMode true answers 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
+ * A plan id of the payer, from list_payer_plans.
35
+ */
36
+ planId: string;
37
+ /**
38
+ * An opaque cursor from a previous page's pageInfo.nextCursor or
39
+ * pageInfo.previousCursor.
40
+ */
41
+ cursor?: string;
42
+ /**
43
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
44
+ */
45
+ direction?: "forward" | "backward";
46
+ /**
47
+ * Maximum items returned in one page. Defaults to 25; larger reads require
48
+ * another cursor.
49
+ */
50
+ limit?: number;
51
+ /**
52
+ * true answers { text }: concise Spanish facts for a messaging or voice
53
+ * agent, with the short ids and the cursor needed to continue. false, the
54
+ * default, answers the structured object.
55
+ */
56
+ agentMode?: boolean;
57
+ }
58
+ export type ListResponse = OficlinicListPayerSubplansResultResponse;
@@ -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-subplans",
15
+ query: { connectionId: "connectionId", payerId: "payerId", planId: "planId", 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 { OficlinicListPayerSubplansBadGatewayError, OficlinicListPayerSubplansBadGatewayFailure, OficlinicListPayerSubplansBadRequestError, OficlinicListPayerSubplansBadRequestFailure, OficlinicListPayerSubplansConflictError, OficlinicListPayerSubplansConflictFailure, OficlinicListPayerSubplansNotFoundError, OficlinicListPayerSubplansNotFoundFailure, OficlinicListPayerSubplansResult, OficlinicListPayerSubplansResultResponse, OficlinicListPayerSubplansServiceUnavailableError, OficlinicListPayerSubplansServiceUnavailableFailure, OficlinicListPayerSubplansTooManyRequestsError, OficlinicListPayerSubplansTooManyRequestsFailure, OficlinicListPayerSubplansUnprocessableContentError, OficlinicListPayerSubplansUnprocessableContentFailure, OficlinicPayerSubplan, OficlinicPayerSubplanPage, } 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,150 @@
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, OficlinicPayerOptionNotFoundFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface OficlinicListPayerSubplansBadGatewayError {
7
+ data: null;
8
+ error: OficlinicListPayerSubplansBadGatewayFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type OficlinicListPayerSubplansBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
16
+ /**
17
+ * A failed answer.
18
+ */
19
+ export interface OficlinicListPayerSubplansBadRequestError {
20
+ data: null;
21
+ error: OficlinicListPayerSubplansBadRequestFailure;
22
+ /**
23
+ * What every answer carries besides its data or error.
24
+ */
25
+ metadata: ResponseMetadata;
26
+ success: false;
27
+ }
28
+ export type OficlinicListPayerSubplansBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
29
+ /**
30
+ * A failed answer.
31
+ */
32
+ export interface OficlinicListPayerSubplansConflictError {
33
+ data: null;
34
+ error: OficlinicListPayerSubplansConflictFailure;
35
+ /**
36
+ * What every answer carries besides its data or error.
37
+ */
38
+ metadata: ResponseMetadata;
39
+ success: false;
40
+ }
41
+ export type OficlinicListPayerSubplansConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
42
+ /**
43
+ * A failed answer.
44
+ */
45
+ export interface OficlinicListPayerSubplansNotFoundError {
46
+ data: null;
47
+ error: OficlinicListPayerSubplansNotFoundFailure;
48
+ /**
49
+ * What every answer carries besides its data or error.
50
+ */
51
+ metadata: ResponseMetadata;
52
+ success: false;
53
+ }
54
+ export type OficlinicListPayerSubplansNotFoundFailure = OficlinicConnectionNotFoundFailure | OficlinicPayerNotFoundFailure | OficlinicPayerOptionNotFoundFailure;
55
+ export type OficlinicListPayerSubplansResult = OficlinicPayerSubplanPage | OficlinicAgentText;
56
+ /**
57
+ * A successful answer.
58
+ */
59
+ export interface OficlinicListPayerSubplansResultResponse {
60
+ data: OficlinicListPayerSubplansResult;
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 OficlinicListPayerSubplansServiceUnavailableError {
72
+ data: null;
73
+ error: OficlinicListPayerSubplansServiceUnavailableFailure;
74
+ /**
75
+ * What every answer carries besides its data or error.
76
+ */
77
+ metadata: ResponseMetadata;
78
+ success: false;
79
+ }
80
+ export type OficlinicListPayerSubplansServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
81
+ /**
82
+ * A failed answer.
83
+ */
84
+ export interface OficlinicListPayerSubplansTooManyRequestsError {
85
+ data: null;
86
+ error: OficlinicListPayerSubplansTooManyRequestsFailure;
87
+ /**
88
+ * What every answer carries besides its data or error.
89
+ */
90
+ metadata: ResponseMetadata;
91
+ success: false;
92
+ }
93
+ export type OficlinicListPayerSubplansTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
94
+ /**
95
+ * A failed answer.
96
+ */
97
+ export interface OficlinicListPayerSubplansUnprocessableContentError {
98
+ data: null;
99
+ error: OficlinicListPayerSubplansUnprocessableContentFailure;
100
+ /**
101
+ * What every answer carries besides its data or error.
102
+ */
103
+ metadata: ResponseMetadata;
104
+ success: false;
105
+ }
106
+ export type OficlinicListPayerSubplansUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
107
+ export interface OficlinicPayerSubplan {
108
+ /**
109
+ * The provider's FacturarProcOdo flag; null for an unrecognized value.
110
+ */
111
+ billsDentalProcedures: boolean | null;
112
+ /**
113
+ * The provider's FacturarActMed flag; null for an unrecognized value.
114
+ */
115
+ billsMedicalActivities: boolean | null;
116
+ /**
117
+ * The provider's FacturarProcMed flag; null for an unrecognized value.
118
+ */
119
+ billsMedicalProcedures: boolean | null;
120
+ /**
121
+ * The provider's FacturarActPyP flag; null for an unrecognized value.
122
+ */
123
+ billsPreventionActivities: boolean | null;
124
+ /**
125
+ * The provider's subplan id (IdSubPlan).
126
+ */
127
+ id: string;
128
+ /**
129
+ * The subplan name (Descripcion), as the provider spells it.
130
+ */
131
+ name: string;
132
+ /**
133
+ * The plan the subplan was listed for.
134
+ */
135
+ planId: string;
136
+ }
137
+ export interface OficlinicPayerSubplanPage {
138
+ /**
139
+ * Items admitted by this resource contract within the verified organization.
140
+ */
141
+ data: OficlinicPayerSubplan[];
142
+ /**
143
+ * Discriminator for a resource list response.
144
+ */
145
+ object: "list";
146
+ /**
147
+ * Opaque navigation cursors for this page’s stable keyset order.
148
+ */
149
+ pageInfo: PageInfo;
150
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,50 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { OficlinicListPayersResultResponse } 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 payers
12
+ *
13
+ * List the payers (EPS, insurers and other contracting clients) configured in
14
+ * e-Oficlinic for the connection's verified company and IPS, in the
15
+ * provider's order. Flags the provider does not spell in a recognized way are
16
+ * null. Pass connectionId when the organization has several active
17
+ * connections, and pageInfo.nextCursor as cursor for more. agentMode true
18
+ * answers 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
+ * An opaque cursor from a previous page's pageInfo.nextCursor or
31
+ * pageInfo.previousCursor.
32
+ */
33
+ cursor?: string;
34
+ /**
35
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
36
+ */
37
+ direction?: "forward" | "backward";
38
+ /**
39
+ * Maximum items returned in one page. Defaults to 25; larger reads require
40
+ * another cursor.
41
+ */
42
+ limit?: number;
43
+ /**
44
+ * true answers { text }: concise Spanish facts for a messaging or voice
45
+ * agent, with the short ids and the cursor needed to continue. false, the
46
+ * default, answers the structured object.
47
+ */
48
+ agentMode?: boolean;
49
+ }
50
+ export type ListResponse = OficlinicListPayersResultResponse;
@@ -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/payers",
15
+ query: { connectionId: "connectionId", 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 { OficlinicListPayersBadGatewayError, OficlinicListPayersBadGatewayFailure, OficlinicListPayersBadRequestError, OficlinicListPayersBadRequestFailure, OficlinicListPayersConflictError, OficlinicListPayersConflictFailure, OficlinicListPayersResult, OficlinicListPayersResultResponse, OficlinicListPayersServiceUnavailableError, OficlinicListPayersServiceUnavailableFailure, OficlinicListPayersTooManyRequestsError, OficlinicListPayersTooManyRequestsFailure, OficlinicListPayersUnprocessableContentError, OficlinicListPayersUnprocessableContentFailure, OficlinicPayer, OficlinicPayerPage, } 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,139 @@
1
+ import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { OficlinicAgentText, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface OficlinicListPayersBadGatewayError {
7
+ data: null;
8
+ error: OficlinicListPayersBadGatewayFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type OficlinicListPayersBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
16
+ /**
17
+ * A failed answer.
18
+ */
19
+ export interface OficlinicListPayersBadRequestError {
20
+ data: null;
21
+ error: OficlinicListPayersBadRequestFailure;
22
+ /**
23
+ * What every answer carries besides its data or error.
24
+ */
25
+ metadata: ResponseMetadata;
26
+ success: false;
27
+ }
28
+ export type OficlinicListPayersBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
29
+ /**
30
+ * A failed answer.
31
+ */
32
+ export interface OficlinicListPayersConflictError {
33
+ data: null;
34
+ error: OficlinicListPayersConflictFailure;
35
+ /**
36
+ * What every answer carries besides its data or error.
37
+ */
38
+ metadata: ResponseMetadata;
39
+ success: false;
40
+ }
41
+ export type OficlinicListPayersConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
42
+ export type OficlinicListPayersResult = OficlinicPayerPage | OficlinicAgentText;
43
+ /**
44
+ * A successful answer.
45
+ */
46
+ export interface OficlinicListPayersResultResponse {
47
+ data: OficlinicListPayersResult;
48
+ error: null;
49
+ /**
50
+ * What every answer carries besides its data or error.
51
+ */
52
+ metadata: ResponseMetadata;
53
+ success: true;
54
+ }
55
+ /**
56
+ * A failed answer.
57
+ */
58
+ export interface OficlinicListPayersServiceUnavailableError {
59
+ data: null;
60
+ error: OficlinicListPayersServiceUnavailableFailure;
61
+ /**
62
+ * What every answer carries besides its data or error.
63
+ */
64
+ metadata: ResponseMetadata;
65
+ success: false;
66
+ }
67
+ export type OficlinicListPayersServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
68
+ /**
69
+ * A failed answer.
70
+ */
71
+ export interface OficlinicListPayersTooManyRequestsError {
72
+ data: null;
73
+ error: OficlinicListPayersTooManyRequestsFailure;
74
+ /**
75
+ * What every answer carries besides its data or error.
76
+ */
77
+ metadata: ResponseMetadata;
78
+ success: false;
79
+ }
80
+ export type OficlinicListPayersTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
81
+ /**
82
+ * A failed answer.
83
+ */
84
+ export interface OficlinicListPayersUnprocessableContentError {
85
+ data: null;
86
+ error: OficlinicListPayersUnprocessableContentFailure;
87
+ /**
88
+ * What every answer carries besides its data or error.
89
+ */
90
+ metadata: ResponseMetadata;
91
+ success: false;
92
+ }
93
+ export type OficlinicListPayersUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
94
+ export interface OficlinicPayer {
95
+ /**
96
+ * The provider's payer code (Codigo).
97
+ */
98
+ code: string | null;
99
+ /**
100
+ * The provider's payer id (IdCliente).
101
+ */
102
+ id: string;
103
+ /**
104
+ * The payer name (Descripcion), as the provider spells it.
105
+ */
106
+ name: string;
107
+ /**
108
+ * The provider's Clase value, unchanged.
109
+ */
110
+ providerClass: string | null;
111
+ /**
112
+ * The provider's Tipo value, unchanged.
113
+ */
114
+ providerType: string | null;
115
+ /**
116
+ * Whether the provider requires an authorization number; null for an
117
+ * unrecognized flag.
118
+ */
119
+ requiresAuthorization: boolean | null;
120
+ /**
121
+ * Whether the provider checks an attention list for this payer; null for an
122
+ * unrecognized flag.
123
+ */
124
+ usesAttentionList: boolean | null;
125
+ }
126
+ export interface OficlinicPayerPage {
127
+ /**
128
+ * Items admitted by this resource contract within the verified organization.
129
+ */
130
+ data: OficlinicPayer[];
131
+ /**
132
+ * Discriminator for a resource list response.
133
+ */
134
+ object: "list";
135
+ /**
136
+ * Opaque navigation cursors for this page’s stable keyset order.
137
+ */
138
+ pageInfo: PageInfo;
139
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,51 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { OficlinicListProfessionalsResultResponse } 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 professionals
12
+ *
13
+ * List the professionals of the e-Oficlinic account's directory, a page at a
14
+ * time in the provider's order: id, name, specialty and active flag. Identity
15
+ * documents, addresses and phones of professionals are never returned. This
16
+ * directory is not an availability or scheduling answer:
17
+ * list_booking_professionals answers who the provider schedules for a
18
+ * service. Pass pageInfo.nextCursor as cursor for more. agentMode true
19
+ * 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
+ * An opaque cursor from a previous page's pageInfo.nextCursor or
32
+ * pageInfo.previousCursor.
33
+ */
34
+ cursor?: string;
35
+ /**
36
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
37
+ */
38
+ direction?: "forward" | "backward";
39
+ /**
40
+ * Maximum items returned in one page. Defaults to 25; larger reads require
41
+ * another cursor.
42
+ */
43
+ limit?: number;
44
+ /**
45
+ * true answers { text }: concise Spanish facts for a messaging or voice
46
+ * agent, with the short ids and the cursor needed to continue. false, the
47
+ * default, answers the structured object.
48
+ */
49
+ agentMode?: boolean;
50
+ }
51
+ export type ListResponse = OficlinicListProfessionalsResultResponse;
@@ -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/professionals",
15
+ query: { connectionId: "connectionId", 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 { OficlinicListProfessionalsBadGatewayError, OficlinicListProfessionalsBadGatewayFailure, OficlinicListProfessionalsBadRequestError, OficlinicListProfessionalsBadRequestFailure, OficlinicListProfessionalsConflictError, OficlinicListProfessionalsConflictFailure, OficlinicListProfessionalsResult, OficlinicListProfessionalsResultResponse, OficlinicListProfessionalsServiceUnavailableError, OficlinicListProfessionalsServiceUnavailableFailure, OficlinicListProfessionalsTooManyRequestsError, OficlinicListProfessionalsTooManyRequestsFailure, OficlinicListProfessionalsUnprocessableContentError, OficlinicListProfessionalsUnprocessableContentFailure, OficlinicProfessional, OficlinicProfessionalPage, } 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";