Skip to content

Commit

Permalink
Add new appointment fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Stewart committed Nov 7, 2023
1 parent d7ffc93 commit 3830624
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/appointments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,21 @@ class Appointment extends Node<Graph.Appointment> {
/** A collection of appointment services. */
appointmentServices: Array<AppointmentService>;

/** Whether or not the client can cancel this appointment */
cancellable: Scalars['Boolean'];

/** Information about the cancellation, if present */
cancellation: Maybe<AppointmentCancellation>;

/** Boolean signifying if the appointment is cancelled or not */
cancelled: Scalars["Boolean"];

/** The duration of the appointment for the client */
clientDuration: Scalars['Int'];

/** Whether or not the client can confirm this appointment at this time */
confirmable: Scalars['Boolean'];

/** When the appointment was created (in Etc/UTC) */
createdAt: Scalars["DateTime"];

Expand All @@ -106,9 +115,18 @@ class Appointment extends Node<Graph.Appointment> {
/** The ID of an object */
id: Scalars["ID"];

/** Whether or not the appointment is a group appointment */
isGroup: Scalars['Boolean'];

/** Whether or not the appointment is recurring */
isRecurring: Scalars['Boolean'];

/** Internal notes on the appointment */
notes: Maybe<Scalars["String"]>;

/** Whether or not the client can reschedule this appointment */
reschedulable: Scalars['Boolean'];

/** Start time for the appointment */
startAt: Scalars["DateTime"];

Expand Down
6 changes: 6 additions & 0 deletions src/appointments/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ const fragments = gql`
fragment AppointmentProperties on Appointment {
id
cancellable
clientDuration
confirmable
duration
cancelled
isGroup
isRecurring
reschedulable
state
startAt
endAt
Expand Down

0 comments on commit 3830624

Please sign in to comment.