@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
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import type { ForbiddenFailure, InvalidInputFailure, ResponseMetadata, 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 AgendaGetAgentBookingRequirementsBadRequestError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: AgendaGetAgentBookingRequirementsBadRequestFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type AgendaGetAgentBookingRequirementsBadRequestFailure = InvalidInputFailure | AgendaWaitlistServiceUnavailableFailure | AgendaWaitlistResourceUnavailableFailure | AgendaWaitlistResourceAmbiguousFailure | AgendaInvalidAppointmentIntakeFailure | AgendaInvalidPatientFieldsFailure | AgendaDurationChangeOffFailure | AgendaDurationNotAllowedFailure | AgendaStudyLengthNotOfferedFailure | AgendaInvalidFileKindFailure | AgendaInvalidFileNameFailure | AgendaInvalidIdTokenFailure | AgendaInvalidJsonFailure | AgendaInvalidWindowFailure | AgendaUnexpectedQueryParametersFailure | AgendaInvalidBodyFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface AgendaGetAgentBookingRequirementsConflictError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: AgendaGetAgentBookingRequirementsConflictFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type AgendaGetAgentBookingRequirementsConflictFailure = 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;
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface AgendaGetAgentBookingRequirementsForbiddenError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: AgendaGetAgentBookingRequirementsForbiddenFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
export type AgendaGetAgentBookingRequirementsForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
|
|
42
|
+
export interface AgendaGetAgentBookingRequirementsResult {
|
|
43
|
+
/**
|
|
44
|
+
* Staff duration override policy; it changes one appointment without changing
|
|
45
|
+
* the service’s standard duration.
|
|
46
|
+
*/
|
|
47
|
+
bookingDuration: {
|
|
48
|
+
enabled: boolean;
|
|
49
|
+
maxMinutes: number;
|
|
50
|
+
minMinutes: number;
|
|
51
|
+
stepMinutes: 1 | 5 | 10 | 15 | 20 | 30 | 60;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Organization-defined intake fields with stable keys retained in recorded
|
|
55
|
+
* values.
|
|
56
|
+
*/
|
|
57
|
+
customFields: {
|
|
58
|
+
help: string | null;
|
|
59
|
+
key: string;
|
|
60
|
+
label: string;
|
|
61
|
+
options: string[];
|
|
62
|
+
required: boolean;
|
|
63
|
+
status: "active" | "archived";
|
|
64
|
+
type: "text" | "number" | "date" | "select" | "checkbox";
|
|
65
|
+
}[];
|
|
66
|
+
/**
|
|
67
|
+
* Configured document types; inactive types remain valid on existing records.
|
|
68
|
+
*/
|
|
69
|
+
documentTypes: {
|
|
70
|
+
code: string;
|
|
71
|
+
description: string;
|
|
72
|
+
name: string;
|
|
73
|
+
status: "active" | "inactive";
|
|
74
|
+
}[];
|
|
75
|
+
/**
|
|
76
|
+
* Modes controlling which built-in intake fields are displayed or required.
|
|
77
|
+
*/
|
|
78
|
+
fields: {
|
|
79
|
+
authorization: "off" | "optional" | "required";
|
|
80
|
+
conversationUrl: "off" | "optional";
|
|
81
|
+
document: "optional" | "required";
|
|
82
|
+
email: "off" | "optional" | "required";
|
|
83
|
+
notes: "off" | "optional" | "required";
|
|
84
|
+
payer: "off" | "optional" | "required";
|
|
85
|
+
phone: "off" | "optional" | "required";
|
|
86
|
+
priority: "off" | "on";
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Organization-defined labels and examples for built-in intake fields.
|
|
90
|
+
*/
|
|
91
|
+
labels: {
|
|
92
|
+
authorization: {
|
|
93
|
+
label: string;
|
|
94
|
+
placeholder: string;
|
|
95
|
+
};
|
|
96
|
+
document: {
|
|
97
|
+
label: string;
|
|
98
|
+
placeholder: string;
|
|
99
|
+
};
|
|
100
|
+
email: {
|
|
101
|
+
label: string;
|
|
102
|
+
placeholder: string;
|
|
103
|
+
};
|
|
104
|
+
name: {
|
|
105
|
+
label: string;
|
|
106
|
+
placeholder: string;
|
|
107
|
+
};
|
|
108
|
+
notes: {
|
|
109
|
+
label: string;
|
|
110
|
+
placeholder: string;
|
|
111
|
+
};
|
|
112
|
+
phone: {
|
|
113
|
+
label: string;
|
|
114
|
+
placeholder: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Stable resource discriminator identifying the response object kind.
|
|
119
|
+
*/
|
|
120
|
+
object: "scheduling.intake_settings";
|
|
121
|
+
/**
|
|
122
|
+
* Organization-specific display name for the payer selector.
|
|
123
|
+
*/
|
|
124
|
+
payerLabel: string;
|
|
125
|
+
/**
|
|
126
|
+
* Active payer booking policies and attended sites admitted by the
|
|
127
|
+
* organization’s current intake modules.
|
|
128
|
+
*/
|
|
129
|
+
payers: {
|
|
130
|
+
bookingPolicy: "open" | "staff_only";
|
|
131
|
+
name: string;
|
|
132
|
+
sites: string[];
|
|
133
|
+
sitesNote: string | null;
|
|
134
|
+
}[];
|
|
135
|
+
/**
|
|
136
|
+
* ISO 8601 instant of the latest persisted change; null when this
|
|
137
|
+
* configuration has never been saved.
|
|
138
|
+
*/
|
|
139
|
+
updatedAt: string | null;
|
|
140
|
+
/**
|
|
141
|
+
* Persisted revision used to detect concurrent edits.
|
|
142
|
+
*/
|
|
143
|
+
version: number;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* A successful answer.
|
|
147
|
+
*/
|
|
148
|
+
export interface AgendaGetAgentBookingRequirementsResultResponse {
|
|
149
|
+
data: AgendaGetAgentBookingRequirementsResult;
|
|
150
|
+
error: null;
|
|
151
|
+
/**
|
|
152
|
+
* What every answer carries besides its data or error.
|
|
153
|
+
*/
|
|
154
|
+
metadata: ResponseMetadata;
|
|
155
|
+
success: true;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* A failed answer.
|
|
159
|
+
*/
|
|
160
|
+
export interface AgendaGetAgentBookingRequirementsServiceUnavailableError {
|
|
161
|
+
data: null;
|
|
162
|
+
error: AgendaGetAgentBookingRequirementsServiceUnavailableFailure;
|
|
163
|
+
/**
|
|
164
|
+
* What every answer carries besides its data or error.
|
|
165
|
+
*/
|
|
166
|
+
metadata: ResponseMetadata;
|
|
167
|
+
success: false;
|
|
168
|
+
}
|
|
169
|
+
export type AgendaGetAgentBookingRequirementsServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
|
|
170
|
+
/**
|
|
171
|
+
* A failed answer.
|
|
172
|
+
*/
|
|
173
|
+
export interface AgendaGetAgentBookingRequirementsUnsupportedMediaTypeError {
|
|
174
|
+
data: null;
|
|
175
|
+
error: AgendaGetAgentBookingRequirementsUnsupportedMediaTypeFailure;
|
|
176
|
+
/**
|
|
177
|
+
* What every answer carries besides its data or error.
|
|
178
|
+
*/
|
|
179
|
+
metadata: ResponseMetadata;
|
|
180
|
+
success: false;
|
|
181
|
+
}
|
|
182
|
+
export type AgendaGetAgentBookingRequirementsUnsupportedMediaTypeFailure = AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type AgendaSlotPageResponse } from "../models.js";
|
|
3
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
4
4
|
/**
|
|
5
5
|
* The URL the paths of the API are relative to.
|
|
@@ -70,9 +70,4 @@ export interface ListRequest {
|
|
|
70
70
|
*/
|
|
71
71
|
connectionId?: string;
|
|
72
72
|
}
|
|
73
|
-
export
|
|
74
|
-
data: AgendaSlotPage;
|
|
75
|
-
error: null;
|
|
76
|
-
metadata: AgendaResponseMetadata;
|
|
77
|
-
success: true;
|
|
78
|
-
}
|
|
73
|
+
export type ListResponse = AgendaSlotPageResponse;
|
|
@@ -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 { AgendaSlotPageResponseCodec, } from "../models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -14,6 +14,7 @@ const ListOperation = {
|
|
|
14
14
|
method: "GET",
|
|
15
15
|
route: "/v1/agenda/booking-slots",
|
|
16
16
|
query: { cursor: "cursor", direction: "direction", limit: "limit", excludeAppointmentId: "excludeAppointmentId", from: "from", offeringId: "offeringId", preferredResourceIds: "preferredResourceIds", timezone: "timezone", to: "to", channel: "channel", connectionId: "connectionId" },
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
joined: ["preferredResourceIds"],
|
|
18
|
+
response: AgendaSlotPageResponseCodec,
|
|
19
|
+
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 },
|
|
19
20
|
};
|
|
@@ -2,3 +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 { AgendaFindBookableSlotsBadRequestError, AgendaFindBookableSlotsBadRequestFailure, AgendaFindBookableSlotsConflictError, AgendaFindBookableSlotsConflictFailure, AgendaFindBookableSlotsForbiddenError, AgendaFindBookableSlotsForbiddenFailure, AgendaFindBookableSlotsServiceUnavailableError, AgendaFindBookableSlotsServiceUnavailableFailure, AgendaFindBookableSlotsUnsupportedMediaTypeError, AgendaFindBookableSlotsUnsupportedMediaTypeFailure, } from "./models.js";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { ForbiddenFailure, InvalidInputFailure, ResponseMetadata, 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 AgendaFindBookableSlotsBadRequestError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: AgendaFindBookableSlotsBadRequestFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type AgendaFindBookableSlotsBadRequestFailure = InvalidInputFailure | AgendaWaitlistServiceUnavailableFailure | AgendaWaitlistResourceUnavailableFailure | AgendaWaitlistResourceAmbiguousFailure | AgendaInvalidAppointmentIntakeFailure | AgendaInvalidPatientFieldsFailure | AgendaDurationChangeOffFailure | AgendaDurationNotAllowedFailure | AgendaStudyLengthNotOfferedFailure | AgendaInvalidFileKindFailure | AgendaInvalidFileNameFailure | AgendaInvalidIdTokenFailure | AgendaInvalidJsonFailure | AgendaInvalidWindowFailure | AgendaUnexpectedQueryParametersFailure | AgendaInvalidBodyFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface AgendaFindBookableSlotsConflictError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: AgendaFindBookableSlotsConflictFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type AgendaFindBookableSlotsConflictFailure = 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;
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface AgendaFindBookableSlotsForbiddenError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: AgendaFindBookableSlotsForbiddenFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
export type AgendaFindBookableSlotsForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
|
|
42
|
+
/**
|
|
43
|
+
* A failed answer.
|
|
44
|
+
*/
|
|
45
|
+
export interface AgendaFindBookableSlotsServiceUnavailableError {
|
|
46
|
+
data: null;
|
|
47
|
+
error: AgendaFindBookableSlotsServiceUnavailableFailure;
|
|
48
|
+
/**
|
|
49
|
+
* What every answer carries besides its data or error.
|
|
50
|
+
*/
|
|
51
|
+
metadata: ResponseMetadata;
|
|
52
|
+
success: false;
|
|
53
|
+
}
|
|
54
|
+
export type AgendaFindBookableSlotsServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
|
|
55
|
+
/**
|
|
56
|
+
* A failed answer.
|
|
57
|
+
*/
|
|
58
|
+
export interface AgendaFindBookableSlotsUnsupportedMediaTypeError {
|
|
59
|
+
data: null;
|
|
60
|
+
error: AgendaFindBookableSlotsUnsupportedMediaTypeFailure;
|
|
61
|
+
/**
|
|
62
|
+
* What every answer carries besides its data or error.
|
|
63
|
+
*/
|
|
64
|
+
metadata: ResponseMetadata;
|
|
65
|
+
success: false;
|
|
66
|
+
}
|
|
67
|
+
export type AgendaFindBookableSlotsUnsupportedMediaTypeFailure = AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import { type
|
|
3
|
-
import { type
|
|
2
|
+
import { type AgendaAppointmentResponse } from "../models.js";
|
|
3
|
+
import { type AgendaBookAgentAppointmentBody, type AgendaBookingResponse, type AgendaCancelAgentAppointmentBody, type AgendaListAgentPatientAppointmentsBody, type AgendaListAgentPatientAppointmentsResultResponse, type AgendaRescheduleAgentAppointmentBody } from "./models.js";
|
|
4
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
5
|
/**
|
|
6
6
|
* The URL the paths of the API are relative to.
|
|
@@ -67,87 +67,16 @@ export interface Client {
|
|
|
67
67
|
}
|
|
68
68
|
export declare function createClient(options: ClientOptions): Client;
|
|
69
69
|
export declare function bind(transport: Transport): Client;
|
|
70
|
-
export
|
|
70
|
+
export type CancelRequest = {
|
|
71
71
|
/**
|
|
72
72
|
* Stable eng-prefixed Scheduling record identifier; ownership is checked in
|
|
73
73
|
* the authenticated organization.
|
|
74
74
|
*/
|
|
75
75
|
appointmentId: string;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
channel?: "voice" | "whatsapp" | "web";
|
|
81
|
-
/**
|
|
82
|
-
* The platform's id for the organization's Agenda, set by the platform. An
|
|
83
|
-
* organization has one Agenda, so it selects nothing; omit it.
|
|
84
|
-
*/
|
|
85
|
-
connectionId?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Cancellation reason explicitly provided by the person; recorded in
|
|
88
|
-
* appointment history.
|
|
89
|
-
*/
|
|
90
|
-
reason: string;
|
|
91
|
-
}
|
|
92
|
-
export interface CancelResponse {
|
|
93
|
-
data: AgendaAppointment;
|
|
94
|
-
error: null;
|
|
95
|
-
metadata: AgendaResponseMetadata;
|
|
96
|
-
success: true;
|
|
97
|
-
}
|
|
98
|
-
export interface CreateRequest {
|
|
99
|
-
/**
|
|
100
|
-
* The conversation's channel, set by the platform. It changes nothing in
|
|
101
|
-
* Agenda; omit it.
|
|
102
|
-
*/
|
|
103
|
-
channel?: "voice" | "whatsapp" | "web";
|
|
104
|
-
/**
|
|
105
|
-
* The platform's id for the organization's Agenda, set by the platform. An
|
|
106
|
-
* organization has one Agenda, so it selects nothing; omit it.
|
|
107
|
-
*/
|
|
108
|
-
connectionId?: string;
|
|
109
|
-
/**
|
|
110
|
-
* External contact reference associated with this booking; null when it has
|
|
111
|
-
* no external contact.
|
|
112
|
-
*/
|
|
113
|
-
contactId?: string | null;
|
|
114
|
-
/**
|
|
115
|
-
* Appointment-specific contact, payer, authorization and custom-field values;
|
|
116
|
-
* null when no intake was recorded.
|
|
117
|
-
*/
|
|
118
|
-
intake?: AgendaAppointmentIntakeInput | null;
|
|
119
|
-
/**
|
|
120
|
-
* Patient identity copied into the booking; null when no patient identity was
|
|
121
|
-
* supplied.
|
|
122
|
-
*/
|
|
123
|
-
patient?: {
|
|
124
|
-
document?: string | null;
|
|
125
|
-
documentNumber?: string | null;
|
|
126
|
-
documentType?: string | null;
|
|
127
|
-
name: string;
|
|
128
|
-
} | null;
|
|
129
|
-
/**
|
|
130
|
-
* Patient-supplied date of birth (YYYY-MM-DD), stored on the record and
|
|
131
|
-
* checked against service age eligibility.
|
|
132
|
-
*/
|
|
133
|
-
patientBirthDate?: Temporal.PlainDate;
|
|
134
|
-
/**
|
|
135
|
-
* Opaque signed token for one exact available slot. Use the returned token
|
|
136
|
-
* unchanged after the patient confirms that time.
|
|
137
|
-
*/
|
|
138
|
-
slotToken: string;
|
|
139
|
-
/**
|
|
140
|
-
* Desk-authored appointment title; null permits the service name to supply
|
|
141
|
-
* the display title.
|
|
142
|
-
*/
|
|
143
|
-
title?: string | null;
|
|
144
|
-
}
|
|
145
|
-
export interface CreateResponse {
|
|
146
|
-
data: AgendaBooking;
|
|
147
|
-
error: null;
|
|
148
|
-
metadata: AgendaResponseMetadata;
|
|
149
|
-
success: true;
|
|
150
|
-
}
|
|
76
|
+
} & AgendaCancelAgentAppointmentBody;
|
|
77
|
+
export type CancelResponse = AgendaAppointmentResponse;
|
|
78
|
+
export type CreateRequest = AgendaBookAgentAppointmentBody;
|
|
79
|
+
export type CreateResponse = AgendaBookingResponse;
|
|
151
80
|
export interface GetRequest {
|
|
152
81
|
/**
|
|
153
82
|
* Stable eng-prefixed Scheduling record identifier; ownership is checked in
|
|
@@ -165,118 +94,14 @@ export interface GetRequest {
|
|
|
165
94
|
*/
|
|
166
95
|
connectionId?: string;
|
|
167
96
|
}
|
|
168
|
-
export
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
success: true;
|
|
173
|
-
}
|
|
174
|
-
export interface LookupRequest {
|
|
175
|
-
/**
|
|
176
|
-
* The conversation's channel, set by the platform. It changes nothing in
|
|
177
|
-
* Agenda; omit it.
|
|
178
|
-
*/
|
|
179
|
-
channel?: "voice" | "whatsapp" | "web";
|
|
180
|
-
/**
|
|
181
|
-
* The platform's id for the organization's Agenda, set by the platform. An
|
|
182
|
-
* organization has one Agenda, so it selects nothing; omit it.
|
|
183
|
-
*/
|
|
184
|
-
connectionId?: string;
|
|
185
|
-
/**
|
|
186
|
-
* Deprecated: use `documentNumber`. Answered until 2027-01-28.
|
|
187
|
-
*
|
|
188
|
-
* @deprecated
|
|
189
|
-
*/
|
|
190
|
-
document?: string;
|
|
191
|
-
/**
|
|
192
|
-
* Exact patient document number; normalized for matching, with documentType
|
|
193
|
-
* needed when multiple types share the number.
|
|
194
|
-
*/
|
|
195
|
-
documentNumber?: string;
|
|
196
|
-
/**
|
|
197
|
-
* Document-type code from the organization’s configured active types. Input
|
|
198
|
-
* is trimmed and uppercased.
|
|
199
|
-
*/
|
|
200
|
-
documentType?: string;
|
|
201
|
-
}
|
|
202
|
-
export interface LookupResponse {
|
|
203
|
-
data: {
|
|
204
|
-
appointments: {
|
|
205
|
-
endsAt: string;
|
|
206
|
-
guidance: AgendaAppointmentGuidance | null;
|
|
207
|
-
id: string;
|
|
208
|
-
offeringId: string | null;
|
|
209
|
-
resourceIds: string[];
|
|
210
|
-
startsAt: string;
|
|
211
|
-
status: "tentative" | "scheduled" | "confirmed" | "checked_in" | "completed" | "cancelled" | "no_show" | "unknown";
|
|
212
|
-
version: number;
|
|
213
|
-
}[];
|
|
214
|
-
found: boolean;
|
|
215
|
-
patient?: {
|
|
216
|
-
addressLine: string | null;
|
|
217
|
-
alert: string | null;
|
|
218
|
-
archivedAt: string | null;
|
|
219
|
-
birthDate: string | null;
|
|
220
|
-
cancelled: number;
|
|
221
|
-
city: string | null;
|
|
222
|
-
createdAt: string;
|
|
223
|
-
document: string | null;
|
|
224
|
-
documentNumber: string | null;
|
|
225
|
-
documentType: string | null;
|
|
226
|
-
email: string | null;
|
|
227
|
-
entity: string | null;
|
|
228
|
-
fields: {
|
|
229
|
-
[key: string]: unknown;
|
|
230
|
-
};
|
|
231
|
-
gender: "male" | "female" | "other" | "unknown" | null;
|
|
232
|
-
id: string;
|
|
233
|
-
lastAt: string | null;
|
|
234
|
-
name: string;
|
|
235
|
-
nextAt: string | null;
|
|
236
|
-
noShow: number;
|
|
237
|
-
object: "scheduling.patient";
|
|
238
|
-
phone: string | null;
|
|
239
|
-
total: number;
|
|
240
|
-
updatedAt: string;
|
|
241
|
-
version: number;
|
|
242
|
-
};
|
|
243
|
-
patients?: {
|
|
244
|
-
document: string | null;
|
|
245
|
-
documentNumber: string | null;
|
|
246
|
-
documentType: string | null;
|
|
247
|
-
id: string;
|
|
248
|
-
name: string;
|
|
249
|
-
}[];
|
|
250
|
-
};
|
|
251
|
-
error: null;
|
|
252
|
-
metadata: AgendaResponseMetadata;
|
|
253
|
-
success: true;
|
|
254
|
-
}
|
|
255
|
-
export interface RescheduleRequest {
|
|
97
|
+
export type GetResponse = AgendaBookingResponse;
|
|
98
|
+
export type LookupRequest = AgendaListAgentPatientAppointmentsBody;
|
|
99
|
+
export type LookupResponse = AgendaListAgentPatientAppointmentsResultResponse;
|
|
100
|
+
export type RescheduleRequest = {
|
|
256
101
|
/**
|
|
257
102
|
* Stable eng-prefixed Scheduling record identifier; ownership is checked in
|
|
258
103
|
* the authenticated organization.
|
|
259
104
|
*/
|
|
260
105
|
appointmentId: string;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
* Agenda; omit it.
|
|
264
|
-
*/
|
|
265
|
-
channel?: "voice" | "whatsapp" | "web";
|
|
266
|
-
/**
|
|
267
|
-
* The platform's id for the organization's Agenda, set by the platform. An
|
|
268
|
-
* organization has one Agenda, so it selects nothing; omit it.
|
|
269
|
-
*/
|
|
270
|
-
connectionId?: string;
|
|
271
|
-
/**
|
|
272
|
-
* Exact signed slot token confirmed by the person; the slot must belong to
|
|
273
|
-
* the appointment’s existing service.
|
|
274
|
-
*/
|
|
275
|
-
slotToken: string;
|
|
276
|
-
}
|
|
277
|
-
export interface RescheduleResponse {
|
|
278
|
-
data: AgendaBooking;
|
|
279
|
-
error: null;
|
|
280
|
-
metadata: AgendaResponseMetadata;
|
|
281
|
-
success: true;
|
|
282
|
-
}
|
|
106
|
+
} & AgendaRescheduleAgentAppointmentBody;
|
|
107
|
+
export type RescheduleResponse = AgendaBookingResponse;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
import { Transport,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { AgendaAppointmentResponseCodec, } from "../models.js";
|
|
5
|
+
import { AgendaBookAgentAppointmentBodyCodec, AgendaBookingResponseCodec, } from "./models.js";
|
|
6
6
|
export function createClient(options) {
|
|
7
7
|
return bind(new Transport(options));
|
|
8
8
|
}
|
|
@@ -19,35 +19,35 @@ const CancelOperation = {
|
|
|
19
19
|
method: "POST",
|
|
20
20
|
route: "/v1/agenda/bookings/{appointmentId}/cancel",
|
|
21
21
|
body: "flat",
|
|
22
|
-
response:
|
|
23
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
22
|
+
response: AgendaAppointmentResponseCodec,
|
|
23
|
+
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 },
|
|
24
24
|
};
|
|
25
25
|
const CreateOperation = {
|
|
26
26
|
method: "POST",
|
|
27
27
|
route: "/v1/agenda/bookings",
|
|
28
28
|
body: "flat",
|
|
29
|
-
request:
|
|
30
|
-
response:
|
|
31
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
29
|
+
request: AgendaBookAgentAppointmentBodyCodec,
|
|
30
|
+
response: AgendaBookingResponseCodec,
|
|
31
|
+
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 },
|
|
32
32
|
};
|
|
33
33
|
const GetOperation = {
|
|
34
34
|
method: "GET",
|
|
35
35
|
route: "/v1/agenda/bookings/{appointmentId}",
|
|
36
36
|
query: { channel: "channel", connectionId: "connectionId" },
|
|
37
|
-
response:
|
|
38
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
37
|
+
response: AgendaBookingResponseCodec,
|
|
38
|
+
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 },
|
|
39
39
|
};
|
|
40
40
|
const LookupOperation = {
|
|
41
41
|
method: "POST",
|
|
42
42
|
route: "/v1/agenda/bookings/lookup",
|
|
43
43
|
body: "flat",
|
|
44
44
|
response: null,
|
|
45
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
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
|
};
|
|
47
47
|
const RescheduleOperation = {
|
|
48
48
|
method: "POST",
|
|
49
49
|
route: "/v1/agenda/bookings/{appointmentId}/reschedule",
|
|
50
50
|
body: "flat",
|
|
51
|
-
response:
|
|
52
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
51
|
+
response: AgendaBookingResponseCodec,
|
|
52
|
+
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 },
|
|
53
53
|
};
|
|
@@ -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, GetRequest, GetResponse, LookupRequest, LookupResponse, RescheduleRequest, RescheduleResponse, } from "./client.js";
|
|
5
|
-
export type { AgendaAppointmentGuidance, AgendaBooking, } from "./models.js";
|
|
5
|
+
export type { AgendaAppointmentGuidance, AgendaBookAgentAppointmentBadRequestError, AgendaBookAgentAppointmentBadRequestFailure, AgendaBookAgentAppointmentBody, AgendaBookAgentAppointmentConflictError, AgendaBookAgentAppointmentConflictFailure, AgendaBookAgentAppointmentForbiddenError, AgendaBookAgentAppointmentForbiddenFailure, AgendaBookAgentAppointmentServiceUnavailableError, AgendaBookAgentAppointmentServiceUnavailableFailure, AgendaBookAgentAppointmentUnsupportedMediaTypeError, AgendaBookAgentAppointmentUnsupportedMediaTypeFailure, AgendaBooking, AgendaBookingResponse, AgendaCancelAgentAppointmentBadRequestError, AgendaCancelAgentAppointmentBadRequestFailure, AgendaCancelAgentAppointmentBody, AgendaCancelAgentAppointmentConflictError, AgendaCancelAgentAppointmentConflictFailure, AgendaCancelAgentAppointmentForbiddenError, AgendaCancelAgentAppointmentForbiddenFailure, AgendaCancelAgentAppointmentServiceUnavailableError, AgendaCancelAgentAppointmentServiceUnavailableFailure, AgendaCancelAgentAppointmentUnsupportedMediaTypeError, AgendaCancelAgentAppointmentUnsupportedMediaTypeFailure, AgendaGetAgentAppointmentBadRequestError, AgendaGetAgentAppointmentBadRequestFailure, AgendaGetAgentAppointmentConflictError, AgendaGetAgentAppointmentConflictFailure, AgendaGetAgentAppointmentForbiddenError, AgendaGetAgentAppointmentForbiddenFailure, AgendaGetAgentAppointmentServiceUnavailableError, AgendaGetAgentAppointmentServiceUnavailableFailure, AgendaGetAgentAppointmentUnsupportedMediaTypeError, AgendaGetAgentAppointmentUnsupportedMediaTypeFailure, AgendaListAgentPatientAppointmentsBadRequestError, AgendaListAgentPatientAppointmentsBadRequestFailure, AgendaListAgentPatientAppointmentsBody, AgendaListAgentPatientAppointmentsConflictError, AgendaListAgentPatientAppointmentsConflictFailure, AgendaListAgentPatientAppointmentsForbiddenError, AgendaListAgentPatientAppointmentsForbiddenFailure, AgendaListAgentPatientAppointmentsResult, AgendaListAgentPatientAppointmentsResultResponse, AgendaListAgentPatientAppointmentsServiceUnavailableError, AgendaListAgentPatientAppointmentsServiceUnavailableFailure, AgendaListAgentPatientAppointmentsUnsupportedMediaTypeError, AgendaListAgentPatientAppointmentsUnsupportedMediaTypeFailure, AgendaRescheduleAgentAppointmentBadRequestError, AgendaRescheduleAgentAppointmentBadRequestFailure, AgendaRescheduleAgentAppointmentBody, AgendaRescheduleAgentAppointmentConflictError, AgendaRescheduleAgentAppointmentConflictFailure, AgendaRescheduleAgentAppointmentForbiddenError, AgendaRescheduleAgentAppointmentForbiddenFailure, AgendaRescheduleAgentAppointmentServiceUnavailableError, AgendaRescheduleAgentAppointmentServiceUnavailableFailure, AgendaRescheduleAgentAppointmentUnsupportedMediaTypeError, AgendaRescheduleAgentAppointmentUnsupportedMediaTypeFailure, } from "./models.js";
|