@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, OutcomeUnknownFailure, ProviderUnavailableFailure, UpstreamUnavailableFailure } from "../../models.js";
|
|
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
|
*/
|
|
@@ -9,10 +9,10 @@ export interface SomosGetSpecialtyRulesBadGatewayError {
|
|
|
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 SomosGetSpecialtyRulesBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
|
|
15
|
+
export type SomosGetSpecialtyRulesBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
|
|
16
16
|
/**
|
|
17
17
|
* A failed answer.
|
|
18
18
|
*/
|
|
@@ -22,7 +22,7 @@ export interface SomosGetSpecialtyRulesConflictError {
|
|
|
22
22
|
/**
|
|
23
23
|
* What every answer carries besides its data or error.
|
|
24
24
|
*/
|
|
25
|
-
metadata:
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
26
|
success: false;
|
|
27
27
|
}
|
|
28
28
|
export type SomosGetSpecialtyRulesConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
@@ -35,7 +35,7 @@ export interface SomosGetSpecialtyRulesNotFoundError {
|
|
|
35
35
|
/**
|
|
36
36
|
* What every answer carries besides its data or error.
|
|
37
37
|
*/
|
|
38
|
-
metadata:
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
39
|
success: false;
|
|
40
40
|
}
|
|
41
41
|
export type SomosGetSpecialtyRulesNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
|
|
@@ -48,7 +48,7 @@ export interface SomosGetSpecialtyRulesServiceUnavailableError {
|
|
|
48
48
|
/**
|
|
49
49
|
* What every answer carries besides its data or error.
|
|
50
50
|
*/
|
|
51
|
-
metadata:
|
|
51
|
+
metadata: ResponseMetadata;
|
|
52
52
|
success: false;
|
|
53
53
|
}
|
|
54
54
|
export type SomosGetSpecialtyRulesServiceUnavailableFailure = 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 { SomosClinicTool, SomosClinicToolPage, SomosClinicToolPageResponse, SomosListToolsBadGatewayError, SomosListToolsConflictError, SomosListToolsConflictFailure, SomosListToolsNotFoundError, SomosListToolsNotFoundFailure, SomosListToolsServiceUnavailableError, SomosListToolsServiceUnavailableFailure, } from "./models.js";
|
|
5
|
+
export type { SomosClinicTool, SomosClinicToolPage, SomosClinicToolPageResponse, SomosListToolsBadGatewayError, SomosListToolsBadGatewayFailure, SomosListToolsConflictError, SomosListToolsConflictFailure, SomosListToolsNotFoundError, SomosListToolsNotFoundFailure, SomosListToolsServiceUnavailableError, SomosListToolsServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure,
|
|
2
|
-
import type { SomosClinicNotServedFailure,
|
|
1
|
+
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, OutcomeUnknownFailure, PageInfo, ProviderUnavailableFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { SomosClinicNotServedFailure, SomosProviderRequestRefusedFailure, SomosSomosNotConfiguredFailure, SomosToolNotAvailableFailure } from "../models.js";
|
|
3
3
|
export interface SomosClinicTool {
|
|
4
4
|
/**
|
|
5
5
|
* The clinic's instructions for this tool.
|
|
@@ -45,7 +45,7 @@ export interface SomosClinicToolPageResponse {
|
|
|
45
45
|
/**
|
|
46
46
|
* What every answer carries besides its data or error.
|
|
47
47
|
*/
|
|
48
|
-
metadata:
|
|
48
|
+
metadata: ResponseMetadata;
|
|
49
49
|
success: true;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -53,13 +53,14 @@ export interface SomosClinicToolPageResponse {
|
|
|
53
53
|
*/
|
|
54
54
|
export interface SomosListToolsBadGatewayError {
|
|
55
55
|
data: null;
|
|
56
|
-
error:
|
|
56
|
+
error: SomosListToolsBadGatewayFailure;
|
|
57
57
|
/**
|
|
58
58
|
* What every answer carries besides its data or error.
|
|
59
59
|
*/
|
|
60
|
-
metadata:
|
|
60
|
+
metadata: ResponseMetadata;
|
|
61
61
|
success: false;
|
|
62
62
|
}
|
|
63
|
+
export type SomosListToolsBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
|
|
63
64
|
/**
|
|
64
65
|
* A failed answer.
|
|
65
66
|
*/
|
|
@@ -69,7 +70,7 @@ export interface SomosListToolsConflictError {
|
|
|
69
70
|
/**
|
|
70
71
|
* What every answer carries besides its data or error.
|
|
71
72
|
*/
|
|
72
|
-
metadata:
|
|
73
|
+
metadata: ResponseMetadata;
|
|
73
74
|
success: false;
|
|
74
75
|
}
|
|
75
76
|
export type SomosListToolsConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
@@ -82,7 +83,7 @@ export interface SomosListToolsNotFoundError {
|
|
|
82
83
|
/**
|
|
83
84
|
* What every answer carries besides its data or error.
|
|
84
85
|
*/
|
|
85
|
-
metadata:
|
|
86
|
+
metadata: ResponseMetadata;
|
|
86
87
|
success: false;
|
|
87
88
|
}
|
|
88
89
|
export type SomosListToolsNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
|
|
@@ -95,7 +96,7 @@ export interface SomosListToolsServiceUnavailableError {
|
|
|
95
96
|
/**
|
|
96
97
|
* What every answer carries besides its data or error.
|
|
97
98
|
*/
|
|
98
|
-
metadata:
|
|
99
|
+
metadata: ResponseMetadata;
|
|
99
100
|
success: false;
|
|
100
101
|
}
|
|
101
102
|
export type SomosListToolsServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type SuraAffiliation, type SuraNoContract, type SuraPendingResult, type SuraRefusal } from "../models.js";
|
|
2
|
+
import { type SuraAffiliation, type SuraNoContract, type SuraPendingResult, type SuraRefusal, type SuraResponseMetadata } from "../models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -50,6 +49,6 @@ export interface LookupRequest {
|
|
|
50
49
|
export interface LookupResponse {
|
|
51
50
|
data: SuraPendingResult | SuraRefusal | SuraAffiliation | SuraNoContract;
|
|
52
51
|
error: null;
|
|
53
|
-
metadata:
|
|
52
|
+
metadata: SuraResponseMetadata;
|
|
54
53
|
success: true;
|
|
55
54
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type SuraAppointmentPage, type SuraBookedAppointment, type SuraCancelledAppointment, type SuraPatientNotFound, type SuraPendingResult, type SuraPreparationAvailable, type SuraPreparationExistingAppointment, type SuraPreparationNoSlots, type SuraPreparationPatientNotFound, type SuraRefusal } from "../models.js";
|
|
2
|
+
import { type SuraAppointmentPage, type SuraBookedAppointment, type SuraCancelledAppointment, type SuraPatientNotFound, type SuraPendingResult, type SuraPreparationAvailable, type SuraPreparationExistingAppointment, type SuraPreparationNoSlots, type SuraPreparationPatientNotFound, type SuraRefusal, type SuraResponseMetadata } from "../models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -124,7 +123,7 @@ export interface CancelRequest {
|
|
|
124
123
|
export interface CancelResponse {
|
|
125
124
|
data: SuraPendingResult | SuraRefusal | SuraPatientNotFound | SuraCancelledAppointment;
|
|
126
125
|
error: null;
|
|
127
|
-
metadata:
|
|
126
|
+
metadata: SuraResponseMetadata;
|
|
128
127
|
success: true;
|
|
129
128
|
}
|
|
130
129
|
export interface CreateRequest {
|
|
@@ -196,7 +195,7 @@ export interface CreateRequest {
|
|
|
196
195
|
export interface CreateResponse {
|
|
197
196
|
data: SuraPendingResult | SuraRefusal | SuraPatientNotFound | SuraBookedAppointment;
|
|
198
197
|
error: null;
|
|
199
|
-
metadata:
|
|
198
|
+
metadata: SuraResponseMetadata;
|
|
200
199
|
success: true;
|
|
201
200
|
}
|
|
202
201
|
export interface ListRequest {
|
|
@@ -248,7 +247,7 @@ export interface ListRequest {
|
|
|
248
247
|
export interface ListResponse {
|
|
249
248
|
data: SuraPendingResult | SuraRefusal | SuraPatientNotFound | SuraAppointmentPage;
|
|
250
249
|
error: null;
|
|
251
|
-
metadata:
|
|
250
|
+
metadata: SuraResponseMetadata;
|
|
252
251
|
success: true;
|
|
253
252
|
}
|
|
254
253
|
export interface PrepareRequest {
|
|
@@ -354,6 +353,6 @@ export interface PrepareRequest {
|
|
|
354
353
|
export interface PrepareResponse {
|
|
355
354
|
data: SuraPendingResult | SuraRefusal | SuraPreparationPatientNotFound | SuraPatientNotFound | SuraPreparationExistingAppointment | SuraPreparationAvailable | SuraPreparationNoSlots;
|
|
356
355
|
error: null;
|
|
357
|
-
metadata:
|
|
356
|
+
metadata: SuraResponseMetadata;
|
|
358
357
|
success: true;
|
|
359
358
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type SuraAuthorization, type SuraPendingResult, type SuraRefusal } from "../models.js";
|
|
2
|
+
import { type SuraAuthorization, type SuraPendingResult, type SuraRefusal, type SuraResponseMetadata } from "../models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -60,6 +59,6 @@ export interface LookupRequest {
|
|
|
60
59
|
export interface LookupResponse {
|
|
61
60
|
data: SuraPendingResult | SuraRefusal | SuraAuthorization;
|
|
62
61
|
error: null;
|
|
63
|
-
metadata:
|
|
62
|
+
metadata: SuraResponseMetadata;
|
|
64
63
|
success: true;
|
|
65
64
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type SuraAvailability, type SuraPatientNotFound, type SuraPendingResult, type SuraRefusal } from "../models.js";
|
|
2
|
+
import { type SuraAvailability, type SuraPatientNotFound, type SuraPendingResult, type SuraRefusal, type SuraResponseMetadata } from "../models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -84,6 +83,6 @@ export interface ListRequest {
|
|
|
84
83
|
export interface ListResponse {
|
|
85
84
|
data: SuraPendingResult | SuraRefusal | SuraPatientNotFound | SuraAvailability;
|
|
86
85
|
error: null;
|
|
87
|
-
metadata:
|
|
86
|
+
metadata: SuraResponseMetadata;
|
|
88
87
|
success: true;
|
|
89
88
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type { DeletedObject
|
|
2
|
+
import type { DeletedObject } from "../../models.js";
|
|
3
|
+
import type { SuraResponseMetadata } from "../models.js";
|
|
3
4
|
import { type SuraConnection, type SuraConnectionPage, type SuraInstitution, type SuraLoginVerification } from "./models.js";
|
|
4
5
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
6
|
/**
|
|
@@ -65,7 +66,7 @@ export interface DeleteRequest {
|
|
|
65
66
|
export interface DeleteResponse {
|
|
66
67
|
data: DeletedObject;
|
|
67
68
|
error: null;
|
|
68
|
-
metadata:
|
|
69
|
+
metadata: SuraResponseMetadata;
|
|
69
70
|
success: true;
|
|
70
71
|
}
|
|
71
72
|
export interface GetRequest {
|
|
@@ -88,7 +89,7 @@ export interface GetResponse {
|
|
|
88
89
|
*/
|
|
89
90
|
data: SuraConnection;
|
|
90
91
|
error: null;
|
|
91
|
-
metadata:
|
|
92
|
+
metadata: SuraResponseMetadata;
|
|
92
93
|
success: true;
|
|
93
94
|
}
|
|
94
95
|
export interface ListRequest {
|
|
@@ -116,7 +117,7 @@ export interface ListRequest {
|
|
|
116
117
|
export interface ListResponse {
|
|
117
118
|
data: SuraConnectionPage;
|
|
118
119
|
error: null;
|
|
119
|
-
metadata:
|
|
120
|
+
metadata: SuraResponseMetadata;
|
|
120
121
|
success: true;
|
|
121
122
|
}
|
|
122
123
|
export interface VerifyRequest {
|
|
@@ -177,6 +178,6 @@ export interface VerifyResponse {
|
|
|
177
178
|
status: "rejected";
|
|
178
179
|
};
|
|
179
180
|
error: null;
|
|
180
|
-
metadata:
|
|
181
|
+
metadata: SuraResponseMetadata;
|
|
181
182
|
success: true;
|
|
182
183
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type SuraCopayHistory, type SuraNoCopayHistory, type SuraPendingResult, type SuraRefusal } from "../models.js";
|
|
2
|
+
import { type SuraCopayHistory, type SuraNoCopayHistory, type SuraPendingResult, type SuraRefusal, type SuraResponseMetadata } from "../models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -55,6 +54,6 @@ export interface ListRequest {
|
|
|
55
54
|
export interface ListResponse {
|
|
56
55
|
data: SuraPendingResult | SuraRefusal | SuraCopayHistory | SuraNoCopayHistory;
|
|
57
56
|
error: null;
|
|
58
|
-
metadata:
|
|
57
|
+
metadata: SuraResponseMetadata;
|
|
59
58
|
success: true;
|
|
60
59
|
}
|
package/dist/sura/index.d.ts
CHANGED
|
@@ -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, } from "./client.js";
|
|
5
|
-
export type { SuraAffiliation, SuraAppointment, SuraAppointmentPage, SuraAuthorization, SuraAvailability, SuraAvailabilityPatient, SuraAvailableDay, SuraBookedAppointment, SuraCancelledAppointment, SuraCopayEntry, SuraCopayHistory, SuraFailureResponse, SuraNoContract, SuraNoCopayHistory, SuraOpening, SuraPatient, SuraPatientFound, SuraPatientNotFound, SuraPendingResult, SuraPreparationAvailable, SuraPreparationExistingAppointment, SuraPreparationNoSlots, SuraPreparationPatientNotFound, SuraRefusal, SuraSearchedDay, SuraService, SuraServicePage, } from "./models.js";
|
|
5
|
+
export type { SuraAffiliation, SuraAppointment, SuraAppointmentPage, SuraAuthorization, SuraAvailability, SuraAvailabilityPatient, SuraAvailableDay, SuraBookedAppointment, SuraCancelledAppointment, SuraCopayEntry, SuraCopayHistory, SuraFailureResponse, SuraNoContract, SuraNoCopayHistory, SuraOpening, SuraPatient, SuraPatientFound, SuraPatientNotFound, SuraPendingResult, SuraPreparationAvailable, SuraPreparationExistingAppointment, SuraPreparationNoSlots, SuraPreparationPatientNotFound, SuraRefusal, SuraResponseMetadata, SuraSearchedDay, SuraService, SuraServicePage, } from "./models.js";
|
package/dist/sura/models.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Failure, PageInfo,
|
|
1
|
+
import type { Failure, PageInfo, ValidationIssue } from "../models.js";
|
|
2
2
|
export interface SuraAffiliation {
|
|
3
3
|
active: true;
|
|
4
4
|
affiliateType: string;
|
|
@@ -321,7 +321,7 @@ export interface SuraFailureResponse {
|
|
|
321
321
|
message: "The organization has no SURA connection that can run this operation.";
|
|
322
322
|
retryable: false;
|
|
323
323
|
});
|
|
324
|
-
metadata:
|
|
324
|
+
metadata: SuraResponseMetadata;
|
|
325
325
|
success: false;
|
|
326
326
|
}
|
|
327
327
|
export interface SuraNoContract {
|
|
@@ -574,6 +574,12 @@ export interface SuraRefusal {
|
|
|
574
574
|
times?: string[];
|
|
575
575
|
today?: string;
|
|
576
576
|
}
|
|
577
|
+
export interface SuraResponseMetadata {
|
|
578
|
+
/**
|
|
579
|
+
* Request correlation identifier, also sent as X-Request-Id.
|
|
580
|
+
*/
|
|
581
|
+
requestId: string;
|
|
582
|
+
}
|
|
577
583
|
export interface SuraSearchedDay {
|
|
578
584
|
date: string | null;
|
|
579
585
|
professional: string | null;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type SuraAffiliation, type SuraAppointmentPage, type SuraAuthorization, type SuraAvailability, type SuraBookedAppointment, type SuraCancelledAppointment, type SuraCopayHistory, type SuraNoContract, type SuraNoCopayHistory, type SuraPatientFound, type SuraPatientNotFound, type SuraPendingResult, type SuraPreparationAvailable, type SuraPreparationExistingAppointment, type SuraPreparationNoSlots, type SuraPreparationPatientNotFound, type SuraRefusal, type SuraServicePage } from "../models.js";
|
|
2
|
+
import { type SuraAffiliation, type SuraAppointmentPage, type SuraAuthorization, type SuraAvailability, type SuraBookedAppointment, type SuraCancelledAppointment, type SuraCopayHistory, type SuraNoContract, type SuraNoCopayHistory, type SuraPatientFound, type SuraPatientNotFound, type SuraPendingResult, type SuraPreparationAvailable, type SuraPreparationExistingAppointment, type SuraPreparationNoSlots, type SuraPreparationPatientNotFound, type SuraRefusal, type SuraResponseMetadata, type SuraServicePage } from "../models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -49,6 +48,6 @@ export interface GetRequest {
|
|
|
49
48
|
export interface GetResponse {
|
|
50
49
|
data: SuraPendingResult | SuraRefusal | SuraPatientNotFound | SuraPreparationPatientNotFound | SuraPatientFound | SuraServicePage | SuraAvailability | SuraPreparationExistingAppointment | SuraPreparationAvailable | SuraPreparationNoSlots | SuraBookedAppointment | SuraAppointmentPage | SuraCancelledAppointment | SuraAffiliation | SuraNoContract | SuraAuthorization | SuraCopayHistory | SuraNoCopayHistory;
|
|
51
50
|
error: null;
|
|
52
|
-
metadata:
|
|
51
|
+
metadata: SuraResponseMetadata;
|
|
53
52
|
success: true;
|
|
54
53
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type SuraPatientFound, type SuraPatientNotFound, type SuraPendingResult, type SuraRefusal } from "../models.js";
|
|
2
|
+
import { type SuraPatientFound, type SuraPatientNotFound, type SuraPendingResult, type SuraRefusal, type SuraResponseMetadata } from "../models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -61,6 +60,6 @@ export interface LookupRequest {
|
|
|
61
60
|
export interface LookupResponse {
|
|
62
61
|
data: SuraPendingResult | SuraRefusal | SuraPatientNotFound | SuraPatientFound;
|
|
63
62
|
error: null;
|
|
64
|
-
metadata:
|
|
63
|
+
metadata: SuraResponseMetadata;
|
|
65
64
|
success: true;
|
|
66
65
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type SuraPendingResult, type SuraRefusal } from "../models.js";
|
|
2
|
+
import { type SuraPendingResult, type SuraRefusal, type SuraResponseMetadata } from "../models.js";
|
|
4
3
|
import type { SuraProfessionalPage } from "./models.js";
|
|
5
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
6
5
|
/**
|
|
@@ -75,6 +74,6 @@ export interface ListRequest {
|
|
|
75
74
|
export interface ListResponse {
|
|
76
75
|
data: SuraPendingResult | SuraRefusal | SuraProfessionalPage;
|
|
77
76
|
error: null;
|
|
78
|
-
metadata:
|
|
77
|
+
metadata: SuraResponseMetadata;
|
|
79
78
|
success: true;
|
|
80
79
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type SuraPendingResult, type SuraRefusal, type SuraServicePage } from "../models.js";
|
|
2
|
+
import { type SuraPendingResult, type SuraRefusal, type SuraResponseMetadata, type SuraServicePage } from "../models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -69,6 +68,6 @@ export interface ListRequest {
|
|
|
69
68
|
export interface ListResponse {
|
|
70
69
|
data: SuraPendingResult | SuraRefusal | SuraServicePage;
|
|
71
70
|
error: null;
|
|
72
|
-
metadata:
|
|
71
|
+
metadata: SuraResponseMetadata;
|
|
73
72
|
success: true;
|
|
74
73
|
}
|
|
@@ -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 { VisoftAppointmentNotCancellableFailure, VisoftAppointmentReferenceInvalidFailure, VisoftAppointmentRequestExistsFailure, VisoftAppointmentRequestExistsFailureData, VisoftBooking, VisoftBookingRefusedFailure, VisoftBookingRefusedFailureData, VisoftBookingResponse,
|
|
5
|
+
export type { VisoftAppointmentNotCancellableFailure, VisoftAppointmentReferenceInvalidFailure, VisoftAppointmentRequestExistsFailure, VisoftAppointmentRequestExistsFailureData, VisoftBooking, VisoftBookingRefusedFailure, VisoftBookingRefusedFailureData, VisoftBookingResponse, VisoftCancelAppointmentBody, VisoftCancelAppointmentConflictError, VisoftCancelAppointmentConflictFailure, VisoftCancelAppointmentUnprocessableContentError, VisoftCancelAppointmentUnprocessableContentFailure, VisoftCancelNoticeRequiredFailure, VisoftCancelTimeUnverifiedFailure, VisoftCancellation, VisoftCancellationRefusedFailure, VisoftCancellationRefusedFailureData, VisoftCancellationResponse, VisoftCreateAppointmentBody, VisoftCreateAppointmentConflictError, VisoftCreateAppointmentConflictFailure, VisoftCreateAppointmentUnprocessableContentError, VisoftCreateAppointmentUnprocessableContentFailure, } from "./models.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { VisoftAgencyNotServedFailure
|
|
1
|
+
import type { ConnectionNotConfiguredFailure, CredentialsRejectedFailure, Empty, ResponseMetadata } from "../../models.js";
|
|
2
|
+
import type { VisoftAgencyNotServedFailure } from "../models.js";
|
|
3
3
|
/**
|
|
4
4
|
* The appointment is no longer cancellable in the patient's current agenda;
|
|
5
5
|
* read the patient again. Nothing was cancelled.
|
|
@@ -129,21 +129,9 @@ export interface VisoftBookingResponse {
|
|
|
129
129
|
/**
|
|
130
130
|
* What every answer carries besides its data or error.
|
|
131
131
|
*/
|
|
132
|
-
metadata:
|
|
132
|
+
metadata: ResponseMetadata;
|
|
133
133
|
success: true;
|
|
134
134
|
}
|
|
135
|
-
/**
|
|
136
|
-
* A failed answer.
|
|
137
|
-
*/
|
|
138
|
-
export interface VisoftCancelAppointmentBadGatewayError {
|
|
139
|
-
data: null;
|
|
140
|
-
error: CancelAppointmentBadGatewayFailure;
|
|
141
|
-
/**
|
|
142
|
-
* What every answer carries besides its data or error.
|
|
143
|
-
*/
|
|
144
|
-
metadata: VisoftResponseMetadata;
|
|
145
|
-
success: false;
|
|
146
|
-
}
|
|
147
135
|
export interface VisoftCancelAppointmentBody {
|
|
148
136
|
/**
|
|
149
137
|
* The connection to run on. Optional when the organization has one Visoft
|
|
@@ -195,7 +183,7 @@ export interface VisoftCancelAppointmentConflictError {
|
|
|
195
183
|
/**
|
|
196
184
|
* What every answer carries besides its data or error.
|
|
197
185
|
*/
|
|
198
|
-
metadata:
|
|
186
|
+
metadata: ResponseMetadata;
|
|
199
187
|
success: false;
|
|
200
188
|
}
|
|
201
189
|
export type VisoftCancelAppointmentConflictFailure = ConnectionNotConfiguredFailure | VisoftAppointmentNotCancellableFailure | VisoftCancelNoticeRequiredFailure | VisoftCancelTimeUnverifiedFailure;
|
|
@@ -208,7 +196,7 @@ export interface VisoftCancelAppointmentUnprocessableContentError {
|
|
|
208
196
|
/**
|
|
209
197
|
* What every answer carries besides its data or error.
|
|
210
198
|
*/
|
|
211
|
-
metadata:
|
|
199
|
+
metadata: ResponseMetadata;
|
|
212
200
|
success: false;
|
|
213
201
|
}
|
|
214
202
|
export type VisoftCancelAppointmentUnprocessableContentFailure = CredentialsRejectedFailure | VisoftAgencyNotServedFailure | VisoftAppointmentReferenceInvalidFailure | VisoftCancellationRefusedFailure;
|
|
@@ -307,21 +295,9 @@ export interface VisoftCancellationResponse {
|
|
|
307
295
|
/**
|
|
308
296
|
* What every answer carries besides its data or error.
|
|
309
297
|
*/
|
|
310
|
-
metadata:
|
|
298
|
+
metadata: ResponseMetadata;
|
|
311
299
|
success: true;
|
|
312
300
|
}
|
|
313
|
-
/**
|
|
314
|
-
* A failed answer.
|
|
315
|
-
*/
|
|
316
|
-
export interface VisoftCreateAppointmentBadGatewayError {
|
|
317
|
-
data: null;
|
|
318
|
-
error: CreateAppointmentBadGatewayFailure;
|
|
319
|
-
/**
|
|
320
|
-
* What every answer carries besides its data or error.
|
|
321
|
-
*/
|
|
322
|
-
metadata: VisoftResponseMetadata;
|
|
323
|
-
success: false;
|
|
324
|
-
}
|
|
325
301
|
export interface VisoftCreateAppointmentBody {
|
|
326
302
|
/**
|
|
327
303
|
* The connection to run on. Optional when the organization has one Visoft
|
|
@@ -368,7 +344,7 @@ export interface VisoftCreateAppointmentConflictError {
|
|
|
368
344
|
/**
|
|
369
345
|
* What every answer carries besides its data or error.
|
|
370
346
|
*/
|
|
371
|
-
metadata:
|
|
347
|
+
metadata: ResponseMetadata;
|
|
372
348
|
success: false;
|
|
373
349
|
}
|
|
374
350
|
export type VisoftCreateAppointmentConflictFailure = ConnectionNotConfiguredFailure | VisoftAppointmentRequestExistsFailure;
|
|
@@ -381,7 +357,7 @@ export interface VisoftCreateAppointmentUnprocessableContentError {
|
|
|
381
357
|
/**
|
|
382
358
|
* What every answer carries besides its data or error.
|
|
383
359
|
*/
|
|
384
|
-
metadata:
|
|
360
|
+
metadata: ResponseMetadata;
|
|
385
361
|
success: false;
|
|
386
362
|
}
|
|
387
363
|
export type VisoftCreateAppointmentUnprocessableContentFailure = CredentialsRejectedFailure | VisoftAgencyNotServedFailure | VisoftBookingRefusedFailure;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConnectionNotFoundFailure, CredentialsRejectedFailure, Empty, OutcomeUnknownFailure, ProviderUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { VisoftAgencyNotServedFailure, VisoftProfessional
|
|
1
|
+
import type { ConnectionNotFoundFailure, CredentialsRejectedFailure, Empty, OutcomeUnknownFailure, ProviderUnavailableFailure, ResponseMetadata } from "../../models.js";
|
|
2
|
+
import type { VisoftAgencyNotServedFailure, VisoftProfessional } from "../models.js";
|
|
3
3
|
export interface VisoftAvailability {
|
|
4
4
|
/**
|
|
5
5
|
* The day the search started, in the clinic: YYYY-MM-DD.
|
|
@@ -21,7 +21,7 @@ export interface VisoftAvailabilityResponse {
|
|
|
21
21
|
/**
|
|
22
22
|
* What every answer carries besides its data or error.
|
|
23
23
|
*/
|
|
24
|
-
metadata:
|
|
24
|
+
metadata: ResponseMetadata;
|
|
25
25
|
success: true;
|
|
26
26
|
}
|
|
27
27
|
export interface VisoftAvailableSlot {
|
|
@@ -82,7 +82,7 @@ export interface VisoftLookupAvailabilityBadGatewayError {
|
|
|
82
82
|
/**
|
|
83
83
|
* What every answer carries besides its data or error.
|
|
84
84
|
*/
|
|
85
|
-
metadata:
|
|
85
|
+
metadata: ResponseMetadata;
|
|
86
86
|
success: false;
|
|
87
87
|
}
|
|
88
88
|
export type VisoftLookupAvailabilityBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
|
|
@@ -134,7 +134,7 @@ export interface VisoftLookupAvailabilityNotFoundError {
|
|
|
134
134
|
/**
|
|
135
135
|
* What every answer carries besides its data or error.
|
|
136
136
|
*/
|
|
137
|
-
metadata:
|
|
137
|
+
metadata: ResponseMetadata;
|
|
138
138
|
success: false;
|
|
139
139
|
}
|
|
140
140
|
export type VisoftLookupAvailabilityNotFoundFailure = ConnectionNotFoundFailure | VisoftProfessionalNotFoundFailure;
|
|
@@ -147,7 +147,7 @@ export interface VisoftLookupAvailabilityUnprocessableContentError {
|
|
|
147
147
|
/**
|
|
148
148
|
* What every answer carries besides its data or error.
|
|
149
149
|
*/
|
|
150
|
-
metadata:
|
|
150
|
+
metadata: ResponseMetadata;
|
|
151
151
|
success: false;
|
|
152
152
|
}
|
|
153
153
|
export type VisoftLookupAvailabilityUnprocessableContentFailure = CredentialsRejectedFailure | VisoftAgencyNotServedFailure;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ResponseMetadata } from "../../models.js";
|
|
2
|
+
import type { VisoftClinic } from "../models.js";
|
|
2
3
|
/**
|
|
3
4
|
* A successful answer.
|
|
4
5
|
*/
|
|
@@ -8,6 +9,6 @@ export interface VisoftClinicResponse {
|
|
|
8
9
|
/**
|
|
9
10
|
* What every answer carries besides its data or error.
|
|
10
11
|
*/
|
|
11
|
-
metadata:
|
|
12
|
+
metadata: ResponseMetadata;
|
|
12
13
|
success: true;
|
|
13
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
2
|
-
import type { VisoftClinic
|
|
1
|
+
import type { PageInfo, ResponseMetadata } from "../../models.js";
|
|
2
|
+
import type { VisoftClinic } from "../models.js";
|
|
3
3
|
export interface VisoftClinicPage {
|
|
4
4
|
/**
|
|
5
5
|
* Items admitted by this resource contract within the verified organization.
|
|
@@ -23,6 +23,6 @@ export interface VisoftClinicPageResponse {
|
|
|
23
23
|
/**
|
|
24
24
|
* What every answer carries besides its data or error.
|
|
25
25
|
*/
|
|
26
|
-
metadata:
|
|
26
|
+
metadata: ResponseMetadata;
|
|
27
27
|
success: true;
|
|
28
28
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import
|
|
2
|
+
import type { DeletedObjectResponse } from "../../models.js";
|
|
3
|
+
import { type VisoftConnectionPageResponse, type VisoftConnectionResponse, type VisoftVerifyConnectionBody, type VisoftVerifyConnectionResultResponse } from "./models.js";
|
|
3
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
4
5
|
/**
|
|
5
6
|
* The URL the paths of the API are relative to.
|
|
@@ -55,7 +56,7 @@ export interface DeleteRequest {
|
|
|
55
56
|
*/
|
|
56
57
|
connectionId: string;
|
|
57
58
|
}
|
|
58
|
-
export type DeleteResponse =
|
|
59
|
+
export type DeleteResponse = DeletedObjectResponse;
|
|
59
60
|
export interface GetRequest {
|
|
60
61
|
/**
|
|
61
62
|
* The connection's id, as Account lists it (con_…).
|
|
@@ -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, DeleteRequest, DeleteResponse, GetRequest, GetResponse, ListRequest, ListResponse, VerifyRequest, VerifyResponse, } from "./client.js";
|
|
5
|
-
export type { VisoftConnection, VisoftConnectionPage, VisoftConnectionPageResponse, VisoftConnectionResponse,
|
|
5
|
+
export type { VisoftConnection, VisoftConnectionPage, VisoftConnectionPageResponse, VisoftConnectionResponse, VisoftVerifyConnectionBody, VisoftVerifyConnectionResult, VisoftVerifyConnectionResultResponse, } from "./models.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { VisoftResponseMetadata } from "../models.js";
|
|
1
|
+
import type { PageInfo, ResponseMetadata } from "../../models.js";
|
|
3
2
|
export interface VisoftConnection {
|
|
4
3
|
/**
|
|
5
4
|
* The clinic's name.
|
|
@@ -75,7 +74,7 @@ export interface VisoftConnectionPageResponse {
|
|
|
75
74
|
/**
|
|
76
75
|
* What every answer carries besides its data or error.
|
|
77
76
|
*/
|
|
78
|
-
metadata:
|
|
77
|
+
metadata: ResponseMetadata;
|
|
79
78
|
success: true;
|
|
80
79
|
}
|
|
81
80
|
/**
|
|
@@ -90,19 +89,7 @@ export interface VisoftConnectionResponse {
|
|
|
90
89
|
/**
|
|
91
90
|
* What every answer carries besides its data or error.
|
|
92
91
|
*/
|
|
93
|
-
metadata:
|
|
94
|
-
success: true;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* A successful answer.
|
|
98
|
-
*/
|
|
99
|
-
export interface VisoftDeletedObjectResponse {
|
|
100
|
-
data: DeletedObject;
|
|
101
|
-
error: null;
|
|
102
|
-
/**
|
|
103
|
-
* What every answer carries besides its data or error.
|
|
104
|
-
*/
|
|
105
|
-
metadata: VisoftResponseMetadata;
|
|
92
|
+
metadata: ResponseMetadata;
|
|
106
93
|
success: true;
|
|
107
94
|
}
|
|
108
95
|
export interface VisoftVerifyConnectionBody {
|
|
@@ -152,7 +139,7 @@ export interface VisoftVerifyConnectionResultResponse {
|
|
|
152
139
|
/**
|
|
153
140
|
* What every answer carries besides its data or error.
|
|
154
141
|
*/
|
|
155
|
-
metadata:
|
|
142
|
+
metadata: ResponseMetadata;
|
|
156
143
|
success: true;
|
|
157
144
|
}
|
|
158
145
|
export declare const VisoftConnectionCodec: 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, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
-
export type { VisoftContract, VisoftContractPage, VisoftContractPageResponse,
|
|
5
|
+
export type { VisoftContract, VisoftContractPage, VisoftContractPageResponse, VisoftListContractsUnprocessableContentError, VisoftListContractsUnprocessableContentFailure, } from "./models.js";
|