@arbol-ai/sdk 1.20261017.200040 → 2.1.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 (144) hide show
  1. package/README.md +55 -5
  2. package/dist/account/connections/client.d.ts +25 -2
  3. package/dist/axxa/authorizations/client.d.ts +54 -0
  4. package/dist/axxa/authorizations/client.js +18 -0
  5. package/dist/axxa/authorizations/index.d.ts +4 -0
  6. package/dist/axxa/authorizations/index.js +4 -0
  7. package/dist/axxa/client.d.ts +19 -0
  8. package/dist/axxa/client.js +30 -0
  9. package/dist/axxa/connections/client.d.ts +104 -0
  10. package/dist/axxa/connections/client.js +42 -0
  11. package/dist/axxa/connections/index.d.ts +4 -0
  12. package/dist/axxa/connections/index.js +4 -0
  13. package/dist/axxa/eligibility/client.d.ts +44 -0
  14. package/dist/axxa/eligibility/client.js +18 -0
  15. package/dist/axxa/eligibility/index.d.ts +4 -0
  16. package/dist/axxa/eligibility/index.js +4 -0
  17. package/dist/axxa/index.d.ts +5 -0
  18. package/dist/axxa/index.js +4 -0
  19. package/dist/axxa/models.d.ts +168 -0
  20. package/dist/axxa/models.js +3 -0
  21. package/dist/axxa/provider/client.d.ts +32 -0
  22. package/dist/axxa/provider/client.js +18 -0
  23. package/dist/axxa/provider/index.d.ts +4 -0
  24. package/dist/axxa/provider/index.js +4 -0
  25. package/dist/client.d.ts +6 -0
  26. package/dist/client.js +15 -0
  27. package/dist/gmedic/agendaServices/client.d.ts +43 -0
  28. package/dist/gmedic/agendaServices/client.js +18 -0
  29. package/dist/gmedic/agendaServices/index.d.ts +5 -0
  30. package/dist/gmedic/agendaServices/index.js +4 -0
  31. package/dist/gmedic/agendaServices/models.d.ts +28 -0
  32. package/dist/gmedic/agendaServices/models.js +3 -0
  33. package/dist/gmedic/agendas/client.d.ts +45 -0
  34. package/dist/gmedic/agendas/client.js +18 -0
  35. package/dist/gmedic/agendas/index.d.ts +5 -0
  36. package/dist/gmedic/agendas/index.js +4 -0
  37. package/dist/gmedic/agendas/models.d.ts +32 -0
  38. package/dist/gmedic/agendas/models.js +3 -0
  39. package/dist/gmedic/appointments/client.d.ts +279 -0
  40. package/dist/gmedic/appointments/client.js +35 -0
  41. package/dist/gmedic/appointments/index.d.ts +5 -0
  42. package/dist/gmedic/appointments/index.js +4 -0
  43. package/dist/gmedic/appointments/models.d.ts +97 -0
  44. package/dist/gmedic/appointments/models.js +6 -0
  45. package/dist/gmedic/availability/client.d.ts +45 -0
  46. package/dist/gmedic/availability/client.js +18 -0
  47. package/dist/gmedic/availability/index.d.ts +5 -0
  48. package/dist/gmedic/availability/index.js +4 -0
  49. package/dist/gmedic/availability/models.d.ts +30 -0
  50. package/dist/gmedic/availability/models.js +3 -0
  51. package/dist/gmedic/availableDays/client.d.ts +44 -0
  52. package/dist/gmedic/availableDays/client.js +18 -0
  53. package/dist/gmedic/availableDays/index.d.ts +5 -0
  54. package/dist/gmedic/availableDays/index.js +4 -0
  55. package/dist/gmedic/availableDays/models.d.ts +15 -0
  56. package/dist/gmedic/availableDays/models.js +3 -0
  57. package/dist/gmedic/branchOffices/client.d.ts +43 -0
  58. package/dist/gmedic/branchOffices/client.js +18 -0
  59. package/dist/gmedic/branchOffices/index.d.ts +5 -0
  60. package/dist/gmedic/branchOffices/index.js +4 -0
  61. package/dist/gmedic/branchOffices/models.d.ts +51 -0
  62. package/dist/gmedic/branchOffices/models.js +3 -0
  63. package/dist/gmedic/client.d.ts +43 -0
  64. package/dist/gmedic/client.js +90 -0
  65. package/dist/gmedic/connections/client.d.ts +101 -0
  66. package/dist/gmedic/connections/client.js +42 -0
  67. package/dist/gmedic/connections/index.d.ts +4 -0
  68. package/dist/gmedic/connections/index.js +4 -0
  69. package/dist/gmedic/dictionaryEntries/client.d.ts +45 -0
  70. package/dist/gmedic/dictionaryEntries/client.js +18 -0
  71. package/dist/gmedic/dictionaryEntries/index.d.ts +5 -0
  72. package/dist/gmedic/dictionaryEntries/index.js +4 -0
  73. package/dist/gmedic/dictionaryEntries/models.d.ts +20 -0
  74. package/dist/gmedic/dictionaryEntries/models.js +3 -0
  75. package/dist/gmedic/healthPartners/client.d.ts +45 -0
  76. package/dist/gmedic/healthPartners/client.js +18 -0
  77. package/dist/gmedic/healthPartners/index.d.ts +5 -0
  78. package/dist/gmedic/healthPartners/index.js +4 -0
  79. package/dist/gmedic/healthPartners/models.d.ts +22 -0
  80. package/dist/gmedic/healthPartners/models.js +3 -0
  81. package/dist/gmedic/healthPromotionEntities/client.d.ts +45 -0
  82. package/dist/gmedic/healthPromotionEntities/client.js +18 -0
  83. package/dist/gmedic/healthPromotionEntities/index.d.ts +5 -0
  84. package/dist/gmedic/healthPromotionEntities/index.js +4 -0
  85. package/dist/gmedic/healthPromotionEntities/models.d.ts +19 -0
  86. package/dist/gmedic/healthPromotionEntities/models.js +3 -0
  87. package/dist/gmedic/index.d.ts +5 -0
  88. package/dist/gmedic/index.js +4 -0
  89. package/dist/gmedic/laboralRiskManagers/client.d.ts +45 -0
  90. package/dist/gmedic/laboralRiskManagers/client.js +18 -0
  91. package/dist/gmedic/laboralRiskManagers/index.d.ts +5 -0
  92. package/dist/gmedic/laboralRiskManagers/index.js +4 -0
  93. package/dist/gmedic/laboralRiskManagers/models.d.ts +19 -0
  94. package/dist/gmedic/laboralRiskManagers/models.js +3 -0
  95. package/dist/gmedic/models.d.ts +126 -0
  96. package/dist/gmedic/models.js +3 -0
  97. package/dist/gmedic/occupations/client.d.ts +45 -0
  98. package/dist/gmedic/occupations/client.js +18 -0
  99. package/dist/gmedic/occupations/index.d.ts +5 -0
  100. package/dist/gmedic/occupations/index.js +4 -0
  101. package/dist/gmedic/occupations/models.d.ts +20 -0
  102. package/dist/gmedic/occupations/models.js +3 -0
  103. package/dist/gmedic/patientNotes/client.d.ts +104 -0
  104. package/dist/gmedic/patientNotes/client.js +34 -0
  105. package/dist/gmedic/patientNotes/index.d.ts +5 -0
  106. package/dist/gmedic/patientNotes/index.js +4 -0
  107. package/dist/gmedic/patientNotes/models.d.ts +23 -0
  108. package/dist/gmedic/patientNotes/models.js +3 -0
  109. package/dist/gmedic/patients/client.d.ts +408 -0
  110. package/dist/gmedic/patients/client.js +34 -0
  111. package/dist/gmedic/patients/index.d.ts +5 -0
  112. package/dist/gmedic/patients/index.js +4 -0
  113. package/dist/gmedic/patients/models.d.ts +135 -0
  114. package/dist/gmedic/patients/models.js +3 -0
  115. package/dist/gmedic/services/client.d.ts +43 -0
  116. package/dist/gmedic/services/client.js +18 -0
  117. package/dist/gmedic/services/index.d.ts +5 -0
  118. package/dist/gmedic/services/index.js +4 -0
  119. package/dist/gmedic/services/models.d.ts +28 -0
  120. package/dist/gmedic/services/models.js +3 -0
  121. package/dist/gmedic/sessionPackages/client.d.ts +101 -0
  122. package/dist/gmedic/sessionPackages/client.js +26 -0
  123. package/dist/gmedic/sessionPackages/index.d.ts +5 -0
  124. package/dist/gmedic/sessionPackages/index.js +4 -0
  125. package/dist/gmedic/sessionPackages/models.d.ts +43 -0
  126. package/dist/gmedic/sessionPackages/models.js +3 -0
  127. package/dist/index.d.ts +1 -1
  128. package/dist/models.d.ts +22 -0
  129. package/dist/models.js +7 -1
  130. package/dist/nuevaEps/affiliations/client.d.ts +51 -0
  131. package/dist/nuevaEps/affiliations/client.js +18 -0
  132. package/dist/nuevaEps/affiliations/index.d.ts +4 -0
  133. package/dist/nuevaEps/affiliations/index.js +4 -0
  134. package/dist/nuevaEps/client.d.ts +15 -0
  135. package/dist/nuevaEps/client.js +20 -0
  136. package/dist/nuevaEps/connections/client.d.ts +111 -0
  137. package/dist/nuevaEps/connections/client.js +42 -0
  138. package/dist/nuevaEps/connections/index.d.ts +4 -0
  139. package/dist/nuevaEps/connections/index.js +4 -0
  140. package/dist/nuevaEps/index.d.ts +5 -0
  141. package/dist/nuevaEps/index.js +4 -0
  142. package/dist/nuevaEps/models.d.ts +154 -0
  143. package/dist/nuevaEps/models.js +3 -0
  144. package/package.json +10 -3
