@arbol-ai/sdk 5.44.0 → 5.45.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/account/client.d.ts +0 -16
- package/dist/account/client.js +0 -40
- package/dist/account/index.d.ts +1 -1
- package/dist/account/models.d.ts +0 -93
- package/dist/agenda/appointments/client.d.ts +14 -243
- package/dist/agenda/appointments/client.js +18 -17
- package/dist/agenda/appointments/index.d.ts +1 -1
- package/dist/agenda/appointments/models.d.ts +612 -2
- package/dist/agenda/appointments/models.js +14 -2
- package/dist/agenda/availability/client.d.ts +2 -7
- package/dist/agenda/availability/client.js +5 -4
- package/dist/agenda/availability/index.d.ts +1 -0
- package/dist/agenda/availability/models.d.ts +67 -0
- package/dist/agenda/bookingLocations/client.d.ts +2 -7
- package/dist/agenda/bookingLocations/client.js +4 -4
- package/dist/agenda/bookingLocations/index.d.ts +1 -0
- package/dist/agenda/bookingLocations/models.d.ts +67 -0
- package/dist/agenda/bookingOfferings/client.d.ts +2 -8
- package/dist/agenda/bookingOfferings/client.js +1 -1
- package/dist/agenda/bookingOfferings/index.d.ts +1 -1
- package/dist/agenda/bookingOfferings/models.d.ts +79 -1
- package/dist/agenda/bookingRequirements/client.d.ts +2 -75
- package/dist/agenda/bookingRequirements/client.js +1 -1
- package/dist/agenda/bookingRequirements/index.d.ts +1 -0
- package/dist/agenda/bookingRequirements/models.d.ts +182 -0
- package/dist/agenda/bookingSlots/client.d.ts +2 -7
- package/dist/agenda/bookingSlots/client.js +5 -4
- package/dist/agenda/bookingSlots/index.d.ts +1 -0
- package/dist/agenda/bookingSlots/models.d.ts +67 -0
- package/dist/agenda/bookingSlots/models.js +3 -0
- package/dist/agenda/bookings/client.d.ts +13 -188
- package/dist/agenda/bookings/client.js +13 -13
- package/dist/agenda/bookings/index.d.ts +1 -1
- package/dist/agenda/bookings/models.d.ts +526 -1
- package/dist/agenda/bookings/models.js +7 -1
- package/dist/agenda/firstAvailability/client.d.ts +2 -8
- package/dist/agenda/firstAvailability/client.js +4 -4
- package/dist/agenda/firstAvailability/index.d.ts +1 -1
- package/dist/agenda/firstAvailability/models.d.ts +80 -1
- package/dist/agenda/firstAvailability/models.js +4 -1
- package/dist/agenda/index.d.ts +1 -1
- package/dist/agenda/locations/client.d.ts +2 -7
- package/dist/agenda/locations/client.js +4 -4
- package/dist/agenda/locations/index.d.ts +1 -0
- package/dist/agenda/locations/models.d.ts +67 -0
- package/dist/agenda/locations/models.js +3 -0
- package/dist/agenda/models.d.ts +2193 -839
- package/dist/agenda/models.js +9 -0
- package/dist/agenda/nearestBookingSlots/client.d.ts +2 -8
- package/dist/agenda/nearestBookingSlots/client.js +4 -4
- package/dist/agenda/nearestBookingSlots/index.d.ts +1 -1
- package/dist/agenda/nearestBookingSlots/models.d.ts +80 -2
- package/dist/agenda/nearestBookingSlots/models.js +4 -1
- package/dist/agenda/offerings/client.d.ts +7 -146
- package/dist/agenda/offerings/client.js +8 -8
- package/dist/agenda/offerings/index.d.ts +1 -1
- package/dist/agenda/offerings/models.d.ts +349 -1
- package/dist/agenda/offerings/models.js +6 -0
- package/dist/agenda/resourceSchedules/client.d.ts +4 -51
- package/dist/agenda/resourceSchedules/client.js +5 -4
- package/dist/agenda/resourceSchedules/index.d.ts +1 -0
- package/dist/agenda/resourceSchedules/models.d.ts +133 -0
- package/dist/agenda/resourceSchedules/models.js +12 -0
- package/dist/agenda/resources/client.d.ts +7 -99
- package/dist/agenda/resources/client.js +8 -8
- package/dist/agenda/resources/index.d.ts +1 -1
- package/dist/agenda/resources/models.d.ts +302 -1
- package/dist/agenda/resources/models.js +6 -0
- package/dist/agenda/scheduleRules/client.d.ts +7 -172
- package/dist/agenda/scheduleRules/client.js +10 -10
- package/dist/agenda/scheduleRules/index.d.ts +1 -1
- package/dist/agenda/scheduleRules/models.d.ts +520 -1
- package/dist/agenda/scheduleRules/models.js +31 -0
- package/dist/agenda/services/client.d.ts +7 -71
- package/dist/agenda/services/client.js +8 -8
- package/dist/agenda/services/index.d.ts +1 -1
- package/dist/agenda/services/models.d.ts +274 -1
- package/dist/agenda/services/models.js +6 -0
- package/dist/agenda/waitlist/client.d.ts +9 -217
- package/dist/agenda/waitlist/client.js +13 -13
- package/dist/agenda/waitlist/index.d.ts +1 -1
- package/dist/agenda/waitlist/models.d.ts +482 -1
- package/dist/agenda/waitlist/models.js +16 -1
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +0 -20
- package/dist/raiz/agents/client.d.ts +8 -137
- package/dist/raiz/agents/client.js +12 -12
- package/dist/raiz/agents/index.d.ts +1 -1
- package/dist/raiz/agents/models.d.ts +258 -2
- package/dist/raiz/agents/models.js +13 -1
- package/dist/raiz/bulletins/client.d.ts +10 -74
- package/dist/raiz/bulletins/client.js +13 -14
- package/dist/raiz/bulletins/index.d.ts +1 -1
- package/dist/raiz/bulletins/models.d.ts +112 -1
- package/dist/raiz/bulletins/models.js +14 -0
- package/dist/raiz/campaigns/client.d.ts +11 -140
- package/dist/raiz/campaigns/client.js +14 -14
- package/dist/raiz/campaigns/index.d.ts +1 -1
- package/dist/raiz/campaigns/models.d.ts +343 -2
- package/dist/raiz/campaigns/models.js +14 -1
- package/dist/raiz/changes/client.d.ts +2 -8
- package/dist/raiz/changes/client.js +4 -4
- package/dist/raiz/changes/index.d.ts +1 -1
- package/dist/raiz/changes/models.d.ts +41 -1
- package/dist/raiz/changes/models.js +3 -0
- package/dist/raiz/channels/client.d.ts +15 -142
- package/dist/raiz/channels/client.js +16 -18
- package/dist/raiz/channels/index.d.ts +1 -1
- package/dist/raiz/channels/models.d.ts +1511 -2
- package/dist/raiz/channels/models.js +12 -2
- package/dist/raiz/contacts/client.d.ts +12 -117
- package/dist/raiz/contacts/client.js +15 -15
- package/dist/raiz/contacts/index.d.ts +1 -1
- package/dist/raiz/contacts/models.d.ts +305 -2
- package/dist/raiz/contacts/models.js +10 -1
- package/dist/raiz/conversations/client.d.ts +18 -99
- package/dist/raiz/conversations/client.js +12 -13
- package/dist/raiz/conversations/index.d.ts +1 -1
- package/dist/raiz/conversations/models.d.ts +253 -2
- package/dist/raiz/conversations/models.js +8 -2
- package/dist/raiz/definitions/client.d.ts +8 -115
- package/dist/raiz/definitions/client.js +10 -10
- package/dist/raiz/definitions/index.d.ts +1 -1
- package/dist/raiz/definitions/models.d.ts +224 -1
- package/dist/raiz/definitions/models.js +6 -0
- package/dist/raiz/evalCases/client.d.ts +10 -57
- package/dist/raiz/evalCases/client.js +8 -8
- package/dist/raiz/evalCases/index.d.ts +1 -1
- package/dist/raiz/evalCases/models.d.ts +78 -1
- package/dist/raiz/evalCases/models.js +6 -0
- package/dist/raiz/evalRuns/client.d.ts +4 -45
- package/dist/raiz/evalRuns/client.js +6 -6
- package/dist/raiz/evalRuns/index.d.ts +1 -1
- package/dist/raiz/evalRuns/models.d.ts +85 -0
- package/dist/raiz/evalRuns/models.js +3 -0
- package/dist/raiz/facts/client.d.ts +6 -65
- package/dist/raiz/facts/client.js +7 -7
- package/dist/raiz/facts/index.d.ts +1 -0
- package/dist/raiz/facts/models.d.ts +120 -0
- package/dist/raiz/facts/models.js +10 -0
- package/dist/raiz/index.d.ts +1 -1
- package/dist/raiz/knowledge/client.d.ts +10 -130
- package/dist/raiz/knowledge/client.js +13 -13
- package/dist/raiz/knowledge/index.d.ts +1 -1
- package/dist/raiz/knowledge/models.d.ts +256 -1
- package/dist/raiz/knowledge/models.js +12 -0
- package/dist/raiz/models.d.ts +1474 -825
- package/dist/raiz/models.js +3 -0
- package/dist/raiz/organization/client.d.ts +7 -70
- package/dist/raiz/organization/client.js +8 -8
- package/dist/raiz/organization/index.d.ts +1 -1
- package/dist/raiz/organization/models.d.ts +178 -1
- package/dist/raiz/organization/models.js +11 -0
- package/dist/raiz/profiles/client.d.ts +8 -87
- package/dist/raiz/profiles/client.js +10 -10
- package/dist/raiz/profiles/index.d.ts +1 -1
- package/dist/raiz/profiles/models.d.ts +206 -2
- package/dist/raiz/profiles/models.js +6 -0
- package/dist/raiz/reports/client.d.ts +5 -8
- package/dist/raiz/reports/client.js +4 -4
- package/dist/raiz/reports/index.d.ts +1 -1
- package/dist/raiz/reports/models.d.ts +41 -0
- package/dist/raiz/reports/models.js +3 -0
- package/dist/raiz/suppressions/client.d.ts +4 -31
- package/dist/raiz/suppressions/client.js +6 -6
- package/dist/raiz/suppressions/index.d.ts +1 -1
- package/dist/raiz/suppressions/models.d.ts +114 -1
- package/dist/raiz/suppressions/models.js +6 -0
- package/dist/raiz/tasks/client.d.ts +12 -32
- package/dist/raiz/tasks/client.js +11 -11
- package/dist/raiz/tasks/index.d.ts +1 -1
- package/dist/raiz/tasks/models.d.ts +108 -2
- package/dist/raiz/tasks/models.js +4 -1
- package/dist/raiz/templates/client.d.ts +7 -84
- package/dist/raiz/templates/client.js +5 -4
- package/dist/raiz/templates/index.d.ts +1 -1
- package/dist/raiz/templates/models.d.ts +214 -1
- package/dist/raiz/templates/models.js +4 -1
- package/dist/raiz/voices/client.d.ts +2 -8
- package/dist/raiz/voices/client.js +1 -1
- package/dist/raiz/voices/index.d.ts +1 -1
- package/dist/raiz/voices/models.d.ts +40 -1
- package/package.json +3 -3
- package/dist/account/billing/client.d.ts +0 -22
- package/dist/account/billing/client.js +0 -18
- package/dist/account/billing/index.d.ts +0 -5
- package/dist/account/billing/index.js +0 -4
- package/dist/account/billing/models.d.ts +0 -74
- package/dist/account/billing/models.js +0 -10
- package/dist/account/billingProfiles/client.d.ts +0 -39
- package/dist/account/billingProfiles/client.js +0 -25
- package/dist/account/billingProfiles/index.d.ts +0 -5
- package/dist/account/billingProfiles/index.js +0 -4
- package/dist/account/billingProfiles/models.d.ts +0 -58
- package/dist/account/invoiceDocuments/client.d.ts +0 -25
- package/dist/account/invoiceDocuments/client.js +0 -17
- package/dist/account/invoiceDocuments/index.d.ts +0 -5
- package/dist/account/invoiceDocuments/index.js +0 -4
- package/dist/account/invoiceDocuments/models.d.ts +0 -35
- package/dist/account/invoices/client.d.ts +0 -47
- package/dist/account/invoices/client.js +0 -26
- package/dist/account/invoices/index.d.ts +0 -5
- package/dist/account/invoices/index.js +0 -4
- package/dist/account/invoices/models.d.ts +0 -135
- package/dist/account/invoices/models.js +0 -24
- package/dist/account/payments/client.d.ts +0 -34
- package/dist/account/payments/client.js +0 -19
- package/dist/account/payments/index.d.ts +0 -5
- package/dist/account/payments/index.js +0 -4
- package/dist/account/payments/models.d.ts +0 -64
- package/dist/account/payments/models.js +0 -12
- package/dist/account/usage/client.d.ts +0 -47
- package/dist/account/usage/client.js +0 -18
- package/dist/account/usage/index.d.ts +0 -5
- package/dist/account/usage/index.js +0 -4
- package/dist/account/usage/models.d.ts +0 -51
- package/dist/account/usageSummary/client.d.ts +0 -26
- package/dist/account/usageSummary/client.js +0 -19
- package/dist/account/usageSummary/index.d.ts +0 -5
- package/dist/account/usageSummary/index.js +0 -4
- package/dist/account/usageSummary/models.d.ts +0 -50
- package/dist/account/usageSummary/models.js +0 -9
- package/dist/account/walletTransactions/client.d.ts +0 -34
- package/dist/account/walletTransactions/client.js +0 -19
- package/dist/account/walletTransactions/index.d.ts +0 -5
- package/dist/account/walletTransactions/index.js +0 -4
- package/dist/account/walletTransactions/models.d.ts +0 -58
- package/dist/account/walletTransactions/models.js +0 -12
- /package/dist/{account/billingProfiles → agenda/availability}/models.js +0 -0
- /package/dist/{account/invoiceDocuments → agenda/bookingLocations}/models.js +0 -0
- /package/dist/{account/usage → agenda/bookingRequirements}/models.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
import { Transport,
|
|
4
|
-
import {
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { AgendaServicePageResponseCodec, AgendaServiceResponseCodec, } from "./models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -16,20 +16,20 @@ const CreateOperation = {
|
|
|
16
16
|
method: "POST",
|
|
17
17
|
route: "/v1/agenda/services",
|
|
18
18
|
body: "flat",
|
|
19
|
-
response:
|
|
20
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
19
|
+
response: AgendaServiceResponseCodec,
|
|
20
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "426": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
21
21
|
};
|
|
22
22
|
const ListOperation = {
|
|
23
23
|
method: "GET",
|
|
24
24
|
route: "/v1/agenda/services",
|
|
25
25
|
query: { cursor: "cursor", direction: "direction", limit: "limit", status: "status" },
|
|
26
|
-
response:
|
|
27
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
26
|
+
response: AgendaServicePageResponseCodec,
|
|
27
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "415": true, "426": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
28
28
|
};
|
|
29
29
|
const UpdateOperation = {
|
|
30
30
|
method: "PATCH",
|
|
31
31
|
route: "/v1/agenda/services/{serviceId}",
|
|
32
32
|
body: "flat",
|
|
33
|
-
response:
|
|
34
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
33
|
+
response: AgendaServiceResponseCodec,
|
|
34
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "426": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
35
35
|
};
|
|
@@ -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, CreateRequest, CreateResponse, ListRequest, ListResponse, UpdateRequest, UpdateResponse, } from "./client.js";
|
|
5
|
-
export type { AgendaService, AgendaServicePage, } from "./models.js";
|
|
5
|
+
export type { AgendaCreateServiceBadRequestError, AgendaCreateServiceBadRequestFailure, AgendaCreateServiceBody, AgendaCreateServiceConflictError, AgendaCreateServiceConflictFailure, AgendaCreateServiceForbiddenError, AgendaCreateServiceForbiddenFailure, AgendaCreateServiceServiceUnavailableError, AgendaCreateServiceServiceUnavailableFailure, AgendaCreateServiceUnsupportedMediaTypeError, AgendaCreateServiceUnsupportedMediaTypeFailure, AgendaListServicesBadRequestError, AgendaListServicesBadRequestFailure, AgendaListServicesConflictError, AgendaListServicesConflictFailure, AgendaListServicesForbiddenError, AgendaListServicesForbiddenFailure, AgendaListServicesServiceUnavailableError, AgendaListServicesServiceUnavailableFailure, AgendaListServicesUnsupportedMediaTypeError, AgendaListServicesUnsupportedMediaTypeFailure, AgendaService, AgendaServicePage, AgendaServicePageResponse, AgendaServiceResponse, AgendaUpdateServiceBadRequestError, AgendaUpdateServiceBadRequestFailure, AgendaUpdateServiceBody, AgendaUpdateServiceConflictError, AgendaUpdateServiceConflictFailure, AgendaUpdateServiceForbiddenError, AgendaUpdateServiceForbiddenFailure, AgendaUpdateServiceServiceUnavailableError, AgendaUpdateServiceServiceUnavailableFailure, AgendaUpdateServiceUnsupportedMediaTypeError, AgendaUpdateServiceUnsupportedMediaTypeFailure, } from "./models.js";
|
|
@@ -1,4 +1,158 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
1
|
+
import type { ForbiddenFailure, InvalidInputFailure, PageInfo, ResponseMetadata, UnsupportedMediaTypeFailure, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { AgendaAgeNotEligibleFailure, AgendaApplicationJsonRequiredFailure, AgendaAppointmentClosedFailure, AgendaAppointmentNotMovableFailure, AgendaAppointmentNotRemindableFailure, AgendaAppointmentVersionMismatchFailure, AgendaAppointmentWithoutPatientFailure, AgendaArbolCatalogTooLargeFailure, AgendaArbolConfigurationRequiredFailure, AgendaArbolRefusedFailure, AgendaArbolResponseTooLargeFailure, AgendaArbolSettingsVersionMismatchFailure, AgendaArbolUnavailableFailure, AgendaBindingVersionMismatchFailure, AgendaBirthDateRequiredFailure, AgendaDailyReportTooLargeFailure, AgendaDurationChangeOffFailure, AgendaDurationNotAllowedFailure, AgendaFileContentMismatchFailure, AgendaFollowupConsentRequiredFailure, AgendaFollowupDisabledFailure, AgendaFollowupSettingsVersionMismatchFailure, AgendaHoldNotActiveFailure, AgendaIdTokenMismatchFailure, AgendaIntakeSettingsVersionMismatchFailure, AgendaInvalidAppointmentIntakeFailure, AgendaInvalidAvailabilityWindowFailure, AgendaInvalidBodyFailure, AgendaInvalidFileKindFailure, AgendaInvalidFileNameFailure, AgendaInvalidHoldPayloadFailure, AgendaInvalidIdTokenFailure, AgendaInvalidJsonFailure, AgendaInvalidPatientFieldsFailure, AgendaInvalidSlotTokenFailure, AgendaInvalidWindowFailure, AgendaLocationVersionMismatchFailure, AgendaNotFileUploaderFailure, AgendaNotNoteAuthorFailure, AgendaNotificationSettingsVersionMismatchFailure, AgendaNotificationsNotSetUpFailure, AgendaOfferingVersionMismatchFailure, AgendaOrganizationVersionMismatchFailure, AgendaOriginNotAllowedFailure, AgendaOverbookOutOfRangeFailure, AgendaOverbookUnavailableFailure, AgendaPatientArchivedFailure, AgendaPatientDocumentTakenFailure, AgendaPatientEmailRequiredFailure, AgendaPatientVersionMismatchFailure, AgendaPayerNameTakenFailure, AgendaPayerStaffOnlyFailure, AgendaPayerVersionMismatchFailure, AgendaProfileVersionMismatchFailure, AgendaProviderDisabledFailure, AgendaRecallAlreadyActiveFailure, AgendaRecallMonthPassedFailure, AgendaRecallVersionMismatchFailure, AgendaRecallVisitInFutureFailure, AgendaRecallVisitRequiredFailure, AgendaRemovalJobConflictFailure, AgendaRemovalWorkflowUnavailableFailure, AgendaReportNotificationsDisabledFailure, AgendaReportRecipientsRequiredFailure, AgendaReportSettingsVersionMismatchFailure, AgendaResourceCapacityExceededFailure, AgendaResourceVersionMismatchFailure, AgendaSameOfferingFailure, AgendaSameResourceFailure, AgendaSameServiceFailure, AgendaScheduleChangedFailure, AgendaScheduleRuleAgendaMismatchFailure, AgendaScheduleRuleExpectedVersionRequiredFailure, AgendaScheduleRuleVersionMismatchFailure, AgendaScheduleRulesChangedFailure, AgendaServiceCapacityExceededFailure, AgendaServiceChangedFailure, AgendaServiceVersionMismatchFailure, AgendaSlotOfferAlreadyOpenFailure, AgendaSlotOfferClosedFailure, AgendaSlotOfferMismatchFailure, AgendaSlotOfferNotAllowedFailure, AgendaSlotOfferTooSoonFailure, AgendaSlotRequiredFailure, AgendaStudyLengthNotOfferedFailure, AgendaStudyOverbookingNotAllowedFailure, AgendaTargetInactiveFailure, AgendaUnexpectedQueryParametersFailure, AgendaUnsupportedContentEncodingFailure, AgendaUnsupportedFileTypeFailure, AgendaWaitlistEntryVersionMismatchFailure, AgendaWaitlistResourceAmbiguousFailure, AgendaWaitlistResourceUnavailableFailure, AgendaWaitlistServiceUnavailableFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface AgendaCreateServiceBadRequestError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: AgendaCreateServiceBadRequestFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type AgendaCreateServiceBadRequestFailure = InvalidInputFailure | AgendaWaitlistServiceUnavailableFailure | AgendaWaitlistResourceUnavailableFailure | AgendaWaitlistResourceAmbiguousFailure | AgendaInvalidAppointmentIntakeFailure | AgendaInvalidPatientFieldsFailure | AgendaDurationChangeOffFailure | AgendaDurationNotAllowedFailure | AgendaStudyLengthNotOfferedFailure | AgendaInvalidFileKindFailure | AgendaInvalidFileNameFailure | AgendaInvalidIdTokenFailure | AgendaInvalidJsonFailure | AgendaInvalidWindowFailure | AgendaUnexpectedQueryParametersFailure | AgendaInvalidBodyFailure;
|
|
16
|
+
export interface AgendaCreateServiceBody {
|
|
17
|
+
/**
|
|
18
|
+
* Default appointment duration for this service, in minutes. Each offering
|
|
19
|
+
* can specify its own duration.
|
|
20
|
+
*/
|
|
21
|
+
defaultDurationMinutes: number;
|
|
22
|
+
/**
|
|
23
|
+
* Bounded JSON configuration owned by this catalog record, including
|
|
24
|
+
* supported domain settings.
|
|
25
|
+
*/
|
|
26
|
+
details?: {
|
|
27
|
+
[key: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Display name of this catalog or configuration record.
|
|
31
|
+
*/
|
|
32
|
+
name: string;
|
|
33
|
+
/**
|
|
34
|
+
* Lifecycle state controlling whether this record remains available to its
|
|
35
|
+
* domain consumers.
|
|
36
|
+
*/
|
|
37
|
+
status?: "active" | "inactive";
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A failed answer.
|
|
41
|
+
*/
|
|
42
|
+
export interface AgendaCreateServiceConflictError {
|
|
43
|
+
data: null;
|
|
44
|
+
error: AgendaCreateServiceConflictFailure;
|
|
45
|
+
/**
|
|
46
|
+
* What every answer carries besides its data or error.
|
|
47
|
+
*/
|
|
48
|
+
metadata: ResponseMetadata;
|
|
49
|
+
success: false;
|
|
50
|
+
}
|
|
51
|
+
export type AgendaCreateServiceConflictFailure = AgendaPayerStaffOnlyFailure | AgendaAppointmentNotRemindableFailure | AgendaAppointmentWithoutPatientFailure | AgendaArbolCatalogTooLargeFailure | AgendaArbolConfigurationRequiredFailure | AgendaNotificationsNotSetUpFailure | AgendaSameOfferingFailure | AgendaSameServiceFailure | AgendaInvalidHoldPayloadFailure | AgendaHoldNotActiveFailure | AgendaAppointmentClosedFailure | AgendaAppointmentVersionMismatchFailure | AgendaAppointmentNotMovableFailure | AgendaServiceChangedFailure | AgendaScheduleChangedFailure | AgendaInvalidAvailabilityWindowFailure | AgendaServiceCapacityExceededFailure | AgendaResourceCapacityExceededFailure | AgendaOverbookOutOfRangeFailure | AgendaOverbookUnavailableFailure | AgendaStudyOverbookingNotAllowedFailure | AgendaInvalidSlotTokenFailure | AgendaBirthDateRequiredFailure | AgendaAgeNotEligibleFailure | AgendaIntakeSettingsVersionMismatchFailure | AgendaPayerNameTakenFailure | AgendaPayerVersionMismatchFailure | AgendaLocationVersionMismatchFailure | AgendaProfileVersionMismatchFailure | AgendaProviderDisabledFailure | AgendaBindingVersionMismatchFailure | AgendaResourceVersionMismatchFailure | AgendaScheduleRuleAgendaMismatchFailure | AgendaScheduleRuleExpectedVersionRequiredFailure | AgendaScheduleRuleVersionMismatchFailure | AgendaScheduleRulesChangedFailure | AgendaServiceVersionMismatchFailure | AgendaOfferingVersionMismatchFailure | AgendaSameResourceFailure | AgendaTargetInactiveFailure | AgendaSlotRequiredFailure | AgendaArbolSettingsVersionMismatchFailure | AgendaNotificationSettingsVersionMismatchFailure | AgendaOrganizationVersionMismatchFailure | AgendaPatientDocumentTakenFailure | AgendaPatientVersionMismatchFailure | AgendaDailyReportTooLargeFailure | AgendaReportSettingsVersionMismatchFailure | AgendaReportNotificationsDisabledFailure | AgendaReportRecipientsRequiredFailure | AgendaWaitlistEntryVersionMismatchFailure | AgendaRemovalJobConflictFailure | AgendaFollowupSettingsVersionMismatchFailure | AgendaFollowupDisabledFailure | AgendaFollowupConsentRequiredFailure | AgendaPatientEmailRequiredFailure | AgendaPatientArchivedFailure | AgendaRecallAlreadyActiveFailure | AgendaRecallMonthPassedFailure | AgendaRecallVisitRequiredFailure | AgendaRecallVisitInFutureFailure | AgendaRecallVersionMismatchFailure | AgendaSlotOfferNotAllowedFailure | AgendaSlotOfferMismatchFailure | AgendaSlotOfferTooSoonFailure | AgendaSlotOfferAlreadyOpenFailure | AgendaSlotOfferClosedFailure;
|
|
52
|
+
/**
|
|
53
|
+
* A failed answer.
|
|
54
|
+
*/
|
|
55
|
+
export interface AgendaCreateServiceForbiddenError {
|
|
56
|
+
data: null;
|
|
57
|
+
error: AgendaCreateServiceForbiddenFailure;
|
|
58
|
+
/**
|
|
59
|
+
* What every answer carries besides its data or error.
|
|
60
|
+
*/
|
|
61
|
+
metadata: ResponseMetadata;
|
|
62
|
+
success: false;
|
|
63
|
+
}
|
|
64
|
+
export type AgendaCreateServiceForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
|
|
65
|
+
/**
|
|
66
|
+
* A failed answer.
|
|
67
|
+
*/
|
|
68
|
+
export interface AgendaCreateServiceServiceUnavailableError {
|
|
69
|
+
data: null;
|
|
70
|
+
error: AgendaCreateServiceServiceUnavailableFailure;
|
|
71
|
+
/**
|
|
72
|
+
* What every answer carries besides its data or error.
|
|
73
|
+
*/
|
|
74
|
+
metadata: ResponseMetadata;
|
|
75
|
+
success: false;
|
|
76
|
+
}
|
|
77
|
+
export type AgendaCreateServiceServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
|
|
78
|
+
/**
|
|
79
|
+
* A failed answer.
|
|
80
|
+
*/
|
|
81
|
+
export interface AgendaCreateServiceUnsupportedMediaTypeError {
|
|
82
|
+
data: null;
|
|
83
|
+
error: AgendaCreateServiceUnsupportedMediaTypeFailure;
|
|
84
|
+
/**
|
|
85
|
+
* What every answer carries besides its data or error.
|
|
86
|
+
*/
|
|
87
|
+
metadata: ResponseMetadata;
|
|
88
|
+
success: false;
|
|
89
|
+
}
|
|
90
|
+
export type AgendaCreateServiceUnsupportedMediaTypeFailure = UnsupportedMediaTypeFailure | AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
|
|
91
|
+
/**
|
|
92
|
+
* A failed answer.
|
|
93
|
+
*/
|
|
94
|
+
export interface AgendaListServicesBadRequestError {
|
|
95
|
+
data: null;
|
|
96
|
+
error: AgendaListServicesBadRequestFailure;
|
|
97
|
+
/**
|
|
98
|
+
* What every answer carries besides its data or error.
|
|
99
|
+
*/
|
|
100
|
+
metadata: ResponseMetadata;
|
|
101
|
+
success: false;
|
|
102
|
+
}
|
|
103
|
+
export type AgendaListServicesBadRequestFailure = InvalidInputFailure | AgendaWaitlistServiceUnavailableFailure | AgendaWaitlistResourceUnavailableFailure | AgendaWaitlistResourceAmbiguousFailure | AgendaInvalidAppointmentIntakeFailure | AgendaInvalidPatientFieldsFailure | AgendaDurationChangeOffFailure | AgendaDurationNotAllowedFailure | AgendaStudyLengthNotOfferedFailure | AgendaInvalidFileKindFailure | AgendaInvalidFileNameFailure | AgendaInvalidIdTokenFailure | AgendaInvalidJsonFailure | AgendaInvalidWindowFailure | AgendaUnexpectedQueryParametersFailure | AgendaInvalidBodyFailure;
|
|
104
|
+
/**
|
|
105
|
+
* A failed answer.
|
|
106
|
+
*/
|
|
107
|
+
export interface AgendaListServicesConflictError {
|
|
108
|
+
data: null;
|
|
109
|
+
error: AgendaListServicesConflictFailure;
|
|
110
|
+
/**
|
|
111
|
+
* What every answer carries besides its data or error.
|
|
112
|
+
*/
|
|
113
|
+
metadata: ResponseMetadata;
|
|
114
|
+
success: false;
|
|
115
|
+
}
|
|
116
|
+
export type AgendaListServicesConflictFailure = AgendaPayerStaffOnlyFailure | AgendaAppointmentNotRemindableFailure | AgendaAppointmentWithoutPatientFailure | AgendaArbolCatalogTooLargeFailure | AgendaArbolConfigurationRequiredFailure | AgendaNotificationsNotSetUpFailure | AgendaSameOfferingFailure | AgendaSameServiceFailure | AgendaInvalidHoldPayloadFailure | AgendaHoldNotActiveFailure | AgendaAppointmentClosedFailure | AgendaAppointmentVersionMismatchFailure | AgendaAppointmentNotMovableFailure | AgendaServiceChangedFailure | AgendaScheduleChangedFailure | AgendaInvalidAvailabilityWindowFailure | AgendaServiceCapacityExceededFailure | AgendaResourceCapacityExceededFailure | AgendaOverbookOutOfRangeFailure | AgendaOverbookUnavailableFailure | AgendaStudyOverbookingNotAllowedFailure | AgendaInvalidSlotTokenFailure | AgendaBirthDateRequiredFailure | AgendaAgeNotEligibleFailure | AgendaIntakeSettingsVersionMismatchFailure | AgendaPayerNameTakenFailure | AgendaPayerVersionMismatchFailure | AgendaLocationVersionMismatchFailure | AgendaProfileVersionMismatchFailure | AgendaProviderDisabledFailure | AgendaBindingVersionMismatchFailure | AgendaResourceVersionMismatchFailure | AgendaScheduleRuleAgendaMismatchFailure | AgendaScheduleRuleExpectedVersionRequiredFailure | AgendaScheduleRuleVersionMismatchFailure | AgendaScheduleRulesChangedFailure | AgendaServiceVersionMismatchFailure | AgendaOfferingVersionMismatchFailure | AgendaSameResourceFailure | AgendaTargetInactiveFailure | AgendaSlotRequiredFailure | AgendaArbolSettingsVersionMismatchFailure | AgendaNotificationSettingsVersionMismatchFailure | AgendaOrganizationVersionMismatchFailure | AgendaPatientDocumentTakenFailure | AgendaPatientVersionMismatchFailure | AgendaDailyReportTooLargeFailure | AgendaReportSettingsVersionMismatchFailure | AgendaReportNotificationsDisabledFailure | AgendaReportRecipientsRequiredFailure | AgendaWaitlistEntryVersionMismatchFailure | AgendaRemovalJobConflictFailure | AgendaFollowupSettingsVersionMismatchFailure | AgendaFollowupDisabledFailure | AgendaFollowupConsentRequiredFailure | AgendaPatientEmailRequiredFailure | AgendaPatientArchivedFailure | AgendaRecallAlreadyActiveFailure | AgendaRecallMonthPassedFailure | AgendaRecallVisitRequiredFailure | AgendaRecallVisitInFutureFailure | AgendaRecallVersionMismatchFailure | AgendaSlotOfferNotAllowedFailure | AgendaSlotOfferMismatchFailure | AgendaSlotOfferTooSoonFailure | AgendaSlotOfferAlreadyOpenFailure | AgendaSlotOfferClosedFailure;
|
|
117
|
+
/**
|
|
118
|
+
* A failed answer.
|
|
119
|
+
*/
|
|
120
|
+
export interface AgendaListServicesForbiddenError {
|
|
121
|
+
data: null;
|
|
122
|
+
error: AgendaListServicesForbiddenFailure;
|
|
123
|
+
/**
|
|
124
|
+
* What every answer carries besides its data or error.
|
|
125
|
+
*/
|
|
126
|
+
metadata: ResponseMetadata;
|
|
127
|
+
success: false;
|
|
128
|
+
}
|
|
129
|
+
export type AgendaListServicesForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
|
|
130
|
+
/**
|
|
131
|
+
* A failed answer.
|
|
132
|
+
*/
|
|
133
|
+
export interface AgendaListServicesServiceUnavailableError {
|
|
134
|
+
data: null;
|
|
135
|
+
error: AgendaListServicesServiceUnavailableFailure;
|
|
136
|
+
/**
|
|
137
|
+
* What every answer carries besides its data or error.
|
|
138
|
+
*/
|
|
139
|
+
metadata: ResponseMetadata;
|
|
140
|
+
success: false;
|
|
141
|
+
}
|
|
142
|
+
export type AgendaListServicesServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
|
|
143
|
+
/**
|
|
144
|
+
* A failed answer.
|
|
145
|
+
*/
|
|
146
|
+
export interface AgendaListServicesUnsupportedMediaTypeError {
|
|
147
|
+
data: null;
|
|
148
|
+
error: AgendaListServicesUnsupportedMediaTypeFailure;
|
|
149
|
+
/**
|
|
150
|
+
* What every answer carries besides its data or error.
|
|
151
|
+
*/
|
|
152
|
+
metadata: ResponseMetadata;
|
|
153
|
+
success: false;
|
|
154
|
+
}
|
|
155
|
+
export type AgendaListServicesUnsupportedMediaTypeFailure = AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
|
|
2
156
|
export interface AgendaService {
|
|
3
157
|
/**
|
|
4
158
|
* Service duration in minutes used as the default when configuring an
|
|
@@ -59,5 +213,124 @@ export interface AgendaServicePage {
|
|
|
59
213
|
*/
|
|
60
214
|
pageInfo: PageInfo;
|
|
61
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* A successful answer.
|
|
218
|
+
*/
|
|
219
|
+
export interface AgendaServicePageResponse {
|
|
220
|
+
data: AgendaServicePage;
|
|
221
|
+
error: null;
|
|
222
|
+
/**
|
|
223
|
+
* What every answer carries besides its data or error.
|
|
224
|
+
*/
|
|
225
|
+
metadata: ResponseMetadata;
|
|
226
|
+
success: true;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* A successful answer.
|
|
230
|
+
*/
|
|
231
|
+
export interface AgendaServiceResponse {
|
|
232
|
+
data: AgendaService;
|
|
233
|
+
error: null;
|
|
234
|
+
/**
|
|
235
|
+
* What every answer carries besides its data or error.
|
|
236
|
+
*/
|
|
237
|
+
metadata: ResponseMetadata;
|
|
238
|
+
success: true;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* A failed answer.
|
|
242
|
+
*/
|
|
243
|
+
export interface AgendaUpdateServiceBadRequestError {
|
|
244
|
+
data: null;
|
|
245
|
+
error: AgendaUpdateServiceBadRequestFailure;
|
|
246
|
+
/**
|
|
247
|
+
* What every answer carries besides its data or error.
|
|
248
|
+
*/
|
|
249
|
+
metadata: ResponseMetadata;
|
|
250
|
+
success: false;
|
|
251
|
+
}
|
|
252
|
+
export type AgendaUpdateServiceBadRequestFailure = InvalidInputFailure | AgendaWaitlistServiceUnavailableFailure | AgendaWaitlistResourceUnavailableFailure | AgendaWaitlistResourceAmbiguousFailure | AgendaInvalidAppointmentIntakeFailure | AgendaInvalidPatientFieldsFailure | AgendaDurationChangeOffFailure | AgendaDurationNotAllowedFailure | AgendaStudyLengthNotOfferedFailure | AgendaInvalidFileKindFailure | AgendaInvalidFileNameFailure | AgendaInvalidIdTokenFailure | AgendaInvalidJsonFailure | AgendaInvalidWindowFailure | AgendaUnexpectedQueryParametersFailure | AgendaInvalidBodyFailure;
|
|
253
|
+
export interface AgendaUpdateServiceBody {
|
|
254
|
+
/**
|
|
255
|
+
* Default appointment duration for this service, in minutes. Each offering
|
|
256
|
+
* can specify its own duration.
|
|
257
|
+
*/
|
|
258
|
+
defaultDurationMinutes?: number;
|
|
259
|
+
/**
|
|
260
|
+
* Bounded JSON configuration owned by this catalog record, including
|
|
261
|
+
* supported domain settings.
|
|
262
|
+
*/
|
|
263
|
+
details?: {
|
|
264
|
+
[key: string]: unknown;
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* Version last read by the caller. The mutation fails if another writer has
|
|
268
|
+
* changed this record.
|
|
269
|
+
*/
|
|
270
|
+
expectedVersion: number;
|
|
271
|
+
/**
|
|
272
|
+
* Display name of this catalog or configuration record.
|
|
273
|
+
*/
|
|
274
|
+
name?: string;
|
|
275
|
+
/**
|
|
276
|
+
* Lifecycle state controlling whether this record remains available to its
|
|
277
|
+
* domain consumers.
|
|
278
|
+
*/
|
|
279
|
+
status?: "active" | "inactive";
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* A failed answer.
|
|
283
|
+
*/
|
|
284
|
+
export interface AgendaUpdateServiceConflictError {
|
|
285
|
+
data: null;
|
|
286
|
+
error: AgendaUpdateServiceConflictFailure;
|
|
287
|
+
/**
|
|
288
|
+
* What every answer carries besides its data or error.
|
|
289
|
+
*/
|
|
290
|
+
metadata: ResponseMetadata;
|
|
291
|
+
success: false;
|
|
292
|
+
}
|
|
293
|
+
export type AgendaUpdateServiceConflictFailure = AgendaPayerStaffOnlyFailure | AgendaAppointmentNotRemindableFailure | AgendaAppointmentWithoutPatientFailure | AgendaArbolCatalogTooLargeFailure | AgendaArbolConfigurationRequiredFailure | AgendaNotificationsNotSetUpFailure | AgendaSameOfferingFailure | AgendaSameServiceFailure | AgendaInvalidHoldPayloadFailure | AgendaHoldNotActiveFailure | AgendaAppointmentClosedFailure | AgendaAppointmentVersionMismatchFailure | AgendaAppointmentNotMovableFailure | AgendaServiceChangedFailure | AgendaScheduleChangedFailure | AgendaInvalidAvailabilityWindowFailure | AgendaServiceCapacityExceededFailure | AgendaResourceCapacityExceededFailure | AgendaOverbookOutOfRangeFailure | AgendaOverbookUnavailableFailure | AgendaStudyOverbookingNotAllowedFailure | AgendaInvalidSlotTokenFailure | AgendaBirthDateRequiredFailure | AgendaAgeNotEligibleFailure | AgendaIntakeSettingsVersionMismatchFailure | AgendaPayerNameTakenFailure | AgendaPayerVersionMismatchFailure | AgendaLocationVersionMismatchFailure | AgendaProfileVersionMismatchFailure | AgendaProviderDisabledFailure | AgendaBindingVersionMismatchFailure | AgendaResourceVersionMismatchFailure | AgendaScheduleRuleAgendaMismatchFailure | AgendaScheduleRuleExpectedVersionRequiredFailure | AgendaScheduleRuleVersionMismatchFailure | AgendaScheduleRulesChangedFailure | AgendaServiceVersionMismatchFailure | AgendaOfferingVersionMismatchFailure | AgendaSameResourceFailure | AgendaTargetInactiveFailure | AgendaSlotRequiredFailure | AgendaArbolSettingsVersionMismatchFailure | AgendaNotificationSettingsVersionMismatchFailure | AgendaOrganizationVersionMismatchFailure | AgendaPatientDocumentTakenFailure | AgendaPatientVersionMismatchFailure | AgendaDailyReportTooLargeFailure | AgendaReportSettingsVersionMismatchFailure | AgendaReportNotificationsDisabledFailure | AgendaReportRecipientsRequiredFailure | AgendaWaitlistEntryVersionMismatchFailure | AgendaRemovalJobConflictFailure | AgendaFollowupSettingsVersionMismatchFailure | AgendaFollowupDisabledFailure | AgendaFollowupConsentRequiredFailure | AgendaPatientEmailRequiredFailure | AgendaPatientArchivedFailure | AgendaRecallAlreadyActiveFailure | AgendaRecallMonthPassedFailure | AgendaRecallVisitRequiredFailure | AgendaRecallVisitInFutureFailure | AgendaRecallVersionMismatchFailure | AgendaSlotOfferNotAllowedFailure | AgendaSlotOfferMismatchFailure | AgendaSlotOfferTooSoonFailure | AgendaSlotOfferAlreadyOpenFailure | AgendaSlotOfferClosedFailure;
|
|
294
|
+
/**
|
|
295
|
+
* A failed answer.
|
|
296
|
+
*/
|
|
297
|
+
export interface AgendaUpdateServiceForbiddenError {
|
|
298
|
+
data: null;
|
|
299
|
+
error: AgendaUpdateServiceForbiddenFailure;
|
|
300
|
+
/**
|
|
301
|
+
* What every answer carries besides its data or error.
|
|
302
|
+
*/
|
|
303
|
+
metadata: ResponseMetadata;
|
|
304
|
+
success: false;
|
|
305
|
+
}
|
|
306
|
+
export type AgendaUpdateServiceForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
|
|
307
|
+
/**
|
|
308
|
+
* A failed answer.
|
|
309
|
+
*/
|
|
310
|
+
export interface AgendaUpdateServiceServiceUnavailableError {
|
|
311
|
+
data: null;
|
|
312
|
+
error: AgendaUpdateServiceServiceUnavailableFailure;
|
|
313
|
+
/**
|
|
314
|
+
* What every answer carries besides its data or error.
|
|
315
|
+
*/
|
|
316
|
+
metadata: ResponseMetadata;
|
|
317
|
+
success: false;
|
|
318
|
+
}
|
|
319
|
+
export type AgendaUpdateServiceServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
|
|
320
|
+
/**
|
|
321
|
+
* A failed answer.
|
|
322
|
+
*/
|
|
323
|
+
export interface AgendaUpdateServiceUnsupportedMediaTypeError {
|
|
324
|
+
data: null;
|
|
325
|
+
error: AgendaUpdateServiceUnsupportedMediaTypeFailure;
|
|
326
|
+
/**
|
|
327
|
+
* What every answer carries besides its data or error.
|
|
328
|
+
*/
|
|
329
|
+
metadata: ResponseMetadata;
|
|
330
|
+
success: false;
|
|
331
|
+
}
|
|
332
|
+
export type AgendaUpdateServiceUnsupportedMediaTypeFailure = UnsupportedMediaTypeFailure | AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
|
|
62
333
|
export declare const AgendaServiceCodec: import("../../_/codec.js").Codec;
|
|
63
334
|
export declare const AgendaServicePageCodec: import("../../_/codec.js").Codec;
|
|
335
|
+
export declare const AgendaServicePageResponseCodec: import("../../_/codec.js").Codec;
|
|
336
|
+
export declare const AgendaServiceResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -7,3 +7,9 @@ export const AgendaServiceCodec = object([
|
|
|
7
7
|
export const AgendaServicePageCodec = object([
|
|
8
8
|
["data", null, array(() => AgendaServiceCodec)],
|
|
9
9
|
]);
|
|
10
|
+
export const AgendaServicePageResponseCodec = object([
|
|
11
|
+
["data", null, () => AgendaServicePageCodec],
|
|
12
|
+
]);
|
|
13
|
+
export const AgendaServiceResponseCodec = object([
|
|
14
|
+
["data", null, () => AgendaServiceCodec],
|
|
15
|
+
]);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type AgendaWaitlistEntry, type AgendaWaitlistEntryPage } from "./models.js";
|
|
2
|
+
import { type AgendaAddAgentWaitlistEntryBody, type AgendaCreateWaitlistEntryBody, type AgendaUpdateWaitlistEntryBody, type AgendaWaitlistEntryPageResponse, type AgendaWaitlistEntryResponse } from "./models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -100,163 +99,10 @@ export interface Client {
|
|
|
100
99
|
}
|
|
101
100
|
export declare function createClient(options: ClientOptions): Client;
|
|
102
101
|
export declare function bind(transport: Transport): Client;
|
|
103
|
-
export
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
appointmentId?: string | null;
|
|
108
|
-
/**
|
|
109
|
-
* Agent conversation URL retained so the scheduling team can reopen the
|
|
110
|
-
* referring conversation.
|
|
111
|
-
*/
|
|
112
|
-
conversationUrl?: string | null;
|
|
113
|
-
/**
|
|
114
|
-
* Desk note attached to the waiting-list entry; null means no note is
|
|
115
|
-
* recorded.
|
|
116
|
-
*/
|
|
117
|
-
note?: string | null;
|
|
118
|
-
patient: {
|
|
119
|
-
document?: string | null;
|
|
120
|
-
documentNumber?: string | null;
|
|
121
|
-
documentType?: string | null;
|
|
122
|
-
name: string;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* Registered patient selected by the desk; document resolution remains
|
|
126
|
-
* authoritative for patient identity.
|
|
127
|
-
*/
|
|
128
|
-
patientId?: string;
|
|
129
|
-
/**
|
|
130
|
-
* The payer the patient named, as said.
|
|
131
|
-
*/
|
|
132
|
-
payer?: string | null;
|
|
133
|
-
/**
|
|
134
|
-
* Patient contact telephone number; null when no number was recorded.
|
|
135
|
-
*/
|
|
136
|
-
phone?: string | null;
|
|
137
|
-
/**
|
|
138
|
-
* Patient availability preferences retained with the waiting-list entry.
|
|
139
|
-
*/
|
|
140
|
-
preferences?: {
|
|
141
|
-
from?: Temporal.PlainDate | null;
|
|
142
|
-
times?: string | null;
|
|
143
|
-
to?: Temporal.PlainDate | null;
|
|
144
|
-
};
|
|
145
|
-
/**
|
|
146
|
-
* Whether the waiting-list entry requests normal handling or an urgent
|
|
147
|
-
* appointment.
|
|
148
|
-
*/
|
|
149
|
-
priority?: "normal" | "urgent";
|
|
150
|
-
/**
|
|
151
|
-
* Why: by hand, a payer only the team books, or a priority to bring forward.
|
|
152
|
-
*/
|
|
153
|
-
reason?: "manual" | "payer_review" | "priority";
|
|
154
|
-
/**
|
|
155
|
-
* One professional or agenda: copy agendas[].id from bookingOfferings.list,
|
|
156
|
-
* never the offering id or a rewritten prefix. Null means no Agenda resource
|
|
157
|
-
* filter; retain any external professional restriction explicitly in note.
|
|
158
|
-
*/
|
|
159
|
-
resourceId?: string | null;
|
|
160
|
-
/**
|
|
161
|
-
* The requested professional or agenda name. Resolves only one active agenda
|
|
162
|
-
* offering this service, ignoring accents and professional titles. If
|
|
163
|
-
* resourceId is supplied too, it must identify the same agenda. For a
|
|
164
|
-
* documented external professional absent from Agenda, omit
|
|
165
|
-
* resourceName/resourceId and explicitly restrict the manual request to that
|
|
166
|
-
* professional in note.
|
|
167
|
-
*/
|
|
168
|
-
resourceName?: string;
|
|
169
|
-
/**
|
|
170
|
-
* Service identifier within the authenticated organization.
|
|
171
|
-
*/
|
|
172
|
-
serviceId: string;
|
|
173
|
-
}
|
|
174
|
-
export interface CreateResponse {
|
|
175
|
-
data: AgendaWaitlistEntry;
|
|
176
|
-
error: null;
|
|
177
|
-
metadata: AgendaResponseMetadata;
|
|
178
|
-
success: true;
|
|
179
|
-
}
|
|
180
|
-
export interface JoinRequest {
|
|
181
|
-
/**
|
|
182
|
-
* The appointment it relates to: a priority to bring forward.
|
|
183
|
-
*/
|
|
184
|
-
appointmentId?: string | null;
|
|
185
|
-
/**
|
|
186
|
-
* The conversation's channel, set by the platform. It changes nothing in
|
|
187
|
-
* Agenda; omit it.
|
|
188
|
-
*/
|
|
189
|
-
channel?: "voice" | "whatsapp" | "web";
|
|
190
|
-
/**
|
|
191
|
-
* The platform's id for the organization's Agenda, set by the platform. An
|
|
192
|
-
* organization has one Agenda, so it selects nothing; omit it.
|
|
193
|
-
*/
|
|
194
|
-
connectionId?: string;
|
|
195
|
-
/**
|
|
196
|
-
* Agent conversation URL retained so the scheduling team can reopen the
|
|
197
|
-
* referring conversation.
|
|
198
|
-
*/
|
|
199
|
-
conversationUrl?: string | null;
|
|
200
|
-
/**
|
|
201
|
-
* Desk note attached to the waiting-list entry; null means no note is
|
|
202
|
-
* recorded.
|
|
203
|
-
*/
|
|
204
|
-
note?: string | null;
|
|
205
|
-
patient: {
|
|
206
|
-
document?: string | null;
|
|
207
|
-
documentNumber?: string | null;
|
|
208
|
-
documentType?: string | null;
|
|
209
|
-
name: string;
|
|
210
|
-
};
|
|
211
|
-
/**
|
|
212
|
-
* The payer the patient named, as said.
|
|
213
|
-
*/
|
|
214
|
-
payer?: string | null;
|
|
215
|
-
/**
|
|
216
|
-
* The contact phone supplied or confirmed by the person for this request.
|
|
217
|
-
* Replaces their stored contact phone; omitted or null preserves it.
|
|
218
|
-
*/
|
|
219
|
-
phone?: string | null;
|
|
220
|
-
/**
|
|
221
|
-
* Patient availability preferences retained with the waiting-list entry.
|
|
222
|
-
*/
|
|
223
|
-
preferences?: {
|
|
224
|
-
from?: Temporal.PlainDate | null;
|
|
225
|
-
times?: string | null;
|
|
226
|
-
to?: Temporal.PlainDate | null;
|
|
227
|
-
};
|
|
228
|
-
/**
|
|
229
|
-
* manual records a consented waitlist request after no suitable availability;
|
|
230
|
-
* payer_review asks staff to coordinate a restricted payer; priority asks
|
|
231
|
-
* staff to bring an existing booking forward.
|
|
232
|
-
*/
|
|
233
|
-
reason: "manual" | "payer_review" | "priority";
|
|
234
|
-
/**
|
|
235
|
-
* One professional or agenda: copy agendas[].id from bookingOfferings.list,
|
|
236
|
-
* never the offering id or a rewritten prefix. Null means no Agenda resource
|
|
237
|
-
* filter; retain any external professional restriction explicitly in note.
|
|
238
|
-
*/
|
|
239
|
-
resourceId?: string | null;
|
|
240
|
-
/**
|
|
241
|
-
* The requested professional or agenda name. Resolves only one active agenda
|
|
242
|
-
* offering this service, ignoring accents and professional titles. If
|
|
243
|
-
* resourceId is supplied too, it must identify the same agenda. For a
|
|
244
|
-
* documented external professional absent from Agenda, omit
|
|
245
|
-
* resourceName/resourceId and explicitly restrict the manual request to that
|
|
246
|
-
* professional in note.
|
|
247
|
-
*/
|
|
248
|
-
resourceName?: string;
|
|
249
|
-
/**
|
|
250
|
-
* Service identifier within the authenticated organization.
|
|
251
|
-
*/
|
|
252
|
-
serviceId: string;
|
|
253
|
-
}
|
|
254
|
-
export interface JoinResponse {
|
|
255
|
-
data: AgendaWaitlistEntry;
|
|
256
|
-
error: null;
|
|
257
|
-
metadata: AgendaResponseMetadata;
|
|
258
|
-
success: true;
|
|
259
|
-
}
|
|
102
|
+
export type CreateRequest = AgendaCreateWaitlistEntryBody;
|
|
103
|
+
export type CreateResponse = AgendaWaitlistEntryResponse;
|
|
104
|
+
export type JoinRequest = AgendaAddAgentWaitlistEntryBody;
|
|
105
|
+
export type JoinResponse = AgendaWaitlistEntryResponse;
|
|
260
106
|
export interface ListRequest {
|
|
261
107
|
/**
|
|
262
108
|
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
@@ -288,65 +134,11 @@ export interface ListRequest {
|
|
|
288
134
|
*/
|
|
289
135
|
serviceId?: string;
|
|
290
136
|
}
|
|
291
|
-
export
|
|
292
|
-
|
|
293
|
-
error: null;
|
|
294
|
-
metadata: AgendaResponseMetadata;
|
|
295
|
-
success: true;
|
|
296
|
-
}
|
|
297
|
-
export interface UpdateRequest {
|
|
137
|
+
export type ListResponse = AgendaWaitlistEntryPageResponse;
|
|
138
|
+
export type UpdateRequest = {
|
|
298
139
|
/**
|
|
299
140
|
* Organization-owned waiting-list entry identifier.
|
|
300
141
|
*/
|
|
301
142
|
waitlistEntryId: string;
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
* association.
|
|
305
|
-
*/
|
|
306
|
-
appointmentId?: string | null;
|
|
307
|
-
/**
|
|
308
|
-
* HTTPS link to the originating Arbol conversation on an admitted product
|
|
309
|
-
* hostname; null when absent.
|
|
310
|
-
*/
|
|
311
|
-
conversationUrl?: string | null;
|
|
312
|
-
/**
|
|
313
|
-
* Version last read by the caller. The mutation fails if another writer has
|
|
314
|
-
* changed this record.
|
|
315
|
-
*/
|
|
316
|
-
expectedVersion: number;
|
|
317
|
-
/**
|
|
318
|
-
* Desk note attached to the waiting-list entry; null means no note is
|
|
319
|
-
* recorded.
|
|
320
|
-
*/
|
|
321
|
-
note?: string | null;
|
|
322
|
-
preferences?: {
|
|
323
|
-
from?: Temporal.PlainDate | null;
|
|
324
|
-
times?: string | null;
|
|
325
|
-
to?: Temporal.PlainDate | null;
|
|
326
|
-
};
|
|
327
|
-
/**
|
|
328
|
-
* Whether the waiting-list entry requests normal handling or an urgent
|
|
329
|
-
* appointment.
|
|
330
|
-
*/
|
|
331
|
-
priority?: "normal" | "urgent";
|
|
332
|
-
resourceId?: string | null;
|
|
333
|
-
/**
|
|
334
|
-
* The requested professional or agenda name. Resolves only one active agenda
|
|
335
|
-
* offering this service, ignoring accents and professional titles. If
|
|
336
|
-
* resourceId is supplied too, it must identify the same agenda. For a
|
|
337
|
-
* documented external professional absent from Agenda, omit
|
|
338
|
-
* resourceName/resourceId and explicitly restrict the manual request to that
|
|
339
|
-
* professional in note.
|
|
340
|
-
*/
|
|
341
|
-
resourceName?: string;
|
|
342
|
-
/**
|
|
343
|
-
* Current waiting-list state: waiting, contacted, booked, expired or removed.
|
|
344
|
-
*/
|
|
345
|
-
status?: "waiting" | "offered" | "booked" | "cancelled";
|
|
346
|
-
}
|
|
347
|
-
export interface UpdateResponse {
|
|
348
|
-
data: AgendaWaitlistEntry;
|
|
349
|
-
error: null;
|
|
350
|
-
metadata: AgendaResponseMetadata;
|
|
351
|
-
success: true;
|
|
352
|
-
}
|
|
143
|
+
} & AgendaUpdateWaitlistEntryBody;
|
|
144
|
+
export type UpdateResponse = AgendaWaitlistEntryResponse;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
import { Transport,
|
|
4
|
-
import {
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { AgendaAddAgentWaitlistEntryBodyCodec, AgendaCreateWaitlistEntryBodyCodec, AgendaUpdateWaitlistEntryBodyCodec, AgendaWaitlistEntryPageResponseCodec, AgendaWaitlistEntryResponseCodec, } from "./models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -17,30 +17,30 @@ const CreateOperation = {
|
|
|
17
17
|
method: "POST",
|
|
18
18
|
route: "/v1/agenda/waitlist",
|
|
19
19
|
body: "flat",
|
|
20
|
-
request:
|
|
21
|
-
response:
|
|
22
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
20
|
+
request: AgendaCreateWaitlistEntryBodyCodec,
|
|
21
|
+
response: AgendaWaitlistEntryResponseCodec,
|
|
22
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "426": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
23
23
|
};
|
|
24
24
|
const JoinOperation = {
|
|
25
25
|
method: "POST",
|
|
26
26
|
route: "/v1/agenda/waitlist/join",
|
|
27
27
|
body: "flat",
|
|
28
|
-
request:
|
|
29
|
-
response:
|
|
30
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
28
|
+
request: AgendaAddAgentWaitlistEntryBodyCodec,
|
|
29
|
+
response: AgendaWaitlistEntryResponseCodec,
|
|
30
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "426": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
31
31
|
};
|
|
32
32
|
const ListOperation = {
|
|
33
33
|
method: "GET",
|
|
34
34
|
route: "/v1/agenda/waitlist",
|
|
35
35
|
query: { cursor: "cursor", direction: "direction", limit: "limit", offeringId: "offeringId", resourceId: "resourceId", serviceId: "serviceId" },
|
|
36
|
-
response:
|
|
37
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
36
|
+
response: AgendaWaitlistEntryPageResponseCodec,
|
|
37
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "415": true, "426": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
38
38
|
};
|
|
39
39
|
const UpdateOperation = {
|
|
40
40
|
method: "PATCH",
|
|
41
41
|
route: "/v1/agenda/waitlist/{waitlistEntryId}",
|
|
42
42
|
body: "flat",
|
|
43
|
-
request:
|
|
44
|
-
response:
|
|
45
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
43
|
+
request: AgendaUpdateWaitlistEntryBodyCodec,
|
|
44
|
+
response: AgendaWaitlistEntryResponseCodec,
|
|
45
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "426": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
46
46
|
};
|