@arbol-ai/sdk 3.0.0 → 4.0.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.
- package/README.md +23 -0
- package/dist/account/apiKeys/client.d.ts +15 -47
- package/dist/account/apiKeys/client.js +11 -12
- package/dist/account/apiKeys/index.d.ts +1 -1
- package/dist/account/apiKeys/models.d.ts +164 -1
- package/dist/account/apiKeys/models.js +6 -0
- package/dist/account/billing/client.d.ts +4 -10
- package/dist/account/billing/client.js +7 -7
- package/dist/account/billing/index.d.ts +2 -2
- package/dist/account/billing/models.d.ts +32 -0
- package/dist/account/billing/models.js +5 -2
- package/dist/account/billingProfiles/client.d.ts +13 -24
- package/dist/account/billingProfiles/client.js +4 -4
- package/dist/account/billingProfiles/index.d.ts +1 -1
- package/dist/account/billingProfiles/models.d.ts +48 -0
- package/dist/account/client.d.ts +6 -0
- package/dist/account/client.js +15 -0
- package/dist/account/connections/client.d.ts +2 -200
- package/dist/account/connections/client.js +1 -25
- package/dist/account/connections/index.d.ts +2 -2
- package/dist/account/connections/models.d.ts +22 -7
- package/dist/account/index.d.ts +1 -1
- package/dist/account/invitations/client.d.ts +9 -38
- package/dist/account/invitations/client.js +8 -9
- package/dist/account/invitations/index.d.ts +1 -1
- package/dist/account/invitations/models.d.ts +221 -2
- package/dist/account/invitations/models.js +6 -0
- package/dist/account/invoiceDocuments/client.d.ts +25 -0
- package/dist/account/invoiceDocuments/client.js +17 -0
- package/dist/account/invoiceDocuments/index.d.ts +5 -0
- package/dist/account/invoiceDocuments/index.js +4 -0
- package/dist/account/invoiceDocuments/models.d.ts +35 -0
- package/dist/account/invoiceDocuments/models.js +3 -0
- package/dist/account/invoices/client.d.ts +7 -34
- package/dist/account/invoices/client.js +7 -14
- package/dist/account/invoices/index.d.ts +2 -2
- package/dist/account/invoices/models.d.ts +66 -1
- package/dist/account/invoices/models.js +8 -0
- package/dist/account/members/client.d.ts +14 -55
- package/dist/account/members/client.js +6 -7
- package/dist/account/members/index.d.ts +1 -1
- package/dist/account/members/models.d.ts +261 -2
- package/dist/account/models.d.ts +210 -259
- package/dist/account/organization/client.d.ts +31 -0
- package/dist/account/organization/client.js +25 -0
- package/dist/account/organization/index.d.ts +5 -0
- package/dist/account/organization/index.js +4 -0
- package/dist/account/organization/models.d.ts +89 -0
- package/dist/account/organization/models.js +3 -0
- package/dist/account/organizations/client.d.ts +2 -48
- package/dist/account/organizations/client.js +1 -16
- package/dist/account/organizations/index.d.ts +2 -2
- package/dist/account/organizations/models.d.ts +26 -37
- package/dist/account/payments/client.d.ts +2 -8
- package/dist/account/payments/client.js +4 -4
- package/dist/account/payments/index.d.ts +1 -1
- package/dist/account/payments/models.d.ts +28 -1
- package/dist/account/payments/models.js +3 -0
- package/dist/account/permissions/client.d.ts +2 -8
- package/dist/account/permissions/client.js +1 -1
- package/dist/account/permissions/index.d.ts +1 -1
- package/dist/account/permissions/models.d.ts +27 -1
- package/dist/account/roles/client.d.ts +2 -8
- package/dist/account/roles/client.js +1 -1
- package/dist/account/roles/index.d.ts +1 -1
- package/dist/account/roles/models.d.ts +27 -1
- package/dist/account/usage/client.d.ts +7 -44
- package/dist/account/usage/client.js +5 -13
- package/dist/account/usage/index.d.ts +2 -2
- package/dist/account/usage/models.d.ts +27 -1
- package/dist/account/usageSummary/client.d.ts +26 -0
- package/dist/account/usageSummary/client.js +19 -0
- package/dist/account/usageSummary/index.d.ts +5 -0
- package/dist/account/usageSummary/index.js +4 -0
- package/dist/account/usageSummary/models.d.ts +50 -0
- package/dist/account/usageSummary/models.js +9 -0
- package/dist/account/walletTransactions/client.d.ts +2 -8
- package/dist/account/walletTransactions/client.js +4 -4
- package/dist/account/walletTransactions/index.d.ts +1 -1
- package/dist/account/walletTransactions/models.d.ts +28 -1
- package/dist/account/walletTransactions/models.js +3 -0
- package/dist/agenda/appointments/client.d.ts +6 -7
- package/dist/agenda/availability/client.d.ts +3 -4
- package/dist/agenda/bookings/client.d.ts +11 -12
- package/dist/agenda/index.d.ts +1 -1
- package/dist/agenda/locations/client.d.ts +2 -3
- package/dist/agenda/locations/client.js +1 -1
- package/dist/agenda/models.d.ts +8 -2
- package/dist/agenda/offerings/client.d.ts +4 -4
- package/dist/agenda/resources/client.d.ts +4 -4
- package/dist/agenda/scheduleRules/client.d.ts +4 -4
- package/dist/agenda/services/client.d.ts +4 -4
- package/dist/agenda/waitlist/client.d.ts +3 -4
- package/dist/axxa/authorizations/client.d.ts +2 -2
- package/dist/axxa/connections/client.d.ts +6 -5
- package/dist/axxa/eligibility/client.d.ts +2 -2
- package/dist/axxa/index.d.ts +1 -1
- package/dist/axxa/models.d.ts +8 -2
- package/dist/axxa/provider/client.d.ts +2 -2
- package/dist/gmedic/agendaServices/client.d.ts +2 -2
- package/dist/gmedic/agendas/client.d.ts +2 -2
- package/dist/gmedic/appointments/client.d.ts +4 -4
- package/dist/gmedic/availability/client.d.ts +2 -2
- package/dist/gmedic/availableDays/client.d.ts +2 -2
- package/dist/gmedic/branchOffices/client.d.ts +2 -2
- package/dist/gmedic/connections/client.d.ts +6 -5
- package/dist/gmedic/dictionaryEntries/client.d.ts +2 -2
- package/dist/gmedic/healthPartners/client.d.ts +2 -2
- package/dist/gmedic/healthPromotionEntities/client.d.ts +2 -2
- package/dist/gmedic/index.d.ts +1 -1
- package/dist/gmedic/laboralRiskManagers/client.d.ts +2 -2
- package/dist/gmedic/models.d.ts +8 -2
- package/dist/gmedic/occupations/client.d.ts +2 -2
- package/dist/gmedic/patientNotes/client.d.ts +4 -4
- package/dist/gmedic/patients/client.d.ts +4 -4
- package/dist/gmedic/services/client.d.ts +2 -2
- package/dist/gmedic/sessionPackages/client.d.ts +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +293 -5
- package/dist/nuevaEps/affiliations/models.d.ts +8 -8
- package/dist/nuevaEps/connections/client.d.ts +3 -2
- package/dist/nuevaEps/connections/index.d.ts +1 -1
- package/dist/nuevaEps/connections/models.d.ts +25 -37
- package/dist/nuevaEps/index.d.ts +1 -1
- package/dist/nuevaEps/models.d.ts +2 -101
- package/dist/orsovision/agencies/models.d.ts +8 -8
- package/dist/orsovision/appointments/client.d.ts +3 -3
- package/dist/orsovision/appointments/index.d.ts +1 -1
- package/dist/orsovision/appointments/models.d.ts +8 -32
- package/dist/orsovision/availability/index.d.ts +1 -1
- package/dist/orsovision/availability/models.d.ts +9 -20
- package/dist/orsovision/clinic/index.d.ts +1 -1
- package/dist/orsovision/clinic/models.d.ts +9 -8
- package/dist/orsovision/contracts/index.d.ts +1 -1
- package/dist/orsovision/contracts/models.d.ts +6 -30
- package/dist/orsovision/index.d.ts +1 -1
- package/dist/orsovision/models.d.ts +1 -162
- package/dist/orsovision/patients/client.d.ts +4 -4
- package/dist/orsovision/patients/index.d.ts +1 -1
- package/dist/orsovision/patients/models.d.ts +17 -27
- package/dist/orsovision/services/index.d.ts +1 -1
- package/dist/orsovision/services/models.d.ts +6 -30
- package/dist/orsovision/tools/index.d.ts +1 -1
- package/dist/orsovision/tools/models.d.ts +9 -8
- package/dist/raiz/agents/client.d.ts +5 -6
- package/dist/raiz/agents/client.js +3 -4
- package/dist/raiz/agents/models.d.ts +1 -0
- package/dist/raiz/bulletins/client.d.ts +11 -7
- package/dist/raiz/bulletins/client.js +5 -6
- package/dist/raiz/campaigns/client.d.ts +11 -11
- package/dist/raiz/campaigns/client.js +4 -4
- package/dist/raiz/changes/client.d.ts +2 -2
- package/dist/raiz/channels/client.d.ts +28 -14
- package/dist/raiz/channels/client.js +9 -9
- package/dist/raiz/contacts/client.d.ts +7 -8
- package/dist/raiz/contacts/client.js +5 -5
- package/dist/raiz/conversations/client.d.ts +15 -12
- package/dist/raiz/conversations/client.js +6 -6
- package/dist/raiz/definitions/client.d.ts +9 -9
- package/dist/raiz/definitions/client.js +3 -4
- package/dist/raiz/evalCases/client.d.ts +17 -16
- package/dist/raiz/evalCases/client.js +2 -2
- package/dist/raiz/evalRuns/client.d.ts +10 -8
- package/dist/raiz/evalRuns/client.js +2 -3
- package/dist/raiz/evalRuns/models.d.ts +7 -1
- package/dist/raiz/facts/client.d.ts +3 -4
- package/dist/raiz/facts/client.js +3 -3
- package/dist/raiz/index.d.ts +1 -1
- package/dist/raiz/knowledge/client.d.ts +23 -18
- package/dist/raiz/knowledge/client.js +4 -4
- package/dist/raiz/models.d.ts +8 -44
- package/dist/raiz/organization/client.d.ts +6 -11
- package/dist/raiz/organization/client.js +2 -3
- package/dist/raiz/organization/models.d.ts +0 -10
- package/dist/raiz/profiles/client.d.ts +9 -10
- package/dist/raiz/profiles/client.js +3 -4
- package/dist/raiz/reports/client.d.ts +2 -2
- package/dist/raiz/suppressions/client.d.ts +3 -4
- package/dist/raiz/suppressions/client.js +1 -1
- package/dist/raiz/tasks/client.d.ts +11 -6
- package/dist/raiz/tasks/client.js +6 -7
- package/dist/raiz/templates/client.d.ts +5 -5
- package/dist/raiz/templates/client.js +1 -1
- package/dist/raiz/voices/client.d.ts +2 -2
- package/dist/somos/appointments/client.d.ts +3 -3
- package/dist/somos/appointments/index.d.ts +1 -1
- package/dist/somos/appointments/models.d.ts +14 -12
- package/dist/somos/availability/index.d.ts +1 -1
- package/dist/somos/availability/models.d.ts +9 -20
- package/dist/somos/clinic/index.d.ts +1 -1
- package/dist/somos/clinic/models.d.ts +9 -8
- package/dist/somos/contracts/index.d.ts +1 -1
- package/dist/somos/contracts/models.d.ts +9 -20
- package/dist/somos/groups/models.d.ts +9 -9
- package/dist/somos/index.d.ts +1 -1
- package/dist/somos/models.d.ts +12 -151
- package/dist/somos/patients/client.d.ts +4 -4
- package/dist/somos/patients/index.d.ts +1 -1
- package/dist/somos/patients/models.d.ts +20 -17
- package/dist/somos/services/index.d.ts +1 -1
- package/dist/somos/services/models.d.ts +15 -26
- package/dist/somos/specialtyRules/client.d.ts +2 -2
- package/dist/somos/specialtyRules/models.d.ts +7 -7
- package/dist/somos/tools/index.d.ts +1 -1
- package/dist/somos/tools/models.d.ts +9 -8
- package/dist/sura/affiliations/client.d.ts +2 -3
- package/dist/sura/appointments/client.d.ts +5 -6
- package/dist/sura/authorizations/client.d.ts +2 -3
- package/dist/sura/availability/client.d.ts +2 -3
- package/dist/sura/connections/client.d.ts +6 -5
- package/dist/sura/copays/client.d.ts +2 -3
- package/dist/sura/index.d.ts +1 -1
- package/dist/sura/models.d.ts +8 -2
- package/dist/sura/operations/client.d.ts +2 -3
- package/dist/sura/patients/client.d.ts +2 -3
- package/dist/sura/professionals/client.d.ts +2 -3
- package/dist/sura/services/client.d.ts +2 -3
- package/dist/visoft/appointments/index.d.ts +1 -1
- package/dist/visoft/appointments/models.d.ts +8 -32
- package/dist/visoft/availability/models.d.ts +6 -6
- package/dist/visoft/clinic/models.d.ts +3 -2
- package/dist/visoft/clinics/models.d.ts +3 -3
- package/dist/visoft/connections/client.d.ts +3 -2
- package/dist/visoft/connections/index.d.ts +1 -1
- package/dist/visoft/connections/models.d.ts +4 -17
- package/dist/visoft/contracts/index.d.ts +1 -1
- package/dist/visoft/contracts/models.d.ts +4 -16
- package/dist/visoft/index.d.ts +1 -1
- package/dist/visoft/models.d.ts +3 -162
- package/dist/visoft/patients/index.d.ts +1 -1
- package/dist/visoft/patients/models.d.ts +10 -38
- package/dist/visoft/professionals/models.d.ts +5 -5
- package/dist/visoft/serviceCatalogs/models.d.ts +6 -6
- package/dist/visoft/services/index.d.ts +1 -1
- package/dist/visoft/services/models.d.ts +5 -17
- package/package.json +3 -3
|
@@ -15,7 +15,6 @@ export function bind(transport) {
|
|
|
15
15
|
const GetOperation = {
|
|
16
16
|
method: "GET",
|
|
17
17
|
route: "/v1/raiz/organization",
|
|
18
|
-
query: { expand: "expand" },
|
|
19
18
|
response: object([["data", null, () => RaizOrganizationCodec]]),
|
|
20
19
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
21
20
|
};
|
|
@@ -23,12 +22,12 @@ const SendDailyReportOperation = {
|
|
|
23
22
|
method: "POST",
|
|
24
23
|
route: "/v1/raiz/organization/send-daily-report",
|
|
25
24
|
body: "nested",
|
|
26
|
-
response: object([["data", null, object([["requestedAt", null, instant], ["until", null, instant]])]]),
|
|
25
|
+
response: object([["data", null, object([["endsAt", null, instant], ["requestedAt", null, instant], ["until", null, instant]])]]),
|
|
27
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 },
|
|
28
27
|
};
|
|
29
28
|
const UpdateOperation = {
|
|
30
29
|
method: "PATCH",
|
|
31
|
-
route: "/v1/raiz/organization
|
|
30
|
+
route: "/v1/raiz/organization",
|
|
32
31
|
body: "flat",
|
|
33
32
|
response: object([["data", null, () => RaizOrganizationCodec]]),
|
|
34
33
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import type { RaizEmailAddress } from "../models.js";
|
|
2
2
|
export type OrganizationId = string;
|
|
3
3
|
export interface RaizOrganization {
|
|
4
|
-
/**
|
|
5
|
-
* With `expand=applications`: Arbol's applications and whether you open each
|
|
6
|
-
* in this organization, as Account decides. Empty for a machine token, which
|
|
7
|
-
* opens none.
|
|
8
|
-
*/
|
|
9
|
-
applications?: {
|
|
10
|
-
enabled: boolean;
|
|
11
|
-
id: "raiz" | "agenda" | "ambar" | "account";
|
|
12
|
-
opens: boolean;
|
|
13
|
-
}[];
|
|
14
4
|
capabilities: {
|
|
15
5
|
managedVoiceOutbound: boolean;
|
|
16
6
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type { RaizContactHoursWindow } from "../models.js";
|
|
2
|
+
import type { RaizContactHoursWindow, RaizResponseMetadata } from "../models.js";
|
|
4
3
|
import { type RaizProfile, type RaizProfilePage, type RaizProfileTemplateInput } from "./models.js";
|
|
5
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
6
5
|
/**
|
|
@@ -80,7 +79,7 @@ export type CreateRequest = {
|
|
|
80
79
|
export interface CreateResponse {
|
|
81
80
|
data: RaizProfile;
|
|
82
81
|
error: null;
|
|
83
|
-
metadata:
|
|
82
|
+
metadata: RaizResponseMetadata;
|
|
84
83
|
success: true;
|
|
85
84
|
}
|
|
86
85
|
export interface GetRequest {
|
|
@@ -92,7 +91,7 @@ export interface GetRequest {
|
|
|
92
91
|
export interface GetResponse {
|
|
93
92
|
data: RaizProfile;
|
|
94
93
|
error: null;
|
|
95
|
-
metadata:
|
|
94
|
+
metadata: RaizResponseMetadata;
|
|
96
95
|
success: true;
|
|
97
96
|
}
|
|
98
97
|
export interface ListRequest {
|
|
@@ -123,10 +122,14 @@ export interface ListRequest {
|
|
|
123
122
|
export interface ListResponse {
|
|
124
123
|
data: RaizProfilePage;
|
|
125
124
|
error: null;
|
|
126
|
-
metadata:
|
|
125
|
+
metadata: RaizResponseMetadata;
|
|
127
126
|
success: true;
|
|
128
127
|
}
|
|
129
128
|
export interface UpdateRequest {
|
|
129
|
+
/**
|
|
130
|
+
* Communication profile id.
|
|
131
|
+
*/
|
|
132
|
+
profileId: string;
|
|
130
133
|
/**
|
|
131
134
|
* Agent id.
|
|
132
135
|
*/
|
|
@@ -156,10 +159,6 @@ export interface UpdateRequest {
|
|
|
156
159
|
* What the profile is for, as people read it.
|
|
157
160
|
*/
|
|
158
161
|
name?: string;
|
|
159
|
-
/**
|
|
160
|
-
* Communication profile id.
|
|
161
|
-
*/
|
|
162
|
-
profileId: string;
|
|
163
162
|
/**
|
|
164
163
|
* The approved template that opens every conversation. WhatsApp allows a
|
|
165
164
|
* business to start a conversation only with one.
|
|
@@ -170,6 +169,6 @@ export interface UpdateRequest {
|
|
|
170
169
|
export interface UpdateResponse {
|
|
171
170
|
data: RaizProfile;
|
|
172
171
|
error: null;
|
|
173
|
-
metadata:
|
|
172
|
+
metadata: RaizResponseMetadata;
|
|
174
173
|
success: true;
|
|
175
174
|
}
|
|
@@ -15,15 +15,14 @@ export function bind(transport) {
|
|
|
15
15
|
}
|
|
16
16
|
const CreateOperation = {
|
|
17
17
|
method: "POST",
|
|
18
|
-
route: "/v1/raiz/profiles
|
|
18
|
+
route: "/v1/raiz/profiles",
|
|
19
19
|
body: "flat",
|
|
20
20
|
response: object([["data", null, () => RaizProfileCodec]]),
|
|
21
21
|
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 },
|
|
22
22
|
};
|
|
23
23
|
const GetOperation = {
|
|
24
24
|
method: "GET",
|
|
25
|
-
route: "/v1/raiz/profiles/
|
|
26
|
-
query: { profileId: "profileId" },
|
|
25
|
+
route: "/v1/raiz/profiles/{profileId}",
|
|
27
26
|
response: object([["data", null, () => RaizProfileCodec]]),
|
|
28
27
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
29
28
|
};
|
|
@@ -36,7 +35,7 @@ const ListOperation = {
|
|
|
36
35
|
};
|
|
37
36
|
const UpdateOperation = {
|
|
38
37
|
method: "PATCH",
|
|
39
|
-
route: "/v1/raiz/profiles/
|
|
38
|
+
route: "/v1/raiz/profiles/{profileId}",
|
|
40
39
|
body: "flat",
|
|
41
40
|
response: object([["data", null, () => RaizProfileCodec]]),
|
|
42
41
|
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 },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { RaizResponseMetadata } from "../models.js";
|
|
3
3
|
import { type RaizReport } from "./models.js";
|
|
4
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
5
|
/**
|
|
@@ -84,6 +84,6 @@ export interface GetRequest {
|
|
|
84
84
|
export interface GetResponse {
|
|
85
85
|
data: RaizReport;
|
|
86
86
|
error: null;
|
|
87
|
-
metadata:
|
|
87
|
+
metadata: RaizResponseMetadata;
|
|
88
88
|
success: true;
|
|
89
89
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type { RaizPhoneNumber } from "../models.js";
|
|
2
|
+
import type { RaizPhoneNumber, RaizResponseMetadata } from "../models.js";
|
|
4
3
|
import { type RaizSuppression, type RaizSuppressionPage } from "./models.js";
|
|
5
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
6
5
|
/**
|
|
@@ -51,7 +50,7 @@ export type CreateRequest = {
|
|
|
51
50
|
export interface CreateResponse {
|
|
52
51
|
data: RaizSuppression;
|
|
53
52
|
error: null;
|
|
54
|
-
metadata:
|
|
53
|
+
metadata: RaizResponseMetadata;
|
|
55
54
|
success: true;
|
|
56
55
|
}
|
|
57
56
|
export interface ListRequest {
|
|
@@ -86,6 +85,6 @@ export interface ListRequest {
|
|
|
86
85
|
export interface ListResponse {
|
|
87
86
|
data: RaizSuppressionPage;
|
|
88
87
|
error: null;
|
|
89
|
-
metadata:
|
|
88
|
+
metadata: RaizResponseMetadata;
|
|
90
89
|
success: true;
|
|
91
90
|
}
|
|
@@ -13,7 +13,7 @@ export function bind(transport) {
|
|
|
13
13
|
}
|
|
14
14
|
const CreateOperation = {
|
|
15
15
|
method: "POST",
|
|
16
|
-
route: "/v1/raiz/suppressions
|
|
16
|
+
route: "/v1/raiz/suppressions",
|
|
17
17
|
body: "flat",
|
|
18
18
|
response: object([["data", null, () => RaizSuppressionCodec]]),
|
|
19
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 },
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type RaizTask } from "../models.js";
|
|
2
|
+
import { type RaizResponseMetadata, type RaizTask } from "../models.js";
|
|
4
3
|
import { type RaizTaskPage } from "./models.js";
|
|
5
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
6
5
|
/**
|
|
@@ -57,11 +56,14 @@ export interface CancelRequest {
|
|
|
57
56
|
* Task id.
|
|
58
57
|
*/
|
|
59
58
|
taskId: string;
|
|
59
|
+
body: {
|
|
60
|
+
[key: string]: unknown;
|
|
61
|
+
};
|
|
60
62
|
}
|
|
61
63
|
export interface CancelResponse {
|
|
62
64
|
data: RaizTask;
|
|
63
65
|
error: null;
|
|
64
|
-
metadata:
|
|
66
|
+
metadata: RaizResponseMetadata;
|
|
65
67
|
success: true;
|
|
66
68
|
}
|
|
67
69
|
export interface GetRequest {
|
|
@@ -73,7 +75,7 @@ export interface GetRequest {
|
|
|
73
75
|
export interface GetResponse {
|
|
74
76
|
data: RaizTask;
|
|
75
77
|
error: null;
|
|
76
|
-
metadata:
|
|
78
|
+
metadata: RaizResponseMetadata;
|
|
77
79
|
success: true;
|
|
78
80
|
}
|
|
79
81
|
export interface ListRequest {
|
|
@@ -99,7 +101,7 @@ export interface ListRequest {
|
|
|
99
101
|
export interface ListResponse {
|
|
100
102
|
data: RaizTaskPage;
|
|
101
103
|
error: null;
|
|
102
|
-
metadata:
|
|
104
|
+
metadata: RaizResponseMetadata;
|
|
103
105
|
success: true;
|
|
104
106
|
}
|
|
105
107
|
export interface RetryRequest {
|
|
@@ -107,10 +109,13 @@ export interface RetryRequest {
|
|
|
107
109
|
* Task id.
|
|
108
110
|
*/
|
|
109
111
|
taskId: string;
|
|
112
|
+
body: {
|
|
113
|
+
[key: string]: unknown;
|
|
114
|
+
};
|
|
110
115
|
}
|
|
111
116
|
export interface RetryResponse {
|
|
112
117
|
data: RaizTask;
|
|
113
118
|
error: null;
|
|
114
|
-
metadata:
|
|
119
|
+
metadata: RaizResponseMetadata;
|
|
115
120
|
success: true;
|
|
116
121
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { Transport, object, } from "../../_/index.js";
|
|
4
|
-
import { RaizTaskCodec } from "../models.js";
|
|
4
|
+
import { RaizTaskCodec, } from "../models.js";
|
|
5
5
|
import { RaizTaskPageCodec } from "./models.js";
|
|
6
6
|
export function createClient(options) {
|
|
7
7
|
return bind(new Transport(options));
|
|
@@ -16,15 +16,14 @@ export function bind(transport) {
|
|
|
16
16
|
}
|
|
17
17
|
const CancelOperation = {
|
|
18
18
|
method: "POST",
|
|
19
|
-
route: "/v1/raiz/tasks/cancel",
|
|
20
|
-
body: "
|
|
19
|
+
route: "/v1/raiz/tasks/{taskId}/cancel",
|
|
20
|
+
body: "nested",
|
|
21
21
|
response: object([["data", null, () => RaizTaskCodec]]),
|
|
22
22
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
23
23
|
};
|
|
24
24
|
const GetOperation = {
|
|
25
25
|
method: "GET",
|
|
26
|
-
route: "/v1/raiz/tasks/
|
|
27
|
-
query: { taskId: "taskId" },
|
|
26
|
+
route: "/v1/raiz/tasks/{taskId}",
|
|
28
27
|
response: object([["data", null, () => RaizTaskCodec]]),
|
|
29
28
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
30
29
|
};
|
|
@@ -37,8 +36,8 @@ const ListOperation = {
|
|
|
37
36
|
};
|
|
38
37
|
const RetryOperation = {
|
|
39
38
|
method: "POST",
|
|
40
|
-
route: "/v1/raiz/tasks/retry",
|
|
41
|
-
body: "
|
|
39
|
+
route: "/v1/raiz/tasks/{taskId}/retry",
|
|
40
|
+
body: "nested",
|
|
42
41
|
response: object([["data", null, () => RaizTaskCodec]]),
|
|
43
42
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
44
43
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type { RaizPhoneNumber } from "../models.js";
|
|
2
|
+
import type { RaizPhoneNumber, RaizResponseMetadata } from "../models.js";
|
|
4
3
|
import type { RaizTemplate, RaizTemplatePage } from "./models.js";
|
|
5
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
6
5
|
/**
|
|
@@ -54,7 +53,8 @@ export interface CreateRequest {
|
|
|
54
53
|
type: "url";
|
|
55
54
|
url: string;
|
|
56
55
|
} | {
|
|
57
|
-
|
|
56
|
+
phone?: RaizPhoneNumber;
|
|
57
|
+
phoneNumber?: RaizPhoneNumber;
|
|
58
58
|
text: string;
|
|
59
59
|
type: "phone_number";
|
|
60
60
|
})[];
|
|
@@ -109,7 +109,7 @@ export interface CreateRequest {
|
|
|
109
109
|
export interface CreateResponse {
|
|
110
110
|
data: RaizTemplate;
|
|
111
111
|
error: null;
|
|
112
|
-
metadata:
|
|
112
|
+
metadata: RaizResponseMetadata;
|
|
113
113
|
success: true;
|
|
114
114
|
}
|
|
115
115
|
export interface ListRequest {
|
|
@@ -136,6 +136,6 @@ export interface ListRequest {
|
|
|
136
136
|
export interface ListResponse {
|
|
137
137
|
data: RaizTemplatePage;
|
|
138
138
|
error: null;
|
|
139
|
-
metadata:
|
|
139
|
+
metadata: RaizResponseMetadata;
|
|
140
140
|
success: true;
|
|
141
141
|
}
|
|
@@ -12,7 +12,7 @@ export function bind(transport) {
|
|
|
12
12
|
}
|
|
13
13
|
const CreateOperation = {
|
|
14
14
|
method: "POST",
|
|
15
|
-
route: "/v1/raiz/templates
|
|
15
|
+
route: "/v1/raiz/templates",
|
|
16
16
|
body: "flat",
|
|
17
17
|
request: object([["header", null, union([object([["example", null, object([["data", null, bytes]])]]), object([["example", null, object([["data", null, bytes]])]]), object([["example", null, object([["data", null, bytes]])]])])]]),
|
|
18
18
|
response: null,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { RaizResponseMetadata } from "../models.js";
|
|
3
3
|
import type { RaizVoicePage } from "./models.js";
|
|
4
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
5
|
/**
|
|
@@ -47,6 +47,6 @@ export interface ListRequest {
|
|
|
47
47
|
export interface ListResponse {
|
|
48
48
|
data: RaizVoicePage;
|
|
49
49
|
error: null;
|
|
50
|
-
metadata:
|
|
50
|
+
metadata: RaizResponseMetadata;
|
|
51
51
|
success: true;
|
|
52
52
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ToolResultResponse } from "../../models.js";
|
|
3
3
|
import { type SomosCancelAppointmentBody, type SomosCreateAppointmentBody } from "./models.js";
|
|
4
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
5
|
/**
|
|
@@ -35,6 +35,6 @@ export interface Client {
|
|
|
35
35
|
export declare function createClient(options: ClientOptions): Client;
|
|
36
36
|
export declare function bind(transport: Transport): Client;
|
|
37
37
|
export type CancelRequest = SomosCancelAppointmentBody;
|
|
38
|
-
export type CancelResponse =
|
|
38
|
+
export type CancelResponse = ToolResultResponse;
|
|
39
39
|
export type CreateRequest = SomosCreateAppointmentBody;
|
|
40
|
-
export type CreateResponse =
|
|
40
|
+
export type CreateResponse = ToolResultResponse;
|
|
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, CancelRequest, CancelResponse, CreateRequest, CreateResponse, } from "./client.js";
|
|
5
|
-
export type { SomosCancelAppointmentBadGatewayError, SomosCancelAppointmentBody, SomosCancelAppointmentConflictError, SomosCancelAppointmentConflictFailure, SomosCancelAppointmentNotFoundError, SomosCancelAppointmentNotFoundFailure, SomosCancelAppointmentServiceUnavailableError, SomosCancelAppointmentServiceUnavailableFailure, SomosCreateAppointmentBadGatewayError, SomosCreateAppointmentBody, SomosCreateAppointmentConflictError, SomosCreateAppointmentConflictFailure, SomosCreateAppointmentNotFoundError, SomosCreateAppointmentNotFoundFailure, SomosCreateAppointmentServiceUnavailableError, SomosCreateAppointmentServiceUnavailableFailure, } from "./models.js";
|
|
5
|
+
export type { SomosCancelAppointmentBadGatewayError, SomosCancelAppointmentBadGatewayFailure, SomosCancelAppointmentBody, SomosCancelAppointmentConflictError, SomosCancelAppointmentConflictFailure, SomosCancelAppointmentNotFoundError, SomosCancelAppointmentNotFoundFailure, SomosCancelAppointmentServiceUnavailableError, SomosCancelAppointmentServiceUnavailableFailure, SomosCreateAppointmentBadGatewayError, SomosCreateAppointmentBadGatewayFailure, SomosCreateAppointmentBody, SomosCreateAppointmentConflictError, SomosCreateAppointmentConflictFailure, SomosCreateAppointmentNotFoundError, SomosCreateAppointmentNotFoundFailure, SomosCreateAppointmentServiceUnavailableError, SomosCreateAppointmentServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { SomosClinicNotServedFailure,
|
|
1
|
+
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, OutcomeUnknownFailure, ProviderUnavailableFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { SomosClinicNotServedFailure, SomosProviderRequestRefusedFailure, SomosSomosNotConfiguredFailure, SomosToolNotAvailableFailure } from "../models.js";
|
|
3
3
|
/**
|
|
4
4
|
* A failed answer.
|
|
5
5
|
*/
|
|
6
6
|
export interface SomosCancelAppointmentBadGatewayError {
|
|
7
7
|
data: null;
|
|
8
|
-
error:
|
|
8
|
+
error: SomosCancelAppointmentBadGatewayFailure;
|
|
9
9
|
/**
|
|
10
10
|
* What every answer carries besides its data or error.
|
|
11
11
|
*/
|
|
12
|
-
metadata:
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
13
|
success: false;
|
|
14
14
|
}
|
|
15
|
+
export type SomosCancelAppointmentBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
|
|
15
16
|
export interface SomosCancelAppointmentBody {
|
|
16
17
|
/**
|
|
17
18
|
* No lo uses: cancela con date + time. Solo existe por compatibilidad.
|
|
@@ -61,7 +62,7 @@ export interface SomosCancelAppointmentConflictError {
|
|
|
61
62
|
/**
|
|
62
63
|
* What every answer carries besides its data or error.
|
|
63
64
|
*/
|
|
64
|
-
metadata:
|
|
65
|
+
metadata: ResponseMetadata;
|
|
65
66
|
success: false;
|
|
66
67
|
}
|
|
67
68
|
export type SomosCancelAppointmentConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
@@ -74,7 +75,7 @@ export interface SomosCancelAppointmentNotFoundError {
|
|
|
74
75
|
/**
|
|
75
76
|
* What every answer carries besides its data or error.
|
|
76
77
|
*/
|
|
77
|
-
metadata:
|
|
78
|
+
metadata: ResponseMetadata;
|
|
78
79
|
success: false;
|
|
79
80
|
}
|
|
80
81
|
export type SomosCancelAppointmentNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
|
|
@@ -87,7 +88,7 @@ export interface SomosCancelAppointmentServiceUnavailableError {
|
|
|
87
88
|
/**
|
|
88
89
|
* What every answer carries besides its data or error.
|
|
89
90
|
*/
|
|
90
|
-
metadata:
|
|
91
|
+
metadata: ResponseMetadata;
|
|
91
92
|
success: false;
|
|
92
93
|
}
|
|
93
94
|
export type SomosCancelAppointmentServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
|
|
@@ -96,13 +97,14 @@ export type SomosCancelAppointmentServiceUnavailableFailure = UpstreamUnavailabl
|
|
|
96
97
|
*/
|
|
97
98
|
export interface SomosCreateAppointmentBadGatewayError {
|
|
98
99
|
data: null;
|
|
99
|
-
error:
|
|
100
|
+
error: SomosCreateAppointmentBadGatewayFailure;
|
|
100
101
|
/**
|
|
101
102
|
* What every answer carries besides its data or error.
|
|
102
103
|
*/
|
|
103
|
-
metadata:
|
|
104
|
+
metadata: ResponseMetadata;
|
|
104
105
|
success: false;
|
|
105
106
|
}
|
|
107
|
+
export type SomosCreateAppointmentBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
|
|
106
108
|
export interface SomosCreateAppointmentBody {
|
|
107
109
|
/**
|
|
108
110
|
* La sede del horario elegido: copia bookingInput.agency tal cual u omítela.
|
|
@@ -267,7 +269,7 @@ export interface SomosCreateAppointmentConflictError {
|
|
|
267
269
|
/**
|
|
268
270
|
* What every answer carries besides its data or error.
|
|
269
271
|
*/
|
|
270
|
-
metadata:
|
|
272
|
+
metadata: ResponseMetadata;
|
|
271
273
|
success: false;
|
|
272
274
|
}
|
|
273
275
|
export type SomosCreateAppointmentConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
@@ -280,7 +282,7 @@ export interface SomosCreateAppointmentNotFoundError {
|
|
|
280
282
|
/**
|
|
281
283
|
* What every answer carries besides its data or error.
|
|
282
284
|
*/
|
|
283
|
-
metadata:
|
|
285
|
+
metadata: ResponseMetadata;
|
|
284
286
|
success: false;
|
|
285
287
|
}
|
|
286
288
|
export type SomosCreateAppointmentNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
|
|
@@ -293,7 +295,7 @@ export interface SomosCreateAppointmentServiceUnavailableError {
|
|
|
293
295
|
/**
|
|
294
296
|
* What every answer carries besides its data or error.
|
|
295
297
|
*/
|
|
296
|
-
metadata:
|
|
298
|
+
metadata: ResponseMetadata;
|
|
297
299
|
success: false;
|
|
298
300
|
}
|
|
299
301
|
export type SomosCreateAppointmentServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
|
|
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, LookupRequest, LookupResponse, } from "./client.js";
|
|
5
|
-
export type { SomosAvailabilitySlot, SomosAvailabilitySlotPage, SomosAvailabilitySlotPageResponse, SomosListAvailabilityBadGatewayError, SomosListAvailabilityBody, SomosListAvailabilityConflictError, SomosListAvailabilityConflictFailure, SomosListAvailabilityNotFoundError, SomosListAvailabilityNotFoundFailure, SomosListAvailabilityServiceUnavailableError, SomosListAvailabilityServiceUnavailableFailure,
|
|
5
|
+
export type { SomosAvailabilitySlot, SomosAvailabilitySlotPage, SomosAvailabilitySlotPageResponse, SomosListAvailabilityBadGatewayError, SomosListAvailabilityBadGatewayFailure, SomosListAvailabilityBody, SomosListAvailabilityConflictError, SomosListAvailabilityConflictFailure, SomosListAvailabilityNotFoundError, SomosListAvailabilityNotFoundFailure, SomosListAvailabilityServiceUnavailableError, SomosListAvailabilityServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type AvailabilityBookingInput, type ConnectionNotConfiguredFailure, type ConnectionNotFoundFailure, type
|
|
2
|
-
import type { SomosClinicNotServedFailure,
|
|
1
|
+
import { type AvailabilityBookingInput, type ConnectionNotConfiguredFailure, type ConnectionNotFoundFailure, type OutcomeUnknownFailure, type PageInfo, type ProviderUnavailableFailure, type ResponseMetadata, type UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { SomosClinicNotServedFailure, SomosProviderRequestRefusedFailure, SomosSomosNotConfiguredFailure, SomosToolNotAvailableFailure } from "../models.js";
|
|
3
3
|
export interface SomosAvailabilitySlot {
|
|
4
4
|
/**
|
|
5
5
|
* The professional's agenda, when they run several.
|
|
@@ -96,7 +96,7 @@ export interface SomosAvailabilitySlotPageResponse {
|
|
|
96
96
|
/**
|
|
97
97
|
* What every answer carries besides its data or error.
|
|
98
98
|
*/
|
|
99
|
-
metadata:
|
|
99
|
+
metadata: ResponseMetadata;
|
|
100
100
|
success: true;
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
@@ -104,13 +104,14 @@ export interface SomosAvailabilitySlotPageResponse {
|
|
|
104
104
|
*/
|
|
105
105
|
export interface SomosListAvailabilityBadGatewayError {
|
|
106
106
|
data: null;
|
|
107
|
-
error:
|
|
107
|
+
error: SomosListAvailabilityBadGatewayFailure;
|
|
108
108
|
/**
|
|
109
109
|
* What every answer carries besides its data or error.
|
|
110
110
|
*/
|
|
111
|
-
metadata:
|
|
111
|
+
metadata: ResponseMetadata;
|
|
112
112
|
success: false;
|
|
113
113
|
}
|
|
114
|
+
export type SomosListAvailabilityBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
|
|
114
115
|
export interface SomosListAvailabilityBody {
|
|
115
116
|
/**
|
|
116
117
|
* Solo para specialty=fisio: frase real del servicio en la autorización EPS
|
|
@@ -293,7 +294,7 @@ export interface SomosListAvailabilityConflictError {
|
|
|
293
294
|
/**
|
|
294
295
|
* What every answer carries besides its data or error.
|
|
295
296
|
*/
|
|
296
|
-
metadata:
|
|
297
|
+
metadata: ResponseMetadata;
|
|
297
298
|
success: false;
|
|
298
299
|
}
|
|
299
300
|
export type SomosListAvailabilityConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
@@ -306,7 +307,7 @@ export interface SomosListAvailabilityNotFoundError {
|
|
|
306
307
|
/**
|
|
307
308
|
* What every answer carries besides its data or error.
|
|
308
309
|
*/
|
|
309
|
-
metadata:
|
|
310
|
+
metadata: ResponseMetadata;
|
|
310
311
|
success: false;
|
|
311
312
|
}
|
|
312
313
|
export type SomosListAvailabilityNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
|
|
@@ -319,22 +320,10 @@ export interface SomosListAvailabilityServiceUnavailableError {
|
|
|
319
320
|
/**
|
|
320
321
|
* What every answer carries besides its data or error.
|
|
321
322
|
*/
|
|
322
|
-
metadata:
|
|
323
|
+
metadata: ResponseMetadata;
|
|
323
324
|
success: false;
|
|
324
325
|
}
|
|
325
326
|
export type SomosListAvailabilityServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
|
|
326
|
-
/**
|
|
327
|
-
* A failed answer.
|
|
328
|
-
*/
|
|
329
|
-
export interface SomosListAvailabilityUnprocessableContentError {
|
|
330
|
-
data: null;
|
|
331
|
-
error: ListAvailabilityUnprocessableContentFailure;
|
|
332
|
-
/**
|
|
333
|
-
* What every answer carries besides its data or error.
|
|
334
|
-
*/
|
|
335
|
-
metadata: SomosResponseMetadata;
|
|
336
|
-
success: false;
|
|
337
|
-
}
|
|
338
327
|
export declare const SomosAvailabilitySlotCodec: import("../../_/codec.js").Codec;
|
|
339
328
|
export declare const SomosAvailabilitySlotPageCodec: import("../../_/codec.js").Codec;
|
|
340
329
|
export declare const SomosAvailabilitySlotPageResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, GetRequest, GetResponse, } from "./client.js";
|
|
5
|
-
export type { SomosClinic, SomosClinicResponse, SomosGetClinicBadGatewayError, SomosGetClinicConflictError, SomosGetClinicConflictFailure, SomosGetClinicNotFoundError, SomosGetClinicNotFoundFailure, SomosGetClinicServiceUnavailableError, SomosGetClinicServiceUnavailableFailure, } from "./models.js";
|
|
5
|
+
export type { SomosClinic, SomosClinicResponse, SomosGetClinicBadGatewayError, SomosGetClinicBadGatewayFailure, SomosGetClinicConflictError, SomosGetClinicConflictFailure, SomosGetClinicNotFoundError, SomosGetClinicNotFoundFailure, SomosGetClinicServiceUnavailableError, SomosGetClinicServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure,
|
|
2
|
-
import type { SomosClinicNotServedFailure,
|
|
1
|
+
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, OutcomeUnknownFailure, ProviderUnavailableFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { SomosClinicNotServedFailure, SomosProviderRequestRefusedFailure, SomosSomosNotConfiguredFailure, SomosToolNotAvailableFailure } from "../models.js";
|
|
3
3
|
export interface SomosClinic {
|
|
4
4
|
/**
|
|
5
5
|
* The clinic's SIIPS address.
|
|
@@ -33,7 +33,7 @@ export interface SomosClinicResponse {
|
|
|
33
33
|
/**
|
|
34
34
|
* What every answer carries besides its data or error.
|
|
35
35
|
*/
|
|
36
|
-
metadata:
|
|
36
|
+
metadata: ResponseMetadata;
|
|
37
37
|
success: true;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
@@ -41,13 +41,14 @@ export interface SomosClinicResponse {
|
|
|
41
41
|
*/
|
|
42
42
|
export interface SomosGetClinicBadGatewayError {
|
|
43
43
|
data: null;
|
|
44
|
-
error:
|
|
44
|
+
error: SomosGetClinicBadGatewayFailure;
|
|
45
45
|
/**
|
|
46
46
|
* What every answer carries besides its data or error.
|
|
47
47
|
*/
|
|
48
|
-
metadata:
|
|
48
|
+
metadata: ResponseMetadata;
|
|
49
49
|
success: false;
|
|
50
50
|
}
|
|
51
|
+
export type SomosGetClinicBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
|
|
51
52
|
/**
|
|
52
53
|
* A failed answer.
|
|
53
54
|
*/
|
|
@@ -57,7 +58,7 @@ export interface SomosGetClinicConflictError {
|
|
|
57
58
|
/**
|
|
58
59
|
* What every answer carries besides its data or error.
|
|
59
60
|
*/
|
|
60
|
-
metadata:
|
|
61
|
+
metadata: ResponseMetadata;
|
|
61
62
|
success: false;
|
|
62
63
|
}
|
|
63
64
|
export type SomosGetClinicConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
@@ -70,7 +71,7 @@ export interface SomosGetClinicNotFoundError {
|
|
|
70
71
|
/**
|
|
71
72
|
* What every answer carries besides its data or error.
|
|
72
73
|
*/
|
|
73
|
-
metadata:
|
|
74
|
+
metadata: ResponseMetadata;
|
|
74
75
|
success: false;
|
|
75
76
|
}
|
|
76
77
|
export type SomosGetClinicNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
|
|
@@ -83,7 +84,7 @@ export interface SomosGetClinicServiceUnavailableError {
|
|
|
83
84
|
/**
|
|
84
85
|
* What every answer carries besides its data or error.
|
|
85
86
|
*/
|
|
86
|
-
metadata:
|
|
87
|
+
metadata: ResponseMetadata;
|
|
87
88
|
success: false;
|
|
88
89
|
}
|
|
89
90
|
export type SomosGetClinicServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
|
|
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
-
export type { SomosContract, SomosContractPage, SomosContractPageResponse, SomosListContractsBadGatewayError, SomosListContractsConflictError, SomosListContractsConflictFailure, SomosListContractsNotFoundError, SomosListContractsNotFoundFailure, SomosListContractsServiceUnavailableError, SomosListContractsServiceUnavailableFailure,
|
|
5
|
+
export type { SomosContract, SomosContractPage, SomosContractPageResponse, SomosListContractsBadGatewayError, SomosListContractsBadGatewayFailure, SomosListContractsConflictError, SomosListContractsConflictFailure, SomosListContractsNotFoundError, SomosListContractsNotFoundFailure, SomosListContractsServiceUnavailableError, SomosListContractsServiceUnavailableFailure, } from "./models.js";
|