@arbol-ai/sdk 5.37.0 → 5.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/comfachoco/affiliations/client.d.ts +3 -1
- package/dist/comfachoco/affiliations/index.d.ts +1 -1
- package/dist/comfachoco/affiliations/models.d.ts +8 -1
- package/dist/oficlinic/affiliateTypes/client.d.ts +55 -0
- package/dist/oficlinic/affiliateTypes/client.js +18 -0
- package/dist/oficlinic/affiliateTypes/index.d.ts +5 -0
- package/dist/oficlinic/affiliateTypes/index.js +4 -0
- package/dist/oficlinic/affiliateTypes/models.d.ts +135 -0
- package/dist/oficlinic/affiliateTypes/models.js +3 -0
- package/dist/oficlinic/appointments/client.d.ts +69 -5
- package/dist/oficlinic/appointments/client.js +17 -0
- package/dist/oficlinic/appointments/index.d.ts +2 -2
- package/dist/oficlinic/appointments/models.d.ts +591 -5
- package/dist/oficlinic/appointments/models.js +13 -1
- package/dist/oficlinic/bookingDays/client.d.ts +64 -0
- package/dist/oficlinic/bookingDays/client.js +18 -0
- package/dist/oficlinic/bookingDays/index.d.ts +5 -0
- package/dist/oficlinic/bookingDays/index.js +4 -0
- package/dist/oficlinic/bookingDays/models.d.ts +142 -0
- package/dist/oficlinic/bookingDays/models.js +3 -0
- package/dist/oficlinic/bookingProfessionals/client.d.ts +76 -0
- package/dist/oficlinic/bookingProfessionals/client.js +19 -0
- package/dist/oficlinic/bookingProfessionals/index.d.ts +5 -0
- package/dist/oficlinic/bookingProfessionals/index.js +4 -0
- package/dist/oficlinic/bookingProfessionals/models.d.ts +159 -0
- package/dist/oficlinic/bookingProfessionals/models.js +12 -0
- package/dist/oficlinic/bookingRooms/client.d.ts +60 -0
- package/dist/oficlinic/bookingRooms/client.js +18 -0
- package/dist/oficlinic/bookingRooms/index.d.ts +5 -0
- package/dist/oficlinic/bookingRooms/index.js +4 -0
- package/dist/oficlinic/bookingRooms/models.d.ts +136 -0
- package/dist/oficlinic/bookingRooms/models.js +3 -0
- package/dist/oficlinic/bookingSlots/client.d.ts +63 -0
- package/dist/oficlinic/bookingSlots/client.js +19 -0
- package/dist/oficlinic/bookingSlots/index.d.ts +5 -0
- package/dist/oficlinic/bookingSlots/index.js +4 -0
- package/dist/oficlinic/bookingSlots/models.d.ts +167 -0
- package/dist/oficlinic/bookingSlots/models.js +13 -0
- package/dist/oficlinic/cancellationReasons/client.d.ts +49 -0
- package/dist/oficlinic/cancellationReasons/client.js +18 -0
- package/dist/oficlinic/cancellationReasons/index.d.ts +5 -0
- package/dist/oficlinic/cancellationReasons/index.js +4 -0
- package/dist/oficlinic/cancellationReasons/models.d.ts +114 -0
- package/dist/oficlinic/cancellationReasons/models.js +3 -0
- package/dist/oficlinic/client.d.ts +26 -0
- package/dist/oficlinic/client.js +65 -0
- package/dist/oficlinic/index.d.ts +1 -1
- package/dist/oficlinic/models.d.ts +154 -0
- package/dist/oficlinic/patients/client.d.ts +2 -1
- package/dist/oficlinic/patients/models.d.ts +8 -2
- package/dist/oficlinic/payerContracts/client.d.ts +55 -0
- package/dist/oficlinic/payerContracts/client.js +18 -0
- package/dist/oficlinic/payerContracts/index.d.ts +5 -0
- package/dist/oficlinic/payerContracts/index.js +4 -0
- package/dist/oficlinic/payerContracts/models.d.ts +154 -0
- package/dist/oficlinic/payerContracts/models.js +3 -0
- package/dist/oficlinic/payerPlans/client.d.ts +54 -0
- package/dist/oficlinic/payerPlans/client.js +18 -0
- package/dist/oficlinic/payerPlans/index.d.ts +5 -0
- package/dist/oficlinic/payerPlans/index.js +4 -0
- package/dist/oficlinic/payerPlans/models.d.ts +138 -0
- package/dist/oficlinic/payerPlans/models.js +3 -0
- package/dist/oficlinic/payerSubplans/client.d.ts +58 -0
- package/dist/oficlinic/payerSubplans/client.js +18 -0
- package/dist/oficlinic/payerSubplans/index.d.ts +5 -0
- package/dist/oficlinic/payerSubplans/index.js +4 -0
- package/dist/oficlinic/payerSubplans/models.d.ts +150 -0
- package/dist/oficlinic/payerSubplans/models.js +3 -0
- package/dist/oficlinic/payers/client.d.ts +10 -3
- package/dist/oficlinic/payers/client.js +1 -1
- package/dist/oficlinic/payers/index.d.ts +1 -1
- package/dist/oficlinic/payers/models.d.ts +14 -13
- package/dist/oficlinic/professionals/client.d.ts +12 -4
- package/dist/oficlinic/professionals/client.js +1 -1
- package/dist/oficlinic/professionals/index.d.ts +1 -1
- package/dist/oficlinic/professionals/models.d.ts +14 -13
- package/dist/oficlinic/programs/client.d.ts +54 -0
- package/dist/oficlinic/programs/client.js +18 -0
- package/dist/oficlinic/programs/index.d.ts +5 -0
- package/dist/oficlinic/programs/index.js +4 -0
- package/dist/oficlinic/programs/models.d.ts +133 -0
- package/dist/oficlinic/programs/models.js +3 -0
- package/dist/oficlinic/regimes/client.d.ts +50 -0
- package/dist/oficlinic/regimes/client.js +18 -0
- package/dist/oficlinic/regimes/index.d.ts +5 -0
- package/dist/oficlinic/regimes/index.js +4 -0
- package/dist/oficlinic/regimes/models.d.ts +117 -0
- package/dist/oficlinic/regimes/models.js +3 -0
- package/dist/oficlinic/relationships/client.d.ts +49 -0
- package/dist/oficlinic/relationships/client.js +18 -0
- package/dist/oficlinic/relationships/index.d.ts +5 -0
- package/dist/oficlinic/relationships/index.js +4 -0
- package/dist/oficlinic/relationships/models.d.ts +118 -0
- package/dist/oficlinic/relationships/models.js +3 -0
- package/dist/oficlinic/serviceCatalog/client.d.ts +50 -0
- package/dist/oficlinic/serviceCatalog/client.js +27 -0
- package/dist/oficlinic/serviceCatalog/index.d.ts +5 -0
- package/dist/oficlinic/serviceCatalog/index.js +4 -0
- package/dist/oficlinic/serviceCatalog/models.d.ts +126 -0
- package/dist/oficlinic/serviceCatalog/models.js +13 -0
- package/dist/oficlinic/services/client.d.ts +44 -3
- package/dist/oficlinic/services/client.js +10 -1
- package/dist/oficlinic/services/index.d.ts +2 -2
- package/dist/oficlinic/services/models.d.ts +311 -14
- package/dist/oficlinic/services/models.js +10 -1
- package/package.json +3 -3
|
@@ -14,7 +14,9 @@ export interface Client {
|
|
|
14
14
|
* connection. Returns found only for an exact source identity and not_found
|
|
15
15
|
* only for an explicit source negative. Provider failures are never evidence
|
|
16
16
|
* of non-affiliation. This does not verify the identity of the person
|
|
17
|
-
* presenting the document or determine eligibility.
|
|
17
|
+
* presenting the document or determine eligibility. Set agentMode to true to
|
|
18
|
+
* receive the same observation as one concise Spanish text in the text field
|
|
19
|
+
* instead of structured fields; failures are unchanged.
|
|
18
20
|
*/
|
|
19
21
|
lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
20
22
|
}
|
|
@@ -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 { ComfachocoComfachocoAffiliationFound, ComfachocoComfachocoAffiliationNotFound, ComfachocoComfachocoMember, ComfachocoLookupAffiliationBadGatewayError, ComfachocoLookupAffiliationBadGatewayFailure, ComfachocoLookupAffiliationBody, ComfachocoLookupAffiliationResult, ComfachocoLookupAffiliationResultResponse, ComfachocoLookupAffiliationServiceUnavailableError, ComfachocoLookupAffiliationServiceUnavailableFailure, ComfachocoLookupAffiliationTooManyRequestsError, ComfachocoLookupAffiliationTooManyRequestsFailure, ComfachocoLookupAffiliationUnprocessableContentError, ComfachocoLookupAffiliationUnprocessableContentFailure, } from "./models.js";
|
|
5
|
+
export type { ComfachocoComfachocoAffiliationFound, ComfachocoComfachocoAffiliationNotFound, ComfachocoComfachocoAffiliationText, ComfachocoComfachocoMember, ComfachocoLookupAffiliationBadGatewayError, ComfachocoLookupAffiliationBadGatewayFailure, ComfachocoLookupAffiliationBody, ComfachocoLookupAffiliationResult, ComfachocoLookupAffiliationResultResponse, ComfachocoLookupAffiliationServiceUnavailableError, ComfachocoLookupAffiliationServiceUnavailableFailure, ComfachocoLookupAffiliationTooManyRequestsError, ComfachocoLookupAffiliationTooManyRequestsFailure, ComfachocoLookupAffiliationUnprocessableContentError, ComfachocoLookupAffiliationUnprocessableContentFailure, } from "./models.js";
|
|
@@ -10,6 +10,9 @@ export interface ComfachocoComfachocoAffiliationNotFound {
|
|
|
10
10
|
observedAt: Temporal.Instant;
|
|
11
11
|
status: "not_found";
|
|
12
12
|
}
|
|
13
|
+
export interface ComfachocoComfachocoAffiliationText {
|
|
14
|
+
text: string;
|
|
15
|
+
}
|
|
13
16
|
export interface ComfachocoComfachocoMember {
|
|
14
17
|
affiliationStatus: string;
|
|
15
18
|
documentNumber: string;
|
|
@@ -32,6 +35,10 @@ export interface ComfachocoLookupAffiliationBadGatewayError {
|
|
|
32
35
|
}
|
|
33
36
|
export type ComfachocoLookupAffiliationBadGatewayFailure = OutcomeUnknownFailure | ProviderProtocolChangedFailure | ComfachocoMemberIdentityMismatchFailure;
|
|
34
37
|
export interface ComfachocoLookupAffiliationBody {
|
|
38
|
+
/**
|
|
39
|
+
* Answer with one concise Spanish text instead of structured fields.
|
|
40
|
+
*/
|
|
41
|
+
agentMode?: boolean;
|
|
35
42
|
connectionId?: string;
|
|
36
43
|
documentNumber: string;
|
|
37
44
|
/**
|
|
@@ -39,7 +46,7 @@ export interface ComfachocoLookupAffiliationBody {
|
|
|
39
46
|
*/
|
|
40
47
|
documentType: "CC";
|
|
41
48
|
}
|
|
42
|
-
export type ComfachocoLookupAffiliationResult = ComfachocoComfachocoAffiliationNotFound | ComfachocoComfachocoAffiliationFound;
|
|
49
|
+
export type ComfachocoLookupAffiliationResult = ComfachocoComfachocoAffiliationNotFound | ComfachocoComfachocoAffiliationFound | ComfachocoComfachocoAffiliationText;
|
|
43
50
|
/**
|
|
44
51
|
* A successful answer.
|
|
45
52
|
*/
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { OficlinicListAffiliateTypesResultResponse } from "./models.js";
|
|
3
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The URL the paths of the API are relative to.
|
|
6
|
+
*/
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Client {
|
|
10
|
+
/**
|
|
11
|
+
* List affiliate types
|
|
12
|
+
*
|
|
13
|
+
* List the affiliate types e-Oficlinic offers for one regime, in the
|
|
14
|
+
* provider's order, as its booking screen loads them (cbtipoafiliado). The
|
|
15
|
+
* regime must be one list_regimes answers, or BOOKING_OPTION_NOT_FOUND. A
|
|
16
|
+
* booking takes one as classification.affiliateType, listed for its
|
|
17
|
+
* classification.regime. Which one applies to a patient is the clinic's
|
|
18
|
+
* decision, never derived here. Pass pageInfo.nextCursor with the same
|
|
19
|
+
* regimeId for more. agentMode true answers concise Spanish text instead.
|
|
20
|
+
*/
|
|
21
|
+
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
24
|
+
export declare function bind(transport: Transport): Client;
|
|
25
|
+
export interface ListRequest {
|
|
26
|
+
/**
|
|
27
|
+
* An Account connection id of the caller's organization.
|
|
28
|
+
*/
|
|
29
|
+
connectionId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* A regime id from list_regimes.
|
|
32
|
+
*/
|
|
33
|
+
regimeId: string;
|
|
34
|
+
/**
|
|
35
|
+
* An opaque cursor from a previous page's pageInfo.nextCursor or
|
|
36
|
+
* pageInfo.previousCursor.
|
|
37
|
+
*/
|
|
38
|
+
cursor?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
41
|
+
*/
|
|
42
|
+
direction?: "forward" | "backward";
|
|
43
|
+
/**
|
|
44
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
45
|
+
* another cursor.
|
|
46
|
+
*/
|
|
47
|
+
limit?: number;
|
|
48
|
+
/**
|
|
49
|
+
* true answers { text }: concise Spanish facts for a messaging or voice
|
|
50
|
+
* agent, with the short ids and the cursor needed to continue. false, the
|
|
51
|
+
* default, answers the structured object.
|
|
52
|
+
*/
|
|
53
|
+
agentMode?: boolean;
|
|
54
|
+
}
|
|
55
|
+
export type ListResponse = OficlinicListAffiliateTypesResultResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const ListOperation = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
route: "/v1/oficlinic/affiliate-types",
|
|
15
|
+
query: { connectionId: "connectionId", regimeId: "regimeId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode" },
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
+
export type { OficlinicAffiliateType, OficlinicAffiliateTypePage, OficlinicListAffiliateTypesBadGatewayError, OficlinicListAffiliateTypesBadGatewayFailure, OficlinicListAffiliateTypesBadRequestError, OficlinicListAffiliateTypesBadRequestFailure, OficlinicListAffiliateTypesConflictError, OficlinicListAffiliateTypesConflictFailure, OficlinicListAffiliateTypesNotFoundError, OficlinicListAffiliateTypesNotFoundFailure, OficlinicListAffiliateTypesResult, OficlinicListAffiliateTypesResultResponse, OficlinicListAffiliateTypesServiceUnavailableError, OficlinicListAffiliateTypesServiceUnavailableFailure, OficlinicListAffiliateTypesTooManyRequestsError, OficlinicListAffiliateTypesTooManyRequestsFailure, OficlinicListAffiliateTypesUnprocessableContentError, OficlinicListAffiliateTypesUnprocessableContentFailure, } from "./models.js";
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { OficlinicAgentText, OficlinicBookingOptionNotFoundFailure, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionNotFoundFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
|
|
3
|
+
export interface OficlinicAffiliateType {
|
|
4
|
+
/**
|
|
5
|
+
* The provider's affiliate type code (Codigo): pass it as
|
|
6
|
+
* classification.affiliateType.
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* The affiliate type's name (Descripcion).
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* The regime it was listed for.
|
|
15
|
+
*/
|
|
16
|
+
regimeId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface OficlinicAffiliateTypePage {
|
|
19
|
+
/**
|
|
20
|
+
* Items admitted by this resource contract within the verified organization.
|
|
21
|
+
*/
|
|
22
|
+
data: OficlinicAffiliateType[];
|
|
23
|
+
/**
|
|
24
|
+
* Discriminator for a resource list response.
|
|
25
|
+
*/
|
|
26
|
+
object: "list";
|
|
27
|
+
/**
|
|
28
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
29
|
+
*/
|
|
30
|
+
pageInfo: PageInfo;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A failed answer.
|
|
34
|
+
*/
|
|
35
|
+
export interface OficlinicListAffiliateTypesBadGatewayError {
|
|
36
|
+
data: null;
|
|
37
|
+
error: OficlinicListAffiliateTypesBadGatewayFailure;
|
|
38
|
+
/**
|
|
39
|
+
* What every answer carries besides its data or error.
|
|
40
|
+
*/
|
|
41
|
+
metadata: ResponseMetadata;
|
|
42
|
+
success: false;
|
|
43
|
+
}
|
|
44
|
+
export type OficlinicListAffiliateTypesBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
|
|
45
|
+
/**
|
|
46
|
+
* A failed answer.
|
|
47
|
+
*/
|
|
48
|
+
export interface OficlinicListAffiliateTypesBadRequestError {
|
|
49
|
+
data: null;
|
|
50
|
+
error: OficlinicListAffiliateTypesBadRequestFailure;
|
|
51
|
+
/**
|
|
52
|
+
* What every answer carries besides its data or error.
|
|
53
|
+
*/
|
|
54
|
+
metadata: ResponseMetadata;
|
|
55
|
+
success: false;
|
|
56
|
+
}
|
|
57
|
+
export type OficlinicListAffiliateTypesBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
|
|
58
|
+
/**
|
|
59
|
+
* A failed answer.
|
|
60
|
+
*/
|
|
61
|
+
export interface OficlinicListAffiliateTypesConflictError {
|
|
62
|
+
data: null;
|
|
63
|
+
error: OficlinicListAffiliateTypesConflictFailure;
|
|
64
|
+
/**
|
|
65
|
+
* What every answer carries besides its data or error.
|
|
66
|
+
*/
|
|
67
|
+
metadata: ResponseMetadata;
|
|
68
|
+
success: false;
|
|
69
|
+
}
|
|
70
|
+
export type OficlinicListAffiliateTypesConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
|
|
71
|
+
/**
|
|
72
|
+
* A failed answer.
|
|
73
|
+
*/
|
|
74
|
+
export interface OficlinicListAffiliateTypesNotFoundError {
|
|
75
|
+
data: null;
|
|
76
|
+
error: OficlinicListAffiliateTypesNotFoundFailure;
|
|
77
|
+
/**
|
|
78
|
+
* What every answer carries besides its data or error.
|
|
79
|
+
*/
|
|
80
|
+
metadata: ResponseMetadata;
|
|
81
|
+
success: false;
|
|
82
|
+
}
|
|
83
|
+
export type OficlinicListAffiliateTypesNotFoundFailure = OficlinicConnectionNotFoundFailure | OficlinicBookingOptionNotFoundFailure;
|
|
84
|
+
export type OficlinicListAffiliateTypesResult = OficlinicAffiliateTypePage | OficlinicAgentText;
|
|
85
|
+
/**
|
|
86
|
+
* A successful answer.
|
|
87
|
+
*/
|
|
88
|
+
export interface OficlinicListAffiliateTypesResultResponse {
|
|
89
|
+
data: OficlinicListAffiliateTypesResult;
|
|
90
|
+
error: null;
|
|
91
|
+
/**
|
|
92
|
+
* What every answer carries besides its data or error.
|
|
93
|
+
*/
|
|
94
|
+
metadata: ResponseMetadata;
|
|
95
|
+
success: true;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* A failed answer.
|
|
99
|
+
*/
|
|
100
|
+
export interface OficlinicListAffiliateTypesServiceUnavailableError {
|
|
101
|
+
data: null;
|
|
102
|
+
error: OficlinicListAffiliateTypesServiceUnavailableFailure;
|
|
103
|
+
/**
|
|
104
|
+
* What every answer carries besides its data or error.
|
|
105
|
+
*/
|
|
106
|
+
metadata: ResponseMetadata;
|
|
107
|
+
success: false;
|
|
108
|
+
}
|
|
109
|
+
export type OficlinicListAffiliateTypesServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
|
|
110
|
+
/**
|
|
111
|
+
* A failed answer.
|
|
112
|
+
*/
|
|
113
|
+
export interface OficlinicListAffiliateTypesTooManyRequestsError {
|
|
114
|
+
data: null;
|
|
115
|
+
error: OficlinicListAffiliateTypesTooManyRequestsFailure;
|
|
116
|
+
/**
|
|
117
|
+
* What every answer carries besides its data or error.
|
|
118
|
+
*/
|
|
119
|
+
metadata: ResponseMetadata;
|
|
120
|
+
success: false;
|
|
121
|
+
}
|
|
122
|
+
export type OficlinicListAffiliateTypesTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
|
|
123
|
+
/**
|
|
124
|
+
* A failed answer.
|
|
125
|
+
*/
|
|
126
|
+
export interface OficlinicListAffiliateTypesUnprocessableContentError {
|
|
127
|
+
data: null;
|
|
128
|
+
error: OficlinicListAffiliateTypesUnprocessableContentFailure;
|
|
129
|
+
/**
|
|
130
|
+
* What every answer carries besides its data or error.
|
|
131
|
+
*/
|
|
132
|
+
metadata: ResponseMetadata;
|
|
133
|
+
success: false;
|
|
134
|
+
}
|
|
135
|
+
export type OficlinicListAffiliateTypesUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
2
|
+
import { type OficlinicCreateAppointmentBody, type OficlinicCreateAppointmentResultResponse, type OficlinicLookupAppointmentsBody, type OficlinicLookupAppointmentsResultResponse, type OficlinicRescheduleAppointmentBody, type OficlinicRescheduleAppointmentResultResponse } from "./models.js";
|
|
3
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
4
4
|
/**
|
|
5
5
|
* The URL the paths of the API are relative to.
|
|
@@ -7,6 +7,34 @@ export interface ClientOptions extends BaseClientOptions {
|
|
|
7
7
|
baseUrl: string;
|
|
8
8
|
}
|
|
9
9
|
export interface Client {
|
|
10
|
+
/**
|
|
11
|
+
* Create an appointment
|
|
12
|
+
*
|
|
13
|
+
* Book one appointment in e-Oficlinic (ASIGNAR_CITAS) for a slot that
|
|
14
|
+
* list_booking_slots offered in an availability flow. Requires confirm true
|
|
15
|
+
* and an idempotencyKey. Before anything is written, the patient is resolved
|
|
16
|
+
* by citizenship card; the program and attention type must be the flow's, and
|
|
17
|
+
* the source must still count exactly one unit for them; the regime,
|
|
18
|
+
* affiliate type and relationship must be listed by the provider; the payer,
|
|
19
|
+
* plan, subplan and contract must be listed by the provider for the
|
|
20
|
+
* connection; the service must be configured for the slot's professional; and
|
|
21
|
+
* a fresh read must still show the slot. The classification, billing and
|
|
22
|
+
* referral values are the clinic's own provider codes, which the caller
|
|
23
|
+
* supplies explicitly: this service never guesses them, never derives them
|
|
24
|
+
* from a program and never loads the clinic's tariff matrix. The intent and a
|
|
25
|
+
* fence on the slot are recorded before the single provider request, which is
|
|
26
|
+
* never resent. Success means the provider answered a strictly positive
|
|
27
|
+
* appointment number, the source's own creation signal (verification
|
|
28
|
+
* provider_acknowledgement; this path has no live receipt yet).
|
|
29
|
+
* OUTCOME_UNKNOWN means the appointment may exist: do not book again; check
|
|
30
|
+
* lookup_appointments with status assigned and ask staff.
|
|
31
|
+
* WRITE_TARGET_UNRESOLVED means another key's write to this slot has no final
|
|
32
|
+
* outcome, so nothing was sent. WRITE_LEDGER_FULL means the connection's
|
|
33
|
+
* ledger refused a new write and nothing was sent. Repeating the same
|
|
34
|
+
* idempotencyKey and request answers the recorded outcome. One-slot, one-unit
|
|
35
|
+
* bookings only. agentMode true answers concise Spanish text instead.
|
|
36
|
+
*/
|
|
37
|
+
create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
|
|
10
38
|
/**
|
|
11
39
|
* Lookup appointments
|
|
12
40
|
*
|
|
@@ -15,13 +43,49 @@ export interface Client {
|
|
|
15
43
|
* patient is resolved by citizenship card number first, sent in the body;
|
|
16
44
|
* PATIENT_NOT_FOUND answers only the provider explicit negative, and every
|
|
17
45
|
* row must name the resolved patient. Staff usernames and free-text
|
|
18
|
-
* observations are never returned.
|
|
19
|
-
*
|
|
20
|
-
*
|
|
46
|
+
* observations are never returned. serviceNumber is the appointment's CAS,
|
|
47
|
+
* which reschedule_appointment takes for an assigned appointment. Mapped from
|
|
48
|
+
* the provider's source: a live positive answer has not been verified yet.
|
|
49
|
+
* Read-only. Pass pageInfo.nextCursor as cursor for more. agentMode true
|
|
50
|
+
* answers concise Spanish text instead.
|
|
21
51
|
*/
|
|
22
52
|
lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* Reschedule an appointment
|
|
55
|
+
*
|
|
56
|
+
* Reschedule one assigned e-Oficlinic appointment. The provider has no
|
|
57
|
+
* individual reschedule (its REPROGRAMAR_AGENDA moves a professional's whole
|
|
58
|
+
* agenda and is never used), so this is a saga, never atomic: the original
|
|
59
|
+
* must be an upcoming assigned appointment of the patient resolved by
|
|
60
|
+
* citizenship card (its CAS, serviceNumber in lookup_appointments); the
|
|
61
|
+
* cancellation reason must be exactly one list_cancellation_reasons answers;
|
|
62
|
+
* the new slot is booked first exactly as create_appointment books it; only
|
|
63
|
+
* after the provider acknowledged the new booking is the original cancelled
|
|
64
|
+
* (CANECELAR_CITAS) with the given reason and observations. If the new
|
|
65
|
+
* booking fails, nothing changes; if its outcome is unknown, OUTCOME_UNKNOWN
|
|
66
|
+
* answers and the original is never cancelled. Once the new booking is
|
|
67
|
+
* acknowledged the answer reports each phase: completed when the cancellation
|
|
68
|
+
* was confirmed too, partial otherwise (cancellation pending, unknown or not
|
|
69
|
+
* possible), when the patient may hold both appointments. pending continues
|
|
70
|
+
* when the same request is repeated with the same idempotencyKey, which
|
|
71
|
+
* resumes the cancellation alone; nothing is ever resent. The slot and the
|
|
72
|
+
* original are fenced from the first dispatch: WRITE_TARGET_UNRESOLVED means
|
|
73
|
+
* another key's write to either has no final outcome, and nothing was sent.
|
|
74
|
+
* agentMode true answers concise Spanish text instead.
|
|
75
|
+
*/
|
|
76
|
+
reschedule(request: RescheduleRequest, options?: RequestOptions): Promise<RescheduleResponse>;
|
|
23
77
|
}
|
|
24
78
|
export declare function createClient(options: ClientOptions): Client;
|
|
25
79
|
export declare function bind(transport: Transport): Client;
|
|
80
|
+
export type CreateRequest = OficlinicCreateAppointmentBody;
|
|
81
|
+
export type CreateResponse = OficlinicCreateAppointmentResultResponse;
|
|
26
82
|
export type LookupRequest = OficlinicLookupAppointmentsBody;
|
|
27
|
-
export type LookupResponse =
|
|
83
|
+
export type LookupResponse = OficlinicLookupAppointmentsResultResponse;
|
|
84
|
+
export type RescheduleRequest = {
|
|
85
|
+
/**
|
|
86
|
+
* The original appointment's CAS: serviceNumber of an assigned appointment
|
|
87
|
+
* from lookup_appointments.
|
|
88
|
+
*/
|
|
89
|
+
appointmentId: string;
|
|
90
|
+
} & OficlinicRescheduleAppointmentBody;
|
|
91
|
+
export type RescheduleResponse = OficlinicRescheduleAppointmentResultResponse;
|
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { OficlinicCreateAppointmentResultResponseCodec, OficlinicRescheduleAppointmentResultResponseCodec, } from "./models.js";
|
|
4
5
|
export function createClient(options) {
|
|
5
6
|
return bind(new Transport(options));
|
|
6
7
|
}
|
|
7
8
|
export function bind(transport) {
|
|
8
9
|
return {
|
|
10
|
+
create: (request, options) => transport.send(CreateOperation, request, options),
|
|
9
11
|
lookup: (request, options) => transport.send(LookupOperation, request, options),
|
|
12
|
+
reschedule: (request, options) => transport.send(RescheduleOperation, request, options),
|
|
10
13
|
};
|
|
11
14
|
}
|
|
15
|
+
const CreateOperation = {
|
|
16
|
+
method: "POST",
|
|
17
|
+
route: "/v1/oficlinic/appointments",
|
|
18
|
+
body: "flat",
|
|
19
|
+
response: OficlinicCreateAppointmentResultResponseCodec,
|
|
20
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "410": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
21
|
+
};
|
|
12
22
|
const LookupOperation = {
|
|
13
23
|
method: "POST",
|
|
14
24
|
route: "/v1/oficlinic/appointments/lookup",
|
|
@@ -16,3 +26,10 @@ const LookupOperation = {
|
|
|
16
26
|
response: null,
|
|
17
27
|
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
28
|
};
|
|
29
|
+
const RescheduleOperation = {
|
|
30
|
+
method: "POST",
|
|
31
|
+
route: "/v1/oficlinic/appointments/{appointmentId}/reschedule",
|
|
32
|
+
body: "flat",
|
|
33
|
+
response: OficlinicRescheduleAppointmentResultResponseCodec,
|
|
34
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "410": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
35
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ApiError } from "../../_/index.js";
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
|
-
export type { Client, ClientOptions, LookupRequest, LookupResponse, } from "./client.js";
|
|
5
|
-
export type { OficlinicAppointment, OficlinicAppointmentPage,
|
|
4
|
+
export type { Client, ClientOptions, CreateRequest, CreateResponse, LookupRequest, LookupResponse, RescheduleRequest, RescheduleResponse, } from "./client.js";
|
|
5
|
+
export type { OficlinicAppointment, OficlinicAppointmentBooking, OficlinicAppointmentNotFoundFailure, OficlinicAppointmentNotReschedulableFailure, OficlinicAppointmentPage, OficlinicAppointmentReschedule, OficlinicCreateAppointmentBadGatewayError, OficlinicCreateAppointmentBadGatewayFailure, OficlinicCreateAppointmentBody, OficlinicCreateAppointmentConflictError, OficlinicCreateAppointmentConflictFailure, OficlinicCreateAppointmentNotFoundError, OficlinicCreateAppointmentNotFoundFailure, OficlinicCreateAppointmentResult, OficlinicCreateAppointmentResultResponse, OficlinicCreateAppointmentServiceUnavailableError, OficlinicCreateAppointmentServiceUnavailableFailure, OficlinicCreateAppointmentTooManyRequestsError, OficlinicCreateAppointmentTooManyRequestsFailure, OficlinicCreateAppointmentUnprocessableContentError, OficlinicCreateAppointmentUnprocessableContentFailure, OficlinicIdempotencyKeyReusedFailure, OficlinicLookupAppointmentsBadGatewayError, OficlinicLookupAppointmentsBadGatewayFailure, OficlinicLookupAppointmentsBadRequestError, OficlinicLookupAppointmentsBadRequestFailure, OficlinicLookupAppointmentsBody, OficlinicLookupAppointmentsConflictError, OficlinicLookupAppointmentsConflictFailure, OficlinicLookupAppointmentsNotFoundError, OficlinicLookupAppointmentsNotFoundFailure, OficlinicLookupAppointmentsResult, OficlinicLookupAppointmentsResultResponse, OficlinicLookupAppointmentsServiceUnavailableError, OficlinicLookupAppointmentsServiceUnavailableFailure, OficlinicLookupAppointmentsTooManyRequestsError, OficlinicLookupAppointmentsTooManyRequestsFailure, OficlinicLookupAppointmentsUnprocessableContentError, OficlinicLookupAppointmentsUnprocessableContentFailure, OficlinicPatientNotFoundFailure, OficlinicRescheduleAppointmentBadGatewayError, OficlinicRescheduleAppointmentBadGatewayFailure, OficlinicRescheduleAppointmentBody, OficlinicRescheduleAppointmentConflictError, OficlinicRescheduleAppointmentConflictFailure, OficlinicRescheduleAppointmentNotFoundError, OficlinicRescheduleAppointmentNotFoundFailure, OficlinicRescheduleAppointmentResult, OficlinicRescheduleAppointmentResultResponse, OficlinicRescheduleAppointmentServiceUnavailableError, OficlinicRescheduleAppointmentServiceUnavailableFailure, OficlinicRescheduleAppointmentTooManyRequestsError, OficlinicRescheduleAppointmentTooManyRequestsFailure, OficlinicRescheduleAppointmentUnprocessableContentError, OficlinicRescheduleAppointmentUnprocessableContentFailure, OficlinicServiceNotAvailableFailure, OficlinicWriteLedgerFullFailure, OficlinicWriteTargetUnresolvedFailure, } from "./models.js";
|