@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,45 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { ResponseMetadata } from "../../models.js";
3
+ import type { GmedicHealthPromotionEntitysPage } 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 health promotion entitys
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
+ code?: string;
36
+ id?: string;
37
+ name?: string;
38
+ connectionId?: string;
39
+ }
40
+ export interface ListResponse {
41
+ data: GmedicHealthPromotionEntitysPage;
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/health-promotion-entities",
15
+ query: { cursor: "cursor", direction: "direction", limit: "limit", code: "code", id: "id", name: "name", 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 { GmedicHealthPromotionEntitysPage } 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,19 @@
1
+ import type { PageInfo } from "../../models.js";
2
+ export interface GmedicHealthPromotionEntitysPage {
3
+ /**
4
+ * Items admitted by this resource contract within the verified organization.
5
+ */
6
+ data: {
7
+ code?: string | null;
8
+ id: string;
9
+ name?: string | null;
10
+ }[];
11
+ /**
12
+ * Discriminator for a resource list response.
13
+ */
14
+ object: "list";
15
+ /**
16
+ * Opaque navigation cursors for this page’s stable keyset order.
17
+ */
18
+ pageInfo: PageInfo;
19
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,5 @@
1
+ export { ApiError } from "../_/index.js";
2
+ export type { RequestOptions } from "../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, } from "./client.js";
5
+ export type { GmedicFailureResponse } 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,45 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { ResponseMetadata } from "../../models.js";
3
+ import type { GmedicLaboralRiskManagersPage } 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 laboral risk managers
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
+ code?: string;
36
+ id?: string;
37
+ name?: string;
38
+ connectionId?: string;
39
+ }
40
+ export interface ListResponse {
41
+ data: GmedicLaboralRiskManagersPage;
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/laboral-risk-managers",
15
+ query: { cursor: "cursor", direction: "direction", limit: "limit", code: "code", id: "id", name: "name", 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 { GmedicLaboralRiskManagersPage } 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,19 @@
1
+ import type { PageInfo } from "../../models.js";
2
+ export interface GmedicLaboralRiskManagersPage {
3
+ /**
4
+ * Items admitted by this resource contract within the verified organization.
5
+ */
6
+ data: {
7
+ code?: string | null;
8
+ id: string;
9
+ name?: string | null;
10
+ }[];
11
+ /**
12
+ * Discriminator for a resource list response.
13
+ */
14
+ object: "list";
15
+ /**
16
+ * Opaque navigation cursors for this page’s stable keyset order.
17
+ */
18
+ pageInfo: PageInfo;
19
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,126 @@
1
+ import type { Failure, ResponseMetadata, ValidationIssue } from "../models.js";
2
+ export interface GmedicFailureResponse {
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: "NOT_CONFIGURED";
90
+ data: {
91
+ [key: string]: unknown;
92
+ };
93
+ message: "This organization has no verified gMedic connection.";
94
+ retryable: false;
95
+ } | {
96
+ code: "PROVIDER_ACCESS_REJECTED";
97
+ data: {
98
+ [key: string]: unknown;
99
+ };
100
+ message: "The configured gMedic account did not authorize this operation.";
101
+ retryable: false;
102
+ } | {
103
+ code: "PROVIDER_UNAVAILABLE";
104
+ data: {
105
+ [key: string]: unknown;
106
+ };
107
+ message: "gMedic is temporarily unavailable.";
108
+ retryable: true;
109
+ } | {
110
+ code: "PROVIDER_RESPONSE_INVALID";
111
+ data: {
112
+ [key: string]: unknown;
113
+ };
114
+ message: "gMedic returned an unexpected response.";
115
+ retryable: false;
116
+ } | {
117
+ code: "PROVIDER_INPUT_REJECTED";
118
+ data: {
119
+ [key: string]: unknown;
120
+ };
121
+ message: "gMedic rejected the supplied fields.";
122
+ retryable: false;
123
+ });
124
+ metadata: ResponseMetadata;
125
+ success: false;
126
+ }
@@ -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 { GmedicOccupationsPage } 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 occupations
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
+ code?: string;
36
+ id?: string;
37
+ name?: string;
38
+ connectionId?: string;
39
+ }
40
+ export interface ListResponse {
41
+ data: GmedicOccupationsPage;
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/occupations",
15
+ query: { cursor: "cursor", direction: "direction", limit: "limit", code: "code", id: "id", name: "name", 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 { GmedicOccupationsPage } 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,20 @@
1
+ import type { PageInfo } from "../../models.js";
2
+ export interface GmedicOccupationsPage {
3
+ /**
4
+ * Items admitted by this resource contract within the verified organization.
5
+ */
6
+ data: {
7
+ code?: string | null;
8
+ id: string;
9
+ mainOccupation?: string | null;
10
+ name?: string | null;
11
+ }[];
12
+ /**
13
+ * Discriminator for a resource list response.
14
+ */
15
+ object: "list";
16
+ /**
17
+ * Opaque navigation cursors for this page’s stable keyset order.
18
+ */
19
+ pageInfo: PageInfo;
20
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,104 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { ResponseMetadata } from "../../models.js";
3
+ import type { GmedicPatientNotesPage } 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
+ * Create patient note
13
+ *
14
+ * Use the organization gMedic account. No automatic write retries; reconcile
15
+ * an unknown outcome before repeating.
16
+ */
17
+ create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
18
+ /**
19
+ * List patient notes
20
+ *
21
+ * Use the organization gMedic account. Read-only request; provider failures
22
+ * are never empty results.
23
+ */
24
+ list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
25
+ /**
26
+ * Update patient note
27
+ *
28
+ * Use the organization gMedic account. No automatic write retries; reconcile
29
+ * an unknown outcome before repeating.
30
+ */
31
+ update(request: UpdateRequest, options?: RequestOptions): Promise<UpdateResponse>;
32
+ }
33
+ export declare function createClient(options: ClientOptions): Client;
34
+ export declare function bind(transport: Transport): Client;
35
+ export interface CreateRequest {
36
+ connectionId?: string;
37
+ data: {
38
+ alert?: boolean;
39
+ date: string;
40
+ text: string;
41
+ };
42
+ patientId: string;
43
+ }
44
+ export interface CreateResponse {
45
+ data: {
46
+ alert?: boolean | null;
47
+ date?: string | null;
48
+ id: string;
49
+ key?: string | null;
50
+ patient?: string | null;
51
+ text?: string | null;
52
+ user?: string | null;
53
+ };
54
+ error: null;
55
+ metadata: ResponseMetadata;
56
+ success: true;
57
+ }
58
+ export interface ListRequest {
59
+ /**
60
+ * Opaque cursor returned by pageInfo; omit it to request the first page.
61
+ */
62
+ cursor?: string;
63
+ /**
64
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
65
+ */
66
+ direction?: "forward" | "backward";
67
+ /**
68
+ * Maximum items returned in one page. Defaults to 25; larger reads require
69
+ * another cursor.
70
+ */
71
+ limit?: number;
72
+ id?: string;
73
+ patientId: string;
74
+ connectionId?: string;
75
+ }
76
+ export interface ListResponse {
77
+ data: GmedicPatientNotesPage;
78
+ error: null;
79
+ metadata: ResponseMetadata;
80
+ success: true;
81
+ }
82
+ export interface UpdateRequest {
83
+ connectionId?: string;
84
+ data: {
85
+ alert?: boolean;
86
+ date: string;
87
+ text: string;
88
+ };
89
+ id: string;
90
+ }
91
+ export interface UpdateResponse {
92
+ data: {
93
+ alert?: boolean | null;
94
+ date?: string | null;
95
+ id: string;
96
+ key?: string | null;
97
+ patient?: string | null;
98
+ text?: string | null;
99
+ user?: string | null;
100
+ };
101
+ error: null;
102
+ metadata: ResponseMetadata;
103
+ success: true;
104
+ }
@@ -0,0 +1,34 @@
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
+ create: (request, options) => transport.send(CreateOperation, request, options),
10
+ list: (request, options) => transport.send(ListOperation, request, options),
11
+ update: (request, options) => transport.send(UpdateOperation, request, options),
12
+ };
13
+ }
14
+ const CreateOperation = {
15
+ method: "POST",
16
+ route: "/v1/gmedic/patient-notes",
17
+ body: "flat",
18
+ response: null,
19
+ 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 },
20
+ };
21
+ const ListOperation = {
22
+ method: "GET",
23
+ route: "/v1/gmedic/patient-notes",
24
+ query: { cursor: "cursor", direction: "direction", limit: "limit", id: "id", patientId: "patientId", connectionId: "connectionId" },
25
+ response: null,
26
+ 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 },
27
+ };
28
+ const UpdateOperation = {
29
+ method: "PATCH",
30
+ route: "/v1/gmedic/patient-notes",
31
+ body: "flat",
32
+ response: null,
33
+ errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
34
+ };
@@ -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, CreateRequest, CreateResponse, ListRequest, ListResponse, UpdateRequest, UpdateResponse, } from "./client.js";
5
+ export type { GmedicPatientNotesPage } 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,23 @@
1
+ import type { PageInfo } from "../../models.js";
2
+ export interface GmedicPatientNotesPage {
3
+ /**
4
+ * Items admitted by this resource contract within the verified organization.
5
+ */
6
+ data: {
7
+ alert?: boolean | null;
8
+ date?: string | null;
9
+ id: string;
10
+ key?: string | null;
11
+ patient?: string | null;
12
+ text?: string | null;
13
+ user?: string | null;
14
+ }[];
15
+ /**
16
+ * Discriminator for a resource list response.
17
+ */
18
+ object: "list";
19
+ /**
20
+ * Opaque navigation cursors for this page’s stable keyset order.
21
+ */
22
+ pageInfo: PageInfo;
23
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};