@@ -0,0 +1,168 @@
1
+ import type { Failure, ResponseMetadata, ValidationIssue } from "../models.js";
2
+ export interface AxxaFailureResponse {
3
+ data: null;
4
+ error: Failure & ({
5
+ code: "INVALID_INPUT";
6
+ data: {
7
+ issues?: ValidationIssue[];
8
+ };
9
+ message: "The request does not match the published schema.";
10
+ retryable: false;
11
+ } | {
12
+ code: "UNAUTHORIZED";
13
+ data: {
14
+ [key: string]: unknown;
15
+ };
16
+ message: "A valid access token is required.";
17
+ retryable: false;
18
+ } | {
19
+ code: "FORBIDDEN";
20
+ data: {
21
+ [key: string]: unknown;
22
+ };
23
+ message: "The token does not authorize this operation.";
24
+ retryable: false;
25
+ } | {
26
+ code: "NOT_FOUND";
27
+ data: {
28
+ [key: string]: unknown;
29
+ };
30
+ message: "The requested operation does not exist.";
31
+ retryable: false;
32
+ } | {
33
+ code: "HTTP_METHOD_NOT_ALLOWED";
34
+ data: {
35
+ [key: string]: unknown;
36
+ };
37
+ message: "The HTTP method is not supported for this resource.";
38
+ retryable: false;
39
+ } | {
40
+ code: "REQUEST_TOO_LARGE";
41
+ data: {
42
+ [key: string]: unknown;
43
+ };
44
+ message: "The request exceeds the allowed size.";
45
+ retryable: false;
46
+ } | {
47
+ code: "UNSUPPORTED_MEDIA_TYPE";
48
+ data: {
49
+ [key: string]: unknown;
50
+ };
51
+ message: "The request content type is not supported.";
52
+ retryable: false;
53
+ } | {
54
+ code: "RATE_LIMITED";
55
+ data: {
56
+ [key: string]: unknown;
57
+ };
58
+ message: "The request rate limit was exceeded. Try again later.";
59
+ retryable: true;
60
+ } | {
61
+ code: "INTERNAL_ERROR";
62
+ data: {
63
+ [key: string]: unknown;
64
+ };
65
+ message: "The service could not complete the operation.";
66
+ retryable: false;
67
+ } | {
68
+ code: "UPSTREAM_UNAVAILABLE";
69
+ data: {
70
+ [key: string]: unknown;
71
+ };
72
+ message: "The upstream service could not complete the request.";
73
+ retryable: true;
74
+ } | {
75
+ code: "UPSTREAM_TIMEOUT";
76
+ data: {
77
+ [key: string]: unknown;
78
+ };
79
+ message: "The upstream service did not respond before its deadline.";
80
+ retryable: true;
81
+ } | {
82
+ code: "OUTCOME_UNKNOWN";
83
+ data: {
84
+ [key: string]: unknown;
85
+ };
86
+ message: "The operation may have been applied; check its result before repeating it.";
87
+ retryable: false;
88
+ } | {
89
+ code: "CAPTCHA_UNAVAILABLE";
90
+ data: {
91
+ [key: string]: unknown;
92
+ };
93
+ message: "The challenge could not be solved. Provider authentication was not submitted.";
94
+ retryable: true;
95
+ } | {
96
+ code: "CAPTCHA_PAUSED";
97
+ data: {
98
+ [key: string]: unknown;
99
+ };
100
+ message: "Automatic challenge recovery is paused. Wait for the recovery window or contact an operator.";
101
+ retryable: false;
102
+ } | {
103
+ code: "NOT_CONFIGURED";
104
+ data: {
105
+ [key: string]: unknown;
106
+ };
107
+ message: "This organization has no AXA account configured. Contact your administrator.";
108
+ retryable: false;
109
+ } | {
110
+ code: "CAPTCHA_REQUIRED";
111
+ data: {
112
+ [key: string]: unknown;
113
+ };
114
+ message: "AXA authentication is not configured. Contact your administrator.";
115
+ retryable: false;
116
+ } | {
117
+ code: "SESSION_REQUIRED";
118
+ data: {
119
+ [key: string]: unknown;
120
+ };
121
+ message: "The AXA session has expired. The service must re-establish provider access.";
122
+ retryable: false;
123
+ } | {
124
+ code: "LOGIN_REJECTED";
125
+ data: {
126
+ [key: string]: unknown;
127
+ };
128
+ message: "AXA did not establish a session. Check the credentials and CAPTCHA; do not retry automatically.";
129
+ retryable: false;
130
+ } | {
131
+ code: "ACCOUNT_MISMATCH";
132
+ data: {
133
+ [key: string]: unknown;
134
+ };
135
+ message: "The portal session does not match the configured account and branch.";
136
+ retryable: false;
137
+ } | {
138
+ code: "PORTAL_UNAVAILABLE";
139
+ data: {
140
+ [key: string]: unknown;
141
+ };
142
+ message: "The AXA portal could not complete the request.";
143
+ retryable: true;
144
+ } | {
145
+ code: "PORTAL_CHANGED";
146
+ data: {
147
+ [key: string]: unknown;
148
+ };
149
+ message: "The AXA portal no longer matches the verified provider protocol.";
150
+ retryable: false;
151
+ } | {
152
+ code: "SESSION_BUSY";
153
+ data: {
154
+ [key: string]: unknown;
155
+ };
156
+ message: "A session operation is already in progress. Try again shortly.";
157
+ retryable: true;
158
+ } | {
159
+ code: "LOGIN_COOLDOWN";
160
+ data: {
161
+ [key: string]: unknown;
162
+ };
163
+ message: "Login attempts are temporarily paused after a failed or uncertain attempt.";
164
+ retryable: false;
165
+ });
166
+ metadata: ResponseMetadata;
167
+ success: false;
168
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,32 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { ResponseMetadata } 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
+ * Get provider profile
12
+ *
13
+ * Read the organization's configured AXA provider name, code and branch.
14
+ * Authentication and renewal are internal.
15
+ */
16
+ get(request?: GetRequest, options?: RequestOptions): Promise<GetResponse>;
17
+ }
18
+ export declare function createClient(options: ClientOptions): Client;
19
+ export declare function bind(transport: Transport): Client;
20
+ export interface GetRequest {
21
+ connectionId?: string;
22
+ }
23
+ export interface GetResponse {
24
+ data: {
25
+ branch: string;
26
+ code: string;
27
+ name: string;
28
+ };
29
+ error: null;
30
+ metadata: ResponseMetadata;
31
+ success: true;
32
+ }
@@ -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
+ get: (request, options) => transport.send(GetOperation, request, options),
10
+ };
11
+ }
12
+ const GetOperation = {
13
+ method: "GET",
14
+ route: "/v1/axxa/provider",
15
+ query: { connectionId: "connectionId" },
16
+ response: null,
17
+ errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "428": true, "429": true, "500": true, "502": true, "503": true, "504": true },
18
+ };
@@ -0,0 +1,4 @@
1
+ export { ApiError } from "../../_/index.js";
2
+ export type { RequestOptions } from "../../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, GetRequest, GetResponse, } from "./client.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";
package/dist/client.d.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  import { type BaseClientOptions, Transport } from "./_/index.js";
2
2
  import { type Client as AccountClient } from "./account/client.js";
3
3
  import { type Client as AgendaClient } from "./agenda/client.js";
4
+ import { type Client as AxxaClient } from "./axxa/client.js";
5
+ import { type Client as GmedicClient } from "./gmedic/client.js";
6
+ import { type Client as NuevaEpsClient } from "./nuevaEps/client.js";
4
7
  import { type Client as RaizClient } from "./raiz/client.js";
5
8
  import { type Client as SuraClient } from "./sura/client.js";
6
9
  import { type Client as VisoftClient } from "./visoft/client.js";
@@ -13,6 +16,9 @@ export interface ClientOptions extends BaseClientOptions {
13
16
  export interface Client {
14
17
  readonly account: AccountClient;
15
18
  readonly agenda: AgendaClient;
19
+ readonly axxa: AxxaClient;
20
+ readonly gmedic: GmedicClient;
21
+ readonly nuevaEps: NuevaEpsClient;
16
22
  readonly raiz: RaizClient;
17
23
  readonly sura: SuraClient;
18
24
  readonly visoft: VisoftClient;
package/dist/client.js CHANGED
@@ -3,6 +3,9 @@
3
3
  import { Transport } from "./_/index.js";
4
4
  import { bind as bindAccount, } from "./account/client.js";
5
5
  import { bind as bindAgenda, } from "./agenda/client.js";
6
+ import { bind as bindAxxa } from "./axxa/client.js";
7
+ import { bind as bindGmedic, } from "./gmedic/client.js";
8
+ import { bind as bindNuevaEps, } from "./nuevaEps/client.js";
6
9
  import { bind as bindRaiz } from "./raiz/client.js";
7
10
  import { bind as bindSura } from "./sura/client.js";
8
11
  import { bind as bindVisoft, } from "./visoft/client.js";
@@ -12,6 +15,9 @@ export function createClient(options) {
12
15
  export function bind(transport) {
13
16
  let accountClient;
14
17
  let agendaClient;
18
+ let axxaClient;
19
+ let gmedicClient;
20
+ let nuevaEpsClient;
15
21
  let raizClient;
16
22
  let suraClient;
17
23
  let visoftClient;
@@ -22,6 +28,15 @@ export function bind(transport) {
22
28
  get agenda() {
23
29
  return (agendaClient ??= bindAgenda(transport));
24
30
  },
31
+ get axxa() {
32
+ return (axxaClient ??= bindAxxa(transport));
33
+ },
34
+ get gmedic() {
35
+ return (gmedicClient ??= bindGmedic(transport));
36
+ },
37
+ get nuevaEps() {
38
+ return (nuevaEpsClient ??= bindNuevaEps(transport));
39
+ },
25
40
  get raiz() {
26
41
  return (raizClient ??= bindRaiz(transport));
27
42
  },
@@ -0,0 +1,43 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { ResponseMetadata } from "../../models.js";
3
+ import type { GmedicAgendaServicesPage } 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
+ * List agenda services
13
+ *
14
+ * Use the organization gMedic account. Read-only request; provider failures
15
+ * are never empty results.
16
+ */
17
+ list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
18
+ }
19
+ export declare function createClient(options: ClientOptions): Client;
20
+ export declare function bind(transport: Transport): Client;
21
+ export interface ListRequest {
22
+ /**
23
+ * Opaque cursor returned by pageInfo; omit it to request the first page.
24
+ */
25
+ cursor?: string;
26
+ /**
27
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
28
+ */
29
+ direction?: "forward" | "backward";
30
+ /**
31
+ * Maximum items returned in one page. Defaults to 25; larger reads require
32
+ * another cursor.
33
+ */
34
+ limit?: number;
35
+ id?: string;
36
+ connectionId?: string;
37
+ }
38
+ export interface ListResponse {
39
+ data: GmedicAgendaServicesPage;
40
+ error: null;
41
+ metadata: ResponseMetadata;
42
+ success: true;
43
+ }
@@ -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/gmedic/agenda-services",
15
+ query: { cursor: "cursor", direction: "direction", limit: "limit", id: "id", connectionId: "connectionId" },
16
+ response: null,
17
+ errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
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 { GmedicAgendaServicesPage } 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,28 @@
1
+ import type { PageInfo } from "../../models.js";
2
+ export interface GmedicAgendaServicesPage {
3
+ /**
4
+ * Items admitted by this resource contract within the verified organization.
5
+ */
6
+ data: {
7
+ active?: boolean | null;
8
+ code?: string | null;
9
+ description?: string | null;
10
+ id: string;
11
+ key?: string | null;
12
+ name?: string | null;
13
+ type?: {
14
+ id: string;
15
+ label?: string | null;
16
+ name?: string | null;
17
+ value?: string | null;
18
+ } | null;
19
+ }[];
20
+ /**
21
+ * Discriminator for a resource list response.
22
+ */
23
+ object: "list";
24
+ /**
25
+ * Opaque navigation cursors for this page’s stable keyset order.
26
+ */
27
+ pageInfo: PageInfo;
28
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,45 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { ResponseMetadata } from "../../models.js";
3
+ import type { GmedicAgendasPage } 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
+ * List agendas
13
+ *
14
+ * Use the organization gMedic account. Read-only request; provider failures
15
+ * are never empty results.
16
+ */
17
+ list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
18
+ }
19
+ export declare function createClient(options: ClientOptions): Client;
20
+ export declare function bind(transport: Transport): Client;
21
+ export interface ListRequest {
22
+ /**
23
+ * Opaque cursor returned by pageInfo; omit it to request the first page.
24
+ */
25
+ cursor?: string;
26
+ /**
27
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
28
+ */
29
+ direction?: "forward" | "backward";
30
+ /**
31
+ * Maximum items returned in one page. Defaults to 25; larger reads require
32
+ * another cursor.
33
+ */
34
+ limit?: number;
35
+ branchOfficeId?: string;
36
+ id?: string;
37
+ serviceId?: string;
38
+ connectionId?: string;
39
+ }
40
+ export interface ListResponse {
41
+ data: GmedicAgendasPage;
42
+ error: null;
43
+ metadata: ResponseMetadata;
44
+ success: true;
45
+ }
@@ -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/gmedic/agendas",
15
+ query: { cursor: "cursor", direction: "direction", limit: "limit", branchOfficeId: "branchOfficeId", id: "id", serviceId: "serviceId", connectionId: "connectionId" },
16
+ response: null,
17
+ errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
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 { GmedicAgendasPage } 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,32 @@
1
+ import type { PageInfo } from "../../models.js";
2
+ export interface GmedicAgendasPage {
3
+ /**
4
+ * Items admitted by this resource contract within the verified organization.
5
+ */
6
+ data: {
7
+ active?: boolean | null;
8
+ branchOffice?: string | null;
9
+ category?: {
10
+ id: string;
11
+ label?: string | null;
12
+ name?: string | null;
13
+ value?: string | null;
14
+ } | null;
15
+ configId?: string | null;
16
+ id: string;
17
+ key?: string | null;
18
+ name?: string | null;
19
+ selfServiceAllowCancel?: boolean | null;
20
+ selfServiceAllowReschedule?: boolean | null;
21
+ selfServiceEnabled?: boolean | null;
22
+ service?: string | null;
23
+ }[];
24
+ /**
25
+ * Discriminator for a resource list response.
26
+ */
27
+ object: "list";
28
+ /**
29
+ * Opaque navigation cursors for this page’s stable keyset order.
30
+ */
31
+ pageInfo: PageInfo;
32
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};