@arbol-ai/sdk 5.43.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
package/dist/agenda/models.js
CHANGED
|
@@ -8,6 +8,9 @@ export const AgendaAppointmentCodec = object([
|
|
|
8
8
|
["statusChange", null, () => AgendaAppointmentStatusChangeCodec],
|
|
9
9
|
["updatedAt", null, instant],
|
|
10
10
|
]);
|
|
11
|
+
export const AgendaAppointmentResponseCodec = object([
|
|
12
|
+
["data", null, () => AgendaAppointmentCodec],
|
|
13
|
+
]);
|
|
11
14
|
export const AgendaAppointmentStatusChangeCodec = object([
|
|
12
15
|
["at", null, instant],
|
|
13
16
|
]);
|
|
@@ -17,6 +20,9 @@ export const AgendaLocationCodec = object([
|
|
|
17
20
|
export const AgendaLocationPageCodec = object([
|
|
18
21
|
["data", null, array(() => AgendaLocationCodec)],
|
|
19
22
|
]);
|
|
23
|
+
export const AgendaLocationPageResponseCodec = object([
|
|
24
|
+
["data", null, () => AgendaLocationPageCodec],
|
|
25
|
+
]);
|
|
20
26
|
export const AgendaSlotCodec = object([
|
|
21
27
|
["endsAt", null, instant],
|
|
22
28
|
["startsAt", null, instant],
|
|
@@ -24,3 +30,6 @@ export const AgendaSlotCodec = object([
|
|
|
24
30
|
export const AgendaSlotPageCodec = object([
|
|
25
31
|
["data", null, array(() => AgendaSlotCodec)],
|
|
26
32
|
]);
|
|
33
|
+
export const AgendaSlotPageResponseCodec = object([
|
|
34
|
+
["data", null, () => AgendaSlotPageCodec],
|
|
35
|
+
]);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type AgendaNearestSlotPage } from "./models.js";
|
|
2
|
+
import { type AgendaNearestSlotPageResponse } from "./models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -85,9 +84,4 @@ export interface ListRequest {
|
|
|
85
84
|
*/
|
|
86
85
|
connectionId?: string;
|
|
87
86
|
}
|
|
88
|
-
export
|
|
89
|
-
data: AgendaNearestSlotPage;
|
|
90
|
-
error: null;
|
|
91
|
-
metadata: AgendaResponseMetadata;
|
|
92
|
-
success: true;
|
|
93
|
-
}
|
|
87
|
+
export type ListResponse = AgendaNearestSlotPageResponse;
|
|
@@ -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 { AgendaNearestSlotPageResponseCodec, } from "./models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -14,6 +14,6 @@ const ListOperation = {
|
|
|
14
14
|
method: "GET",
|
|
15
15
|
route: "/v1/agenda/nearest-booking-slots",
|
|
16
16
|
query: { days: "days", from: "from", group: "group", limit: "limit", locationId: "locationId", resourceId: "resourceId", serviceId: "serviceId", timezone: "timezone", cursor: "cursor", direction: "direction", channel: "channel", connectionId: "connectionId" },
|
|
17
|
-
response:
|
|
18
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
17
|
+
response: AgendaNearestSlotPageResponseCodec,
|
|
18
|
+
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
19
|
};
|
|
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
-
export type { AgendaNearestSlotPage } from "./models.js";
|
|
5
|
+
export type { AgendaFindNearestBookableSlotsBadRequestError, AgendaFindNearestBookableSlotsBadRequestFailure, AgendaFindNearestBookableSlotsConflictError, AgendaFindNearestBookableSlotsConflictFailure, AgendaFindNearestBookableSlotsForbiddenError, AgendaFindNearestBookableSlotsForbiddenFailure, AgendaFindNearestBookableSlotsServiceUnavailableError, AgendaFindNearestBookableSlotsServiceUnavailableFailure, AgendaFindNearestBookableSlotsUnsupportedMediaTypeError, AgendaFindNearestBookableSlotsUnsupportedMediaTypeFailure, AgendaNearestSlotPage, AgendaNearestSlotPageResponse, } from "./models.js";
|
|
@@ -1,5 +1,70 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
2
|
-
import { type AgendaSlot } from "../models.js";
|
|
1
|
+
import type { ForbiddenFailure, InvalidInputFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import { type AgendaAgeNotEligibleFailure, type AgendaApplicationJsonRequiredFailure, type AgendaAppointmentClosedFailure, type AgendaAppointmentNotMovableFailure, type AgendaAppointmentNotRemindableFailure, type AgendaAppointmentVersionMismatchFailure, type AgendaAppointmentWithoutPatientFailure, type AgendaArbolCatalogTooLargeFailure, type AgendaArbolConfigurationRequiredFailure, type AgendaArbolRefusedFailure, type AgendaArbolResponseTooLargeFailure, type AgendaArbolSettingsVersionMismatchFailure, type AgendaArbolUnavailableFailure, type AgendaBindingVersionMismatchFailure, type AgendaBirthDateRequiredFailure, type AgendaDailyReportTooLargeFailure, type AgendaDurationChangeOffFailure, type AgendaDurationNotAllowedFailure, type AgendaFileContentMismatchFailure, type AgendaFollowupConsentRequiredFailure, type AgendaFollowupDisabledFailure, type AgendaFollowupSettingsVersionMismatchFailure, type AgendaHoldNotActiveFailure, type AgendaIdTokenMismatchFailure, type AgendaIntakeSettingsVersionMismatchFailure, type AgendaInvalidAppointmentIntakeFailure, type AgendaInvalidAvailabilityWindowFailure, type AgendaInvalidBodyFailure, type AgendaInvalidFileKindFailure, type AgendaInvalidFileNameFailure, type AgendaInvalidHoldPayloadFailure, type AgendaInvalidIdTokenFailure, type AgendaInvalidJsonFailure, type AgendaInvalidPatientFieldsFailure, type AgendaInvalidSlotTokenFailure, type AgendaInvalidWindowFailure, type AgendaLocationVersionMismatchFailure, type AgendaNotFileUploaderFailure, type AgendaNotNoteAuthorFailure, type AgendaNotificationSettingsVersionMismatchFailure, type AgendaNotificationsNotSetUpFailure, type AgendaOfferingVersionMismatchFailure, type AgendaOrganizationVersionMismatchFailure, type AgendaOriginNotAllowedFailure, type AgendaOverbookOutOfRangeFailure, type AgendaOverbookUnavailableFailure, type AgendaPatientArchivedFailure, type AgendaPatientDocumentTakenFailure, type AgendaPatientEmailRequiredFailure, type AgendaPatientVersionMismatchFailure, type AgendaPayerNameTakenFailure, type AgendaPayerStaffOnlyFailure, type AgendaPayerVersionMismatchFailure, type AgendaProfileVersionMismatchFailure, type AgendaProviderDisabledFailure, type AgendaRecallAlreadyActiveFailure, type AgendaRecallMonthPassedFailure, type AgendaRecallVersionMismatchFailure, type AgendaRecallVisitInFutureFailure, type AgendaRecallVisitRequiredFailure, type AgendaRemovalJobConflictFailure, type AgendaRemovalWorkflowUnavailableFailure, type AgendaReportNotificationsDisabledFailure, type AgendaReportRecipientsRequiredFailure, type AgendaReportSettingsVersionMismatchFailure, type AgendaResourceCapacityExceededFailure, type AgendaResourceVersionMismatchFailure, type AgendaSameOfferingFailure, type AgendaSameResourceFailure, type AgendaSameServiceFailure, type AgendaScheduleChangedFailure, type AgendaScheduleRuleAgendaMismatchFailure, type AgendaScheduleRuleExpectedVersionRequiredFailure, type AgendaScheduleRuleVersionMismatchFailure, type AgendaScheduleRulesChangedFailure, type AgendaServiceCapacityExceededFailure, type AgendaServiceChangedFailure, type AgendaServiceVersionMismatchFailure, type AgendaSlot, type AgendaSlotOfferAlreadyOpenFailure, type AgendaSlotOfferClosedFailure, type AgendaSlotOfferMismatchFailure, type AgendaSlotOfferNotAllowedFailure, type AgendaSlotOfferTooSoonFailure, type AgendaSlotRequiredFailure, type AgendaStudyLengthNotOfferedFailure, type AgendaStudyOverbookingNotAllowedFailure, type AgendaTargetInactiveFailure, type AgendaUnexpectedQueryParametersFailure, type AgendaUnsupportedContentEncodingFailure, type AgendaUnsupportedFileTypeFailure, type AgendaWaitlistEntryVersionMismatchFailure, type AgendaWaitlistResourceAmbiguousFailure, type AgendaWaitlistResourceUnavailableFailure, type AgendaWaitlistServiceUnavailableFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface AgendaFindNearestBookableSlotsBadRequestError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: AgendaFindNearestBookableSlotsBadRequestFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type AgendaFindNearestBookableSlotsBadRequestFailure = 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 AgendaFindNearestBookableSlotsConflictError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: AgendaFindNearestBookableSlotsConflictFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type AgendaFindNearestBookableSlotsConflictFailure = 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 AgendaFindNearestBookableSlotsForbiddenError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: AgendaFindNearestBookableSlotsForbiddenFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
export type AgendaFindNearestBookableSlotsForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
|
|
42
|
+
/**
|
|
43
|
+
* A failed answer.
|
|
44
|
+
*/
|
|
45
|
+
export interface AgendaFindNearestBookableSlotsServiceUnavailableError {
|
|
46
|
+
data: null;
|
|
47
|
+
error: AgendaFindNearestBookableSlotsServiceUnavailableFailure;
|
|
48
|
+
/**
|
|
49
|
+
* What every answer carries besides its data or error.
|
|
50
|
+
*/
|
|
51
|
+
metadata: ResponseMetadata;
|
|
52
|
+
success: false;
|
|
53
|
+
}
|
|
54
|
+
export type AgendaFindNearestBookableSlotsServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
|
|
55
|
+
/**
|
|
56
|
+
* A failed answer.
|
|
57
|
+
*/
|
|
58
|
+
export interface AgendaFindNearestBookableSlotsUnsupportedMediaTypeError {
|
|
59
|
+
data: null;
|
|
60
|
+
error: AgendaFindNearestBookableSlotsUnsupportedMediaTypeFailure;
|
|
61
|
+
/**
|
|
62
|
+
* What every answer carries besides its data or error.
|
|
63
|
+
*/
|
|
64
|
+
metadata: ResponseMetadata;
|
|
65
|
+
success: false;
|
|
66
|
+
}
|
|
67
|
+
export type AgendaFindNearestBookableSlotsUnsupportedMediaTypeFailure = AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
|
|
3
68
|
export interface AgendaNearestSlotPage {
|
|
4
69
|
/**
|
|
5
70
|
* Earliest signed slots in global time order or grouped by offering,
|
|
@@ -35,4 +100,17 @@ export interface AgendaNearestSlotPage {
|
|
|
35
100
|
*/
|
|
36
101
|
truncatedOfferings: boolean;
|
|
37
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* A successful answer.
|
|
105
|
+
*/
|
|
106
|
+
export interface AgendaNearestSlotPageResponse {
|
|
107
|
+
data: AgendaNearestSlotPage;
|
|
108
|
+
error: null;
|
|
109
|
+
/**
|
|
110
|
+
* What every answer carries besides its data or error.
|
|
111
|
+
*/
|
|
112
|
+
metadata: ResponseMetadata;
|
|
113
|
+
success: true;
|
|
114
|
+
}
|
|
38
115
|
export declare const AgendaNearestSlotPageCodec: import("../../_/codec.js").Codec;
|
|
116
|
+
export declare const AgendaNearestSlotPageResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { array, object } from "../../_/index.js";
|
|
4
|
-
import { AgendaSlotCodec } from "../models.js";
|
|
4
|
+
import { AgendaSlotCodec, } from "../models.js";
|
|
5
5
|
export const AgendaNearestSlotPageCodec = object([
|
|
6
6
|
["data", null, array(() => AgendaSlotCodec)],
|
|
7
7
|
]);
|
|
8
|
+
export const AgendaNearestSlotPageResponseCodec = object([
|
|
9
|
+
["data", null, () => AgendaNearestSlotPageCodec],
|
|
10
|
+
]);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type AgendaOffering, type AgendaOfferingPage } from "./models.js";
|
|
2
|
+
import { type AgendaCreateOfferingBody, type AgendaOfferingPageResponse, type AgendaOfferingResponse, type AgendaUpdateOfferingBody } from "./models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -31,75 +30,8 @@ export interface Client {
|
|
|
31
30
|
}
|
|
32
31
|
export declare function createClient(options: ClientOptions): Client;
|
|
33
32
|
export declare function bind(transport: Transport): Client;
|
|
34
|
-
export
|
|
35
|
-
|
|
36
|
-
* Farthest number of days ahead that this offering can be booked.
|
|
37
|
-
*/
|
|
38
|
-
bookingHorizonDays?: number;
|
|
39
|
-
/**
|
|
40
|
-
* Resource occupation added after the visible appointment, in minutes.
|
|
41
|
-
*/
|
|
42
|
-
bufferAfterMinutes?: number;
|
|
43
|
-
/**
|
|
44
|
-
* Resource occupation added before the visible appointment, in minutes.
|
|
45
|
-
*/
|
|
46
|
-
bufferBeforeMinutes?: number;
|
|
47
|
-
/**
|
|
48
|
-
* Legacy concurrent-session limit above 1; details.maxConcurrent takes
|
|
49
|
-
* precedence. The historical default 1 delegates to resource capacity.
|
|
50
|
-
*/
|
|
51
|
-
capacity?: number;
|
|
52
|
-
/**
|
|
53
|
-
* Bounded JSON configuration owned by this catalog record, including
|
|
54
|
-
* supported domain settings.
|
|
55
|
-
*/
|
|
56
|
-
details?: {
|
|
57
|
-
[key: string]: unknown;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Visible appointment duration for this offering, in minutes; resource
|
|
61
|
-
* buffers apply separately.
|
|
62
|
-
*/
|
|
63
|
-
durationMinutes: number;
|
|
64
|
-
/**
|
|
65
|
-
* Minimum advance notice in minutes before this offering can be booked.
|
|
66
|
-
*/
|
|
67
|
-
minNoticeMinutes?: number;
|
|
68
|
-
/**
|
|
69
|
-
* Display name of this catalog or configuration record.
|
|
70
|
-
*/
|
|
71
|
-
name: string;
|
|
72
|
-
/**
|
|
73
|
-
* Resource kinds, quantities and explicit alternatives needed by this
|
|
74
|
-
* offering.
|
|
75
|
-
*/
|
|
76
|
-
resourceRequirements?: {
|
|
77
|
-
alternatives?: string[];
|
|
78
|
-
kind: "practitioner" | "assistant" | "room" | "chair" | "equipment" | "location" | "team" | "generic";
|
|
79
|
-
quantity?: number;
|
|
80
|
-
required?: boolean;
|
|
81
|
-
}[];
|
|
82
|
-
/**
|
|
83
|
-
* Stable svc-prefixed Scheduling record identifier; ownership is checked in
|
|
84
|
-
* the authenticated organization.
|
|
85
|
-
*/
|
|
86
|
-
serviceId: string;
|
|
87
|
-
/**
|
|
88
|
-
* Minute spacing between candidate appointment start times.
|
|
89
|
-
*/
|
|
90
|
-
slotIntervalMinutes?: number;
|
|
91
|
-
/**
|
|
92
|
-
* Lifecycle state controlling whether this record remains available to its
|
|
93
|
-
* domain consumers.
|
|
94
|
-
*/
|
|
95
|
-
status?: "active" | "inactive";
|
|
96
|
-
}
|
|
97
|
-
export interface CreateResponse {
|
|
98
|
-
data: AgendaOffering;
|
|
99
|
-
error: null;
|
|
100
|
-
metadata: AgendaResponseMetadata;
|
|
101
|
-
success: true;
|
|
102
|
-
}
|
|
33
|
+
export type CreateRequest = AgendaCreateOfferingBody;
|
|
34
|
+
export type CreateResponse = AgendaOfferingResponse;
|
|
103
35
|
export interface ListRequest {
|
|
104
36
|
/**
|
|
105
37
|
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
@@ -125,83 +57,12 @@ export interface ListRequest {
|
|
|
125
57
|
*/
|
|
126
58
|
status?: "active" | "inactive";
|
|
127
59
|
}
|
|
128
|
-
export
|
|
129
|
-
|
|
130
|
-
error: null;
|
|
131
|
-
metadata: AgendaResponseMetadata;
|
|
132
|
-
success: true;
|
|
133
|
-
}
|
|
134
|
-
export interface UpdateRequest {
|
|
60
|
+
export type ListResponse = AgendaOfferingPageResponse;
|
|
61
|
+
export type UpdateRequest = {
|
|
135
62
|
/**
|
|
136
63
|
* Stable off-prefixed Scheduling record identifier; ownership is checked in
|
|
137
64
|
* the authenticated organization.
|
|
138
65
|
*/
|
|
139
66
|
offeringId: string;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
*/
|
|
143
|
-
bookingHorizonDays?: number;
|
|
144
|
-
/**
|
|
145
|
-
* Resource occupation added after the visible appointment, in minutes.
|
|
146
|
-
*/
|
|
147
|
-
bufferAfterMinutes?: number;
|
|
148
|
-
/**
|
|
149
|
-
* Resource occupation added before the visible appointment, in minutes.
|
|
150
|
-
*/
|
|
151
|
-
bufferBeforeMinutes?: number;
|
|
152
|
-
/**
|
|
153
|
-
* Legacy concurrent-session limit above 1; details.maxConcurrent takes
|
|
154
|
-
* precedence. The historical default 1 delegates to resource capacity.
|
|
155
|
-
*/
|
|
156
|
-
capacity?: number;
|
|
157
|
-
/**
|
|
158
|
-
* Bounded JSON configuration owned by this catalog record, including
|
|
159
|
-
* supported domain settings.
|
|
160
|
-
*/
|
|
161
|
-
details?: {
|
|
162
|
-
[key: string]: unknown;
|
|
163
|
-
};
|
|
164
|
-
/**
|
|
165
|
-
* Visible appointment duration for this offering, in minutes; resource
|
|
166
|
-
* buffers apply separately.
|
|
167
|
-
*/
|
|
168
|
-
durationMinutes?: number;
|
|
169
|
-
/**
|
|
170
|
-
* Version last read by the caller. The mutation fails if another writer has
|
|
171
|
-
* changed this record.
|
|
172
|
-
*/
|
|
173
|
-
expectedVersion: number;
|
|
174
|
-
/**
|
|
175
|
-
* Minimum advance notice in minutes before this offering can be booked.
|
|
176
|
-
*/
|
|
177
|
-
minNoticeMinutes?: number;
|
|
178
|
-
/**
|
|
179
|
-
* Display name of this catalog or configuration record.
|
|
180
|
-
*/
|
|
181
|
-
name?: string;
|
|
182
|
-
/**
|
|
183
|
-
* Complete replacement for future bookings. Existing appointment and hold
|
|
184
|
-
* allocations stay unchanged.
|
|
185
|
-
*/
|
|
186
|
-
resourceRequirements?: {
|
|
187
|
-
alternatives?: string[];
|
|
188
|
-
kind: "practitioner" | "assistant" | "room" | "chair" | "equipment" | "location" | "team" | "generic";
|
|
189
|
-
quantity?: number;
|
|
190
|
-
required?: boolean;
|
|
191
|
-
}[];
|
|
192
|
-
/**
|
|
193
|
-
* Minute spacing between candidate appointment start times.
|
|
194
|
-
*/
|
|
195
|
-
slotIntervalMinutes?: number;
|
|
196
|
-
/**
|
|
197
|
-
* Lifecycle state controlling whether this record remains available to its
|
|
198
|
-
* domain consumers.
|
|
199
|
-
*/
|
|
200
|
-
status?: "active" | "inactive";
|
|
201
|
-
}
|
|
202
|
-
export interface UpdateResponse {
|
|
203
|
-
data: AgendaOffering;
|
|
204
|
-
error: null;
|
|
205
|
-
metadata: AgendaResponseMetadata;
|
|
206
|
-
success: true;
|
|
207
|
-
}
|
|
67
|
+
} & AgendaUpdateOfferingBody;
|
|
68
|
+
export type UpdateResponse = AgendaOfferingResponse;
|
|
@@ -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 { AgendaOfferingPageResponseCodec, AgendaOfferingResponseCodec, } 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/offerings",
|
|
18
18
|
body: "flat",
|
|
19
|
-
response:
|
|
20
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
19
|
+
response: AgendaOfferingResponseCodec,
|
|
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/offerings",
|
|
25
25
|
query: { cursor: "cursor", direction: "direction", limit: "limit", serviceId: "serviceId", status: "status" },
|
|
26
|
-
response:
|
|
27
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
26
|
+
response: AgendaOfferingPageResponseCodec,
|
|
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/offerings/{offeringId}",
|
|
32
32
|
body: "flat",
|
|
33
|
-
response:
|
|
34
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
33
|
+
response: AgendaOfferingResponseCodec,
|
|
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 { AgendaOffering, AgendaOfferingPage, } from "./models.js";
|
|
5
|
+
export type { AgendaCreateOfferingBadRequestError, AgendaCreateOfferingBadRequestFailure, AgendaCreateOfferingBody, AgendaCreateOfferingConflictError, AgendaCreateOfferingConflictFailure, AgendaCreateOfferingForbiddenError, AgendaCreateOfferingForbiddenFailure, AgendaCreateOfferingServiceUnavailableError, AgendaCreateOfferingServiceUnavailableFailure, AgendaCreateOfferingUnsupportedMediaTypeError, AgendaCreateOfferingUnsupportedMediaTypeFailure, AgendaListOfferingsBadRequestError, AgendaListOfferingsBadRequestFailure, AgendaListOfferingsConflictError, AgendaListOfferingsConflictFailure, AgendaListOfferingsForbiddenError, AgendaListOfferingsForbiddenFailure, AgendaListOfferingsServiceUnavailableError, AgendaListOfferingsServiceUnavailableFailure, AgendaListOfferingsUnsupportedMediaTypeError, AgendaListOfferingsUnsupportedMediaTypeFailure, AgendaOffering, AgendaOfferingPage, AgendaOfferingPageResponse, AgendaOfferingResponse, AgendaUpdateOfferingBadRequestError, AgendaUpdateOfferingBadRequestFailure, AgendaUpdateOfferingBody, AgendaUpdateOfferingConflictError, AgendaUpdateOfferingConflictFailure, AgendaUpdateOfferingForbiddenError, AgendaUpdateOfferingForbiddenFailure, AgendaUpdateOfferingServiceUnavailableError, AgendaUpdateOfferingServiceUnavailableFailure, AgendaUpdateOfferingUnsupportedMediaTypeError, AgendaUpdateOfferingUnsupportedMediaTypeFailure, } from "./models.js";
|