diff --git a/src/graph.d.ts b/src/graph.d.ts index d562148..443aada 100644 --- a/src/graph.d.ts +++ b/src/graph.d.ts @@ -1,10 +1,16 @@ -import gql from 'graphql-tag'; -import { GraphQLClient } from 'graphql-request'; -import * as Dom from 'graphql-request/dist/types.dom'; -export type Maybe = T | null; -export type Exact = { [K in keyof T]: T[K] }; -export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; -export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +import gql from "graphql-tag"; +import { GraphQLClient } from "graphql-request"; +import * as Dom from "graphql-request/dist/types.dom"; +export type Maybe = T | undefined; +export type Exact = { + [K in keyof T]: T[K]; +}; +export type MakeOptional = Omit & { + [SubKey in K]?: Maybe; +}; +export type MakeMaybe = Omit & { + [SubKey in K]: Maybe; +}; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; @@ -114,43 +120,43 @@ export type Scalars = { export type AddCartCardPaymentMethodInput = { /** ID of the cart */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Whether to automatically select this credit card as the payment method * for the cart, false by default. */ - select?: Maybe; + select?: Maybe; /** Credit card token obtained from the Credit Card Tokenization endpoint. */ - token: Scalars['ID']; + token: Scalars["ID"]; }; export type AddCartCardPaymentMethodPayload = { - __typename?: 'AddCartCardPaymentMethodPayload'; + __typename?: "AddCartCardPaymentMethodPayload"; cart: Cart; }; export type AddCartOfferInput = { /** ID of the cart */ - id: Scalars['ID']; + id: Scalars["ID"]; /** The offer code identifier */ - offerCode: Scalars['String']; + offerCode: Scalars["String"]; }; export type AddCartOfferPayload = { - __typename?: 'AddCartOfferPayload'; + __typename?: "AddCartOfferPayload"; cart: Cart; offer: CartOffer; }; export type AddCartSelectedBookableItemInput = { /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Optional discount code applied to the item. Invalid discount codes are * ignored without an error, check `discountCode` on the selected item to see * if the code was valid. */ - itemDiscountCode?: Maybe; + itemDiscountCode?: Maybe; /** * Optional ID that identifies the guest this item is booked for. A null * value indicates the cart owner, or current client. @@ -158,73 +164,73 @@ export type AddCartSelectedBookableItemInput = { * When finding available times for bookable items, it's assumed that two * items having different guests can be booked simultaneously. */ - itemGuestId?: Maybe; + itemGuestId?: Maybe; /** ID of the bookable item. */ - itemId: Scalars['ID']; + itemId: Scalars["ID"]; /** * Optional IDs of selected bookable item options. Note that the selections * must conform to the option group requirements, e.g. limits on the number * of options. Otherwise an error is returned. */ - itemOptionIds?: Maybe>; + itemOptionIds?: Maybe>; /** Optional ID of the selected bookable item staff variant. */ - itemStaffVariantId?: Maybe; + itemStaffVariantId?: Maybe; }; export type AddCartSelectedBookableItemPayload = { - __typename?: 'AddCartSelectedBookableItemPayload'; + __typename?: "AddCartSelectedBookableItemPayload"; cart: Cart; }; export type AddCartSelectedGiftCardItemInput = { /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** ID of the gift card item. */ - itemId: Scalars['ID']; + itemId: Scalars["ID"]; /** * Price applied to the gift card item. See cartAvailableGiftCardItem.minPrice * and maxPrice for limits */ - itemPrice: Scalars['Money']; + itemPrice: Scalars["Money"]; }; export type AddCartSelectedGiftCardItemPayload = { - __typename?: 'AddCartSelectedGiftCardItemPayload'; + __typename?: "AddCartSelectedGiftCardItemPayload"; cart: Cart; }; export type AddCartSelectedPurchasableItemInput = { /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Optional discount code applied to the item. Invalid discount codes are * ignored without an error, check `discountCode` on the selected item to see * if the code was valid. */ - itemDiscountCode?: Maybe; + itemDiscountCode?: Maybe; /** ID of the purchasable item. */ - itemId: Scalars['ID']; + itemId: Scalars["ID"]; }; export type AddCartSelectedPurchasableItemPayload = { - __typename?: 'AddCartSelectedPurchasableItemPayload'; + __typename?: "AddCartSelectedPurchasableItemPayload"; cart: Cart; }; export type Address = { - __typename?: 'Address'; - city?: Maybe; - country?: Maybe; - line1?: Maybe; - line2?: Maybe; - province?: Maybe; - state?: Maybe; - zip?: Maybe; + __typename?: "Address"; + city?: Maybe; + country?: Maybe; + line1?: Maybe; + line2?: Maybe; + province?: Maybe; + state?: Maybe; + zip?: Maybe; }; /** An Appointment */ export type Appointment = Node & { - __typename?: 'Appointment'; + __typename?: "Appointment"; /** A collection of appointment services. */ appointmentServices: Array; /** Links to allow direct addition of the appointment to different calendar platforms */ @@ -232,181 +238,181 @@ export type Appointment = Node & { /** Information about the cancellation, if present */ cancellation?: Maybe; /** Boolean signifying if the appointment is cancelled or not */ - cancelled: Scalars['Boolean']; + cancelled: Scalars["Boolean"]; /** The client of the appointment */ client: Client; /** The id of the client of the appointment. */ - clientId: Scalars['ID']; + clientId: Scalars["ID"]; /** When the appointment was created (in Etc/UTC) */ - createdAt: Scalars['DateTime']; + createdAt: Scalars["DateTime"]; /** The duration of the appointment */ - duration: Scalars['Int']; + duration: Scalars["Int"]; /** End time for the appointment */ - endAt: Scalars['DateTime']; + endAt: Scalars["DateTime"]; /** The ID of an object */ - id: Scalars['ID']; + id: Scalars["ID"]; /** The Location where this appointment was booked. */ location: Location; /** The Id of the Location where this appointment was booked. */ - locationId: Scalars['ID']; + locationId: Scalars["ID"]; /** Notes provided by the client during booking */ - notes?: Maybe; + notes?: Maybe; /** Start time for the appointment */ - startAt: Scalars['DateTime']; + startAt: Scalars["DateTime"]; /** The state of the appointment. */ state: AppointmentState; }; export type AppointmentAddTagsInput = { - cartId: Scalars['ID']; - id: Scalars['ID']; - tagIds: Array; + cartId: Scalars["ID"]; + id: Scalars["ID"]; + tagIds: Array; }; export type AppointmentAddTagsPayload = { - __typename?: 'AppointmentAddTagsPayload'; - success: Scalars['Boolean']; + __typename?: "AppointmentAddTagsPayload"; + success: Scalars["Boolean"]; }; export type AppointmentCancellation = { - __typename?: 'AppointmentCancellation'; + __typename?: "AppointmentCancellation"; /** Datetime the appointment was cancelled in UTC. */ - cancelledAt: Scalars['DateTime']; - notes?: Maybe; + cancelledAt: Scalars["DateTime"]; + notes?: Maybe; reason: AppointmentCancellationReason; }; export enum AppointmentCancellationReason { - ClientCancel = 'CLIENT_CANCEL', - ClientLateCancel = 'CLIENT_LATE_CANCEL', - Merged = 'MERGED', - Mistake = 'MISTAKE', - NoShow = 'NO_SHOW', - StaffCancel = 'STAFF_CANCEL', - Voided = 'VOIDED' + ClientCancel = "CLIENT_CANCEL", + ClientLateCancel = "CLIENT_LATE_CANCEL", + Merged = "MERGED", + Mistake = "MISTAKE", + NoShow = "NO_SHOW", + StaffCancel = "STAFF_CANCEL", + Voided = "VOIDED" } export type AppointmentConnection = { - __typename?: 'AppointmentConnection'; + __typename?: "AppointmentConnection"; edges?: Maybe>>; pageInfo: PageInfo; }; export type AppointmentEdge = { - __typename?: 'AppointmentEdge'; - cursor?: Maybe; + __typename?: "AppointmentEdge"; + cursor?: Maybe; node?: Maybe; }; export type AppointmentRescheduleAvailableDatesInput = { /** The ID of the appointment that needs to be rescheduled. */ - appointmentId: Scalars['ID']; + appointmentId: Scalars["ID"]; /** The lower range (inclusive) of dates to search for appointment availability. */ - searchRangeLower: Scalars['Date']; + searchRangeLower: Scalars["Date"]; /** The upper range (inclusive) of dates to search for appointment availability. */ - searchRangeUpper: Scalars['Date']; + searchRangeUpper: Scalars["Date"]; /** * Optional time zone the matches should be converted to, e.g. the client's * time zone. The search range dates are also interpreted using this. When * null, the location's time zone is used. */ - tz?: Maybe; + tz?: Maybe; }; export type AppointmentRescheduleAvailableDatesPayload = { - __typename?: 'AppointmentRescheduleAvailableDatesPayload'; + __typename?: "AppointmentRescheduleAvailableDatesPayload"; availableDates: Array; }; export type AppointmentRescheduleAvailableTimesInput = { /** The ID of the appointment that needs to be rescheduled. */ - appointmentId: Scalars['ID']; + appointmentId: Scalars["ID"]; /** The date that should be searched for available times. */ - date: Scalars['Date']; + date: Scalars["Date"]; /** * Optional time zone the matches should be converted to, e.g. the client's * time zone. When null, the location's time zone is used. */ - tz?: Maybe; + tz?: Maybe; }; export type AppointmentRescheduleAvailableTimesPayload = { - __typename?: 'AppointmentRescheduleAvailableTimesPayload'; + __typename?: "AppointmentRescheduleAvailableTimesPayload"; availableTimes: Array; }; export type AppointmentRescheduleInput = { /** The ID of the appointment that needs to be rescheduled. */ - appointmentId: Scalars['ID']; + appointmentId: Scalars["ID"]; /** * The encoded data representing an available appointment slot (can be computed * using the appointmentRescheduleAvailableTimes mutation). */ - bookableTimeId: Scalars['ID']; + bookableTimeId: Scalars["ID"]; /** * Creates a notification for the dashboard users to let them know that the appointment has * been self-rescheduled by the client. */ - sendNotification: Scalars['Boolean']; + sendNotification: Scalars["Boolean"]; }; export type AppointmentReschedulePayload = { - __typename?: 'AppointmentReschedulePayload'; + __typename?: "AppointmentReschedulePayload"; appointment: Appointment; }; /** An AppointmentService */ export type AppointmentService = { - __typename?: 'AppointmentService'; + __typename?: "AppointmentService"; /** Duration for the entire service (including add-ons) */ - duration: Scalars['Int']; + duration: Scalars["Int"]; /** The ISO time at which the appointment service is completely finished. */ - endAt: Scalars['DateTime']; + endAt: Scalars["DateTime"]; /** Price of the service, before any discounts or taxes are applied. */ - price: Scalars['Money']; + price: Scalars["Money"]; /** The service. */ service: Service; /** The id of the service. This may be null for time blockers. */ - serviceId: Scalars['ID']; + serviceId: Scalars["ID"]; /** The staff performing this service. */ staff: Staff; /** The ID of the staff member associated with this service */ - staffId: Scalars['ID']; + staffId: Scalars["ID"]; /** A boolean indicating whether the staff was specifically requested by the client. */ - staffRequested: Scalars['Boolean']; + staffRequested: Scalars["Boolean"]; /** The ISO time at which the appointment service begins */ - startAt: Scalars['DateTime']; + startAt: Scalars["DateTime"]; /** Length of time (in minutes) from the start of the appointment until this service begins. */ - startTimeOffset: Scalars['Int']; + startTimeOffset: Scalars["Int"]; /** The total duration (in minutes) of this service */ - totalDuration: Scalars['Int']; + totalDuration: Scalars["Int"]; }; export enum AppointmentState { - Active = 'ACTIVE', - Arrived = 'ARRIVED', - Booked = 'BOOKED', - Cancelled = 'CANCELLED', - Confirmed = 'CONFIRMED', - Final = 'FINAL' + Active = "ACTIVE", + Arrived = "ARRIVED", + Booked = "BOOKED", + Cancelled = "CANCELLED", + Confirmed = "CONFIRMED", + Final = "FINAL" } export type AuthorizeCartOwnershipInput = { /** Id of cart to take ownership of */ - cartId: Scalars['String']; + cartId: Scalars["String"]; /** Id of the authorization code */ - clientAuthorizationCodeId: Scalars['String']; + clientAuthorizationCodeId: Scalars["String"]; /** The code that the client received in their email/SMS */ - clientAuthorizationCodeValue: Scalars['Int']; + clientAuthorizationCodeValue: Scalars["Int"]; }; export type AuthorizeCartOwnershipPayload = { - __typename?: 'AuthorizeCartOwnershipPayload'; - wasAuthorized: Scalars['Boolean']; + __typename?: "AuthorizeCartOwnershipPayload"; + wasAuthorized: Scalars["Boolean"]; }; export type AvailableRescheduleDate = { - __typename?: 'AvailableRescheduleDate'; + __typename?: "AvailableRescheduleDate"; /** * Matched date for the booking. * @@ -414,82 +420,81 @@ export type AvailableRescheduleDate = { * time zone is requested using the `tz` argument. The date uses the requested * time zone, or the location's time zone when `tz` is null. */ - date: Scalars['Date']; + date: Scalars["Date"]; }; export type AvailableRescheduleTime = { - __typename?: 'AvailableRescheduleTime'; - bookableTimeId: Scalars['ID']; + __typename?: "AvailableRescheduleTime"; + bookableTimeId: Scalars["ID"]; /** Matched start time for the booking. */ - startTime: Scalars['DateTime']; + startTime: Scalars["DateTime"]; }; export type BookingQuestionOptionAnswerInput = { - optionId: Scalars['ID']; + optionId: Scalars["ID"]; }; /** The business */ export type Business = Node & { - __typename?: 'Business'; - avatar?: Maybe; + __typename?: "Business"; + avatar?: Maybe; /** The ID of an object */ - id: Scalars['ID']; - insertedAt: Scalars['DateTime']; + id: Scalars["ID"]; + insertedAt: Scalars["DateTime"]; /** Locations */ locations?: Maybe; /** Name of the business */ - name: Scalars['String']; + name: Scalars["String"]; onlineGiftCardSettings: OnlineGiftCardSettings; /** The timezone associated with the business */ - tz: Scalars['Tz']; - updatedAt: Scalars['DateTime']; + tz: Scalars["Tz"]; + updatedAt: Scalars["DateTime"]; /** The business' website. This could be an empty string. */ - website: Scalars['String']; + website: Scalars["String"]; }; - /** The business */ export type BusinessLocationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; + after?: Maybe; + before?: Maybe; + first?: Maybe; + last?: Maybe; }; export type BusinessGiftCardDesign = { - __typename?: 'BusinessGiftCardDesign'; + __typename?: "BusinessGiftCardDesign"; design: GiftCardDesign; - id: Scalars['ID']; - selected: Scalars['Boolean']; + id: Scalars["ID"]; + selected: Scalars["Boolean"]; }; export type CalendarLinks = { - __typename?: 'CalendarLinks'; + __typename?: "CalendarLinks"; /** A deep link to add the appointment directly to Google Calendar */ - googleCalendar: Scalars['Url']; + googleCalendar: Scalars["Url"]; /** A downloadable ICS file to use for native calendar applications */ - icsDownload: Scalars['Url']; + icsDownload: Scalars["Url"]; /** A deep link to add the appointment directly to Microsoft Office 365 */ - microsoftOffice: Scalars['Url']; + microsoftOffice: Scalars["Url"]; /** A deep link to add the appointment directly to Microsoft Outlook Online */ - microsoftOutlook: Scalars['Url']; + microsoftOutlook: Scalars["Url"]; /** A deep link to add the appointment directly to Yahoo Calendar */ - yahooCalendar: Scalars['Url']; + yahooCalendar: Scalars["Url"]; }; export type CancelAppointmentInput = { - id: Scalars['ID']; - notes?: Maybe; + id: Scalars["ID"]; + notes?: Maybe; }; export type CancelAppointmentPayload = { - __typename?: 'CancelAppointmentPayload'; + __typename?: "CancelAppointmentPayload"; appointment: Appointment; }; /** Represents a cart flow used for booking or purchasing things. */ export type Cart = Node & { - __typename?: 'Cart'; + __typename?: "Cart"; /** Optional gratuity defined in advance for bookable items. */ advanceGratuity?: Maybe; /** @@ -528,18 +533,18 @@ export type Cart = Node & { */ clientInformation?: Maybe; /** Optional message from the client to the business. */ - clientMessage?: Maybe; + clientMessage?: Maybe; /** * Timestamp of when the cart was completed. * * This field cannot be edited and once completed cannot be changed. */ - completedAt?: Maybe; + completedAt?: Maybe; /** * When the cart has reserved bookable items, the end time of the latest item. * This value is `null` when there are no reservations. */ - endTime?: Maybe; + endTime?: Maybe; /** Current validation errors. */ errors: Array; /** @@ -548,15 +553,15 @@ export type Cart = Node & { * value is `null` when there are no reservations and is reset into the future * whenever a new reservation is added. */ - expiresAt?: Maybe; + expiresAt?: Maybe; /** Features available to the cart. */ features: CartFeatures; /** A list of guests added to the cart */ guests: Array; /** The ID of an object */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Timestamp when the cart was created. */ - insertedAt: Scalars['DateTime']; + insertedAt: Scalars["DateTime"]; /** Location associated with the cart */ location?: Maybe; /** @@ -580,96 +585,94 @@ export type Cart = Node & { * When the cart has reserved bookable items, the starting time of the earliest * item. This value is `null` when there are no reservations. */ - startTime?: Maybe; + startTime?: Maybe; /** * Selected starting time ID for the item, corresponds to the ID that was used * to reserve the times. This value is `null` when there are no reservations. */ - startTimeId?: Maybe; + startTimeId?: Maybe; /** Summary of the cart, including e.g. line item totals. */ summary: CartSummary; /** Timestamp when the cart was last updated. */ - updatedAt: Scalars['DateTime']; + updatedAt: Scalars["DateTime"]; }; - /** Represents a cart flow used for booking or purchasing things. */ export type CartAvailableItemArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - /** Represents a cart flow used for booking or purchasing things. */ export type CartSelectedItemArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; export type CartAddToWaitlistInput = { /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** The preferred lower bound date and time of the bookable items. */ - preferredTimeLower: Scalars['NaiveDateTime']; + preferredTimeLower: Scalars["NaiveDateTime"]; /** The preferred upper bound date and time of the bookable items. */ - preferredTimeUpper: Scalars['NaiveDateTime']; + preferredTimeUpper: Scalars["NaiveDateTime"]; /** * Optional time zone the preferred times should be converted from, e.g. the client's * time zone. If a timezone other than the default location's timezone was used when * fetching bookable times, then that same timezone should be supplied in this mutation. */ - tz?: Maybe; + tz?: Maybe; }; export type CartAddToWaitlistPayload = { - __typename?: 'CartAddToWaitlistPayload'; + __typename?: "CartAddToWaitlistPayload"; cart: Cart; }; /** Gratuity set in advance for bookable items. */ export type CartAdvanceGratuity = { - __typename?: 'CartAdvanceGratuity'; + __typename?: "CartAdvanceGratuity"; /** Fixed gratuity amount, has to be set if `percentage` is not set. */ - fixed?: Maybe; + fixed?: Maybe; /** Percentage gratuity amount, has to be set if `fixed` is not set. */ - percentage?: Maybe; + percentage?: Maybe; }; /** See `CartAdvanceGratuity`. */ export type CartAdvanceGratuityInput = { - fixed?: Maybe; - percentage?: Maybe; + fixed?: Maybe; + percentage?: Maybe; }; export type CartAppointment = { - __typename?: 'CartAppointment'; - appointmentId: Scalars['ID']; - clientId: Scalars['ID']; + __typename?: "CartAppointment"; + appointmentId: Scalars["ID"]; + clientId: Scalars["ID"]; /** Whether an appointment belongs to the cart owner. */ - forCartOwner: Scalars['Boolean']; + forCartOwner: Scalars["Boolean"]; }; /** Item that can be booked through `addCartBookableItem`. */ export type CartAvailableBookableItem = CartAvailableItem & { - __typename?: 'CartAvailableBookableItem'; + __typename?: "CartAvailableBookableItem"; /** Refer to the super type. */ - description?: Maybe; + description?: Maybe; /** Refer to the super type. */ - disabled: Scalars['Boolean']; + disabled: Scalars["Boolean"]; /** Refer to the super type. */ - disabledDescription?: Maybe; + disabledDescription?: Maybe; /** Refer to the super type. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Displayed client duration in minutes. * @deprecated Use `listDurationRange` instead. */ - listDuration: Scalars['Int']; + listDuration: Scalars["Int"]; /** Refer to the super type. */ listDurationRange: CartDurationRange; /** * Refer to the super type. * @deprecated Use `listPriceRange` instead. */ - listPrice: Scalars['Money']; + listPrice: Scalars["Money"]; /** Refer to the super type. */ listPriceRange: CartPriceRange; /** @@ -685,7 +688,7 @@ export type CartAvailableBookableItem = CartAvailableItem & { */ locationVariants: Array; /** Refer to the super type. */ - name: Scalars['String']; + name: Scalars["String"]; /** * Groups of available options for modifying the booked service. These can be * used to modify the booked item and may affect pricing and timing. @@ -704,35 +707,35 @@ export type CartAvailableBookableItem = CartAvailableItem & { * Whether duration varies per staff variant. * @deprecated Use `listDurationRange` instead. */ - variableDuration: Scalars['Boolean']; + variableDuration: Scalars["Boolean"]; /** * Whether price varies per staff variant. * @deprecated Use `listPriceRange` instead. */ - variablePrice: Scalars['Boolean']; + variablePrice: Scalars["Boolean"]; }; /** Location variant of a bookable item */ export type CartAvailableBookableItemLocationVariant = { - __typename?: 'CartAvailableBookableItemLocationVariant'; + __typename?: "CartAvailableBookableItemLocationVariant"; location: Location; }; /** Option of a bookable item that can be selected. */ export type CartAvailableBookableItemOption = { - __typename?: 'CartAvailableBookableItemOption'; + __typename?: "CartAvailableBookableItemOption"; /** Short optional description. */ - description?: Maybe; + description?: Maybe; /** Minutes added to duration when selected. */ - durationDelta: Scalars['Int']; + durationDelta: Scalars["Int"]; /** Group ID of the option. */ - groupId: Scalars['ID']; + groupId: Scalars["ID"]; /** ID of the option. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Short human-readable name. */ - name: Scalars['String']; + name: Scalars["String"]; /** Amount added to price when selected. */ - priceDelta: Scalars['Money']; + priceDelta: Scalars["Money"]; }; /** @@ -743,37 +746,37 @@ export type CartAvailableBookableItemOption = { * those requirements. */ export type CartAvailableBookableItemOptionGroup = { - __typename?: 'CartAvailableBookableItemOptionGroup'; + __typename?: "CartAvailableBookableItemOptionGroup"; /** Short optional description. */ - description?: Maybe; + description?: Maybe; /** ID of the option group. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Optional maximum number of options that can be selected. */ - maxLimit?: Maybe; + maxLimit?: Maybe; /** Optional minimum number of options that must be selected. */ - minLimit?: Maybe; + minLimit?: Maybe; /** Short human-readable name. */ - name: Scalars['String']; + name: Scalars["String"]; /** List of selectable options. */ options: Array; }; /** Staff variant of a bookable item. */ export type CartAvailableBookableItemStaffVariant = { - __typename?: 'CartAvailableBookableItemStaffVariant'; + __typename?: "CartAvailableBookableItemStaffVariant"; /** Duration of the variant in minutes. */ - duration: Scalars['Int']; + duration: Scalars["Int"]; /** ID of the variant. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Price of the variant before discounts and taxes. */ - price: Scalars['Money']; + price: Scalars["Money"]; /** Staff member booked. */ staff: Staff; }; /** Category of items that can be checked out. */ export type CartAvailableCategory = Node & { - __typename?: 'CartAvailableCategory'; + __typename?: "CartAvailableCategory"; /** * Items available to be checked out. * @@ -784,62 +787,62 @@ export type CartAvailableCategory = Node & { */ availableItems: Array; /** Short optional description. */ - description?: Maybe; + description?: Maybe; /** Whether the category should appear as disabled. */ - disabled: Scalars['Boolean']; + disabled: Scalars["Boolean"]; /** Message detailing why `disabled` is set. Might not be available. */ - disabledDescription?: Maybe; + disabledDescription?: Maybe; /** The ID of an object */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Short human-readable name. */ - name: Scalars['String']; + name: Scalars["String"]; }; /** Gift card that can be purchased through `addCartSelectedGiftCardItem`. */ export type CartAvailableGiftCardItem = CartAvailableItem & { - __typename?: 'CartAvailableGiftCardItem'; + __typename?: "CartAvailableGiftCardItem"; /** When true the user may enter a custom amount between the min and max price range. */ - allowCustomAmounts: Scalars['Boolean']; + allowCustomAmounts: Scalars["Boolean"]; /** Refer to the super type. */ - description?: Maybe; + description?: Maybe; /** Refer to the super type. */ - disabled: Scalars['Boolean']; + disabled: Scalars["Boolean"]; /** Refer to the super type. */ - disabledDescription?: Maybe; + disabledDescription?: Maybe; /** The maximum available price for which to purchase the gift card. */ - giftCardMax: Scalars['Money']; + giftCardMax: Scalars["Money"]; /** The minimum available price for which to purchase the gift card. */ - giftCardMin: Scalars['Money']; + giftCardMin: Scalars["Money"]; /** Refer to the super type. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Refer to the super type. * @deprecated Use `listPriceRange` instead. */ - listPrice: Scalars['Money']; + listPrice: Scalars["Money"]; /** Refer to the super type. */ listPriceRange: CartPriceRange; /** Refer to the super type. */ - name: Scalars['String']; + name: Scalars["String"]; /** The available preset prices for which to purchase the gift card. */ - pricePresets: Array; + pricePresets: Array; }; /** Abstract available item that can be checked out. */ export type CartAvailableItem = { /** Short optional description. */ - description?: Maybe; + description?: Maybe; /** Whether the item should appear disabled or hidden. */ - disabled: Scalars['Boolean']; + disabled: Scalars["Boolean"]; /** Message detailing why `disabled` is set. Might not be available. */ - disabledDescription?: Maybe; + disabledDescription?: Maybe; /** ID of the item. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Displayed price of the item before tax. * @deprecated Use `listPriceRange` instead. */ - listPrice: Scalars['Money']; + listPrice: Scalars["Money"]; /** * Displayed price range of the item before tax. * @@ -849,34 +852,34 @@ export type CartAvailableItem = { */ listPriceRange: CartPriceRange; /** Short human-readable name. */ - name: Scalars['String']; + name: Scalars["String"]; }; /** Item that can be purchased through `addCartPurchasableItem`. */ export type CartAvailablePurchasableItem = CartAvailableItem & { - __typename?: 'CartAvailablePurchasableItem'; + __typename?: "CartAvailablePurchasableItem"; /** Refer to the super type. */ - description?: Maybe; + description?: Maybe; /** Refer to the super type. */ - disabled: Scalars['Boolean']; + disabled: Scalars["Boolean"]; /** Refer to the super type. */ - disabledDescription?: Maybe; + disabledDescription?: Maybe; /** Refer to the super type. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Refer to the super type. * @deprecated Use `listPriceRange` instead. */ - listPrice: Scalars['Money']; + listPrice: Scalars["Money"]; /** Refer to the super type. */ listPriceRange: CartPriceRange; /** Refer to the super type. */ - name: Scalars['String']; + name: Scalars["String"]; }; /** Available starting date for bookable items in a cart. */ export type CartBookableDate = { - __typename?: 'CartBookableDate'; + __typename?: "CartBookableDate"; /** * Available date for the bookable items. * @@ -884,18 +887,18 @@ export type CartBookableDate = { * time zone is requested using the `tz` argument. The date uses the requested * time zone, or the location's time zone when `tz` is null. */ - date: Scalars['Date']; + date: Scalars["Date"]; }; /** An item that can be booked at a certain time. */ export type CartBookableItem = CartItem & { - __typename?: 'CartBookableItem'; + __typename?: "CartBookableItem"; /** Refer to the super type. */ availablePaymentMethods: Array; /** Refer to the super type. */ - discountAmount?: Maybe; + discountAmount?: Maybe; /** Refer to the super type. */ - discountCode?: Maybe; + discountCode?: Maybe; /** Refer to the super type. */ errors: Array; /** @@ -911,15 +914,15 @@ export type CartBookableItem = CartItem & { * * This field is more efficient than `guest` when only the ID is required. */ - guestId?: Maybe; + guestId?: Maybe; /** Refer to the super type. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Refer to the super type. */ item: CartAvailableBookableItem; /** Refer to the super type. */ - lineTotal?: Maybe; + lineTotal?: Maybe; /** Refer to the super type. */ - price?: Maybe; + price?: Maybe; /** Any selected options for the item. */ selectedOptions: Array; /** Refer to the super type. */ @@ -942,31 +945,31 @@ export type CartBookableItem = CartItem & { * reverts to `null` and needs to be selected again. See the parent cart’s * `expiresAt` field for more information. */ - startTime?: Maybe; + startTime?: Maybe; /** Refer to the super type. */ - taxAmount?: Maybe; + taxAmount?: Maybe; }; /** Available starting time for bookable items in a cart. */ export type CartBookableTime = { - __typename?: 'CartBookableTime'; + __typename?: "CartBookableTime"; /** ID of this particular time. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** @deprecated Do not use. */ - score: Scalars['Float']; + score: Scalars["Float"]; /** Available start time for the earliest bookable item. */ - startTime: Scalars['DateTime']; + startTime: Scalars["DateTime"]; }; export type CartBookingQuestion = { - __typename?: 'CartBookingQuestion'; + __typename?: "CartBookingQuestion"; answer?: Maybe; /** How the input for the booking question should be displayed. */ displayType: CartBookingQuestionDisplayType; /** Validation errors for the question */ - errors?: Maybe>; + errors?: Maybe>; /** Unique ID of the question */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Unique key of the question. Compared to the IDs (which should * always be treated as opaque), this can be be interpreted by the client code. @@ -977,13 +980,13 @@ export type CartBookingQuestion = { * currently cannot be set in the UI. Please contact the developer support if * you need to use this field. */ - key: Scalars['String']; + key: Scalars["String"]; /** Booking question displayed label */ - label: Scalars['String']; + label: Scalars["String"]; /** Options for select/multiselect booking questions */ options: Array; /** Whether the answer is required to checkout */ - required: Scalars['Boolean']; + required: Scalars["Boolean"]; /** Indicates the type of entity that the booking question answer is mapped to. */ schema?: Maybe; /** Accepted type for the booking question answer. */ @@ -993,115 +996,122 @@ export type CartBookingQuestion = { export type CartBookingQuestionAddAnswerInput = { answer: CartBookingQuestionAnswerInput; /** The ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** The ID of the booking question */ - questionId: Scalars['ID']; + questionId: Scalars["ID"]; }; export type CartBookingQuestionAddAnswerPayload = { - __typename?: 'CartBookingQuestionAddAnswerPayload'; + __typename?: "CartBookingQuestionAddAnswerPayload"; cart: Cart; }; /** Current answer for the booking question. */ -export type CartBookingQuestionAnswer = CartBookingQuestionBooleanAnswer | CartBookingQuestionDatetimeAnswer | CartBookingQuestionFloatAnswer | CartBookingQuestionIntegerAnswer | CartBookingQuestionMultiSelectAnswer | CartBookingQuestionSelectAnswer | CartBookingQuestionTextAnswer; +export type CartBookingQuestionAnswer = + | CartBookingQuestionBooleanAnswer + | CartBookingQuestionDatetimeAnswer + | CartBookingQuestionFloatAnswer + | CartBookingQuestionIntegerAnswer + | CartBookingQuestionMultiSelectAnswer + | CartBookingQuestionSelectAnswer + | CartBookingQuestionTextAnswer; export type CartBookingQuestionAnswerInput = { - booleanValue?: Maybe; - datetimeValue?: Maybe; - floatValue?: Maybe; - integerValue?: Maybe; + booleanValue?: Maybe; + datetimeValue?: Maybe; + floatValue?: Maybe; + integerValue?: Maybe; optionValue?: Maybe; optionValues?: Maybe>; - textValue?: Maybe; + textValue?: Maybe; }; export type CartBookingQuestionBooleanAnswer = { - __typename?: 'CartBookingQuestionBooleanAnswer'; - booleanValue: Scalars['Boolean']; + __typename?: "CartBookingQuestionBooleanAnswer"; + booleanValue: Scalars["Boolean"]; }; export type CartBookingQuestionClearAnswerInput = { /** The ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** The ID of the booking question */ - questionId: Scalars['ID']; + questionId: Scalars["ID"]; }; export type CartBookingQuestionClearAnswerPayload = { - __typename?: 'CartBookingQuestionClearAnswerPayload'; + __typename?: "CartBookingQuestionClearAnswerPayload"; cart: Cart; }; export type CartBookingQuestionDatetimeAnswer = { - __typename?: 'CartBookingQuestionDatetimeAnswer'; - datetimeValue: Scalars['DateTime']; + __typename?: "CartBookingQuestionDatetimeAnswer"; + datetimeValue: Scalars["DateTime"]; }; export enum CartBookingQuestionDisplayType { - Boolean = 'BOOLEAN', - Datetime = 'DATETIME', - Float = 'FLOAT', - Integer = 'INTEGER', - LongText = 'LONG_TEXT', - Multiselect = 'MULTISELECT', - Select = 'SELECT', - ShortText = 'SHORT_TEXT' + Boolean = "BOOLEAN", + Datetime = "DATETIME", + Float = "FLOAT", + Integer = "INTEGER", + LongText = "LONG_TEXT", + Multiselect = "MULTISELECT", + Select = "SELECT", + ShortText = "SHORT_TEXT" } export type CartBookingQuestionFloatAnswer = { - __typename?: 'CartBookingQuestionFloatAnswer'; - floatValue: Scalars['Float']; + __typename?: "CartBookingQuestionFloatAnswer"; + floatValue: Scalars["Float"]; }; export type CartBookingQuestionIntegerAnswer = { - __typename?: 'CartBookingQuestionIntegerAnswer'; - integerValue: Scalars['Int']; + __typename?: "CartBookingQuestionIntegerAnswer"; + integerValue: Scalars["Int"]; }; export type CartBookingQuestionMultiSelectAnswer = { - __typename?: 'CartBookingQuestionMultiSelectAnswer'; + __typename?: "CartBookingQuestionMultiSelectAnswer"; options: Array; }; export type CartBookingQuestionOption = { - __typename?: 'CartBookingQuestionOption'; - id: Scalars['ID']; - label: Scalars['String']; + __typename?: "CartBookingQuestionOption"; + id: Scalars["ID"]; + label: Scalars["String"]; }; export enum CartBookingQuestionSchema { - Appointment = 'APPOINTMENT', - Client = 'CLIENT' + Appointment = "APPOINTMENT", + Client = "CLIENT" } export type CartBookingQuestionSelectAnswer = { - __typename?: 'CartBookingQuestionSelectAnswer'; + __typename?: "CartBookingQuestionSelectAnswer"; option: CartBookingQuestionOption; }; export type CartBookingQuestionTextAnswer = { - __typename?: 'CartBookingQuestionTextAnswer'; - textValue: Scalars['String']; + __typename?: "CartBookingQuestionTextAnswer"; + textValue: Scalars["String"]; }; export enum CartBookingQuestionValueType { - Boolean = 'BOOLEAN', - Datetime = 'DATETIME', - Float = 'FLOAT', - Integer = 'INTEGER', - Multiselect = 'MULTISELECT', - Select = 'SELECT', - Text = 'TEXT' + Boolean = "BOOLEAN", + Datetime = "DATETIME", + Float = "FLOAT", + Integer = "INTEGER", + Multiselect = "MULTISELECT", + Select = "SELECT", + Text = "TEXT" } export type CartClearInput = { /** ID of the cart */ - id: Scalars['ID']; + id: Scalars["ID"]; }; export type CartClearPayload = { - __typename?: 'CartClearPayload'; + __typename?: "CartClearPayload"; cart: Cart; }; @@ -1110,22 +1120,22 @@ export type CartClearPayload = { * someone else than the current user. */ export type CartClientInformation = { - __typename?: 'CartClientInformation'; + __typename?: "CartClientInformation"; /** Email address. */ - email?: Maybe; + email?: Maybe; /** External ID of the client, used to integrate with external systems. */ - externalId?: Maybe; + externalId?: Maybe; /** First name. */ - firstName: Scalars['String']; + firstName: Scalars["String"]; /** Last name. */ - lastName?: Maybe; + lastName?: Maybe; /** Mobile phone number. */ - phoneNumber?: Maybe; + phoneNumber?: Maybe; }; /** See `CartClientInformation`. */ export type CartClientInformationInput = { - email?: Maybe; + email?: Maybe; /** * External ID of the client, used to integrate with external systems. * @@ -1133,32 +1143,32 @@ export type CartClientInformationInput = { * at checkout, if the external ID is not unique for the new client, the value * is ignored. */ - externalId?: Maybe; - firstName: Scalars['String']; - lastName?: Maybe; - phoneNumber?: Maybe; + externalId?: Maybe; + firstName: Scalars["String"]; + lastName?: Maybe; + phoneNumber?: Maybe; }; /** Displayed duration range of a bookable item. */ export type CartDurationRange = { - __typename?: 'CartDurationRange'; + __typename?: "CartDurationRange"; /** Maximum duration in minutes. */ - max: Scalars['Int']; + max: Scalars["Int"]; /** Minimum duration in minutes. */ - min: Scalars['Int']; + min: Scalars["Int"]; /** Whether the duration is variable, i.e. the minimum and maximum differ. */ - variable: Scalars['Boolean']; + variable: Scalars["Boolean"]; }; /** Cart validation error. */ export type CartError = { - __typename?: 'CartError'; + __typename?: "CartError"; /** Machine-readable code. */ code: CartErrorCode; /** Detailed geek-readable description. */ - description: Scalars['String']; + description: Scalars["String"]; /** Short human-readable message. */ - message: Scalars['String']; + message: Scalars["String"]; }; /** Machine-readable cart validation error code. */ @@ -1170,7 +1180,7 @@ export enum CartErrorCode { * * Make sure that all required booking questions have valid answers. */ - CartBookingQuestionAnswerMissing = 'CART_BOOKING_QUESTION_ANSWER_MISSING', + CartBookingQuestionAnswerMissing = "CART_BOOKING_QUESTION_ANSWER_MISSING", /** * One or more gift card items do not have a valid price. * @@ -1180,7 +1190,7 @@ export enum CartErrorCode { * See cartAvailableGiftCardItem.minPrice and cartAvailableGiftCardItem.maxPrice * for upper and lower bound price limits. */ - CartGiftCardItemPrice = 'CART_GIFT_CARD_ITEM_PRICE', + CartGiftCardItemPrice = "CART_GIFT_CARD_ITEM_PRICE", /** * This cart is not associated with an existing client, therefore separate * client information is required. @@ -1191,7 +1201,7 @@ export enum CartErrorCode { * the cart, or client information must be added using the `clientInformation` * field. */ - CartMissingClientInformation = 'CART_MISSING_CLIENT_INFORMATION', + CartMissingClientInformation = "CART_MISSING_CLIENT_INFORMATION", /** * No cart items have been selected, at least one is required. * @@ -1200,7 +1210,7 @@ export enum CartErrorCode { * Add one or more items to the cart before checking out, empty carts cannot be * checked out. */ - CartMissingItems = 'CART_MISSING_ITEMS', + CartMissingItems = "CART_MISSING_ITEMS", /** * One or more cart items is missing a payment method. * @@ -1210,7 +1220,7 @@ export enum CartErrorCode { * before checking out. These items will each have a separate item-specific * validation error with the same code. */ - CartMissingItemPaymentMethod = 'CART_MISSING_ITEM_PAYMENT_METHOD', + CartMissingItemPaymentMethod = "CART_MISSING_ITEM_PAYMENT_METHOD", /** * One or more bookable items is missing a reserved time. * @@ -1223,7 +1233,7 @@ export enum CartErrorCode { * Note that times are only reserved temporarily and will expire unless the * cart is checked out before the expiration time. */ - CartMissingItemTime = 'CART_MISSING_ITEM_TIME', + CartMissingItemTime = "CART_MISSING_ITEM_TIME", /** * A location has not been selected for a cart. * @@ -1231,67 +1241,67 @@ export enum CartErrorCode { * * Before checking out, select a location for a cart. */ - CartMissingLocation = 'CART_MISSING_LOCATION' + CartMissingLocation = "CART_MISSING_LOCATION" } /** Features available to the cart. */ export type CartFeatures = { - __typename?: 'CartFeatures'; + __typename?: "CartFeatures"; /** * Whether the booking questions feature is enabled. It also enables * the `CART_BOOKING_QUESTION_ANSWER_MISSING` error on the Cart. */ - bookingQuestionsEnabled: Scalars['Boolean']; + bookingQuestionsEnabled: Scalars["Boolean"]; /** Whether gift cards are available to be purchased in this cart. */ - giftCardPurchaseEnabled: Scalars['Boolean']; + giftCardPurchaseEnabled: Scalars["Boolean"]; /** Whether payment info is required to check out services in this cart. */ - paymentInfoRequired: Scalars['Boolean']; + paymentInfoRequired: Scalars["Boolean"]; }; /** A gift card item that can be purchased. */ export type CartGiftCardItem = CartItem & { - __typename?: 'CartGiftCardItem'; + __typename?: "CartGiftCardItem"; /** Refer to the super type. */ availablePaymentMethods: Array; /** Refer to the super type. */ - discountAmount?: Maybe; + discountAmount?: Maybe; /** Refer to the super type. */ - discountCode?: Maybe; + discountCode?: Maybe; /** Send the gift card to a recipient via email. */ emailFulfillment?: Maybe; /** Refer to the super type. */ errors: Array; giftCardDesign?: Maybe; /** Refer to the super type. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Refer to the super type. */ item: CartAvailableGiftCardItem; /** Refer to the super type. */ - lineTotal?: Maybe; + lineTotal?: Maybe; /** Refer to the super type. */ - price?: Maybe; + price?: Maybe; /** Refer to the super type. */ selectedPaymentMethod?: Maybe; /** Refer to the super type. */ - taxAmount?: Maybe; + taxAmount?: Maybe; }; /** A guest that can be associated with a bookable item. */ export type CartGuest = { - __typename?: 'CartGuest'; + __typename?: "CartGuest"; /** Email address, if provided. */ - email?: Maybe; + email?: Maybe; /** First name, if provided. */ - firstName?: Maybe; + firstName?: Maybe; /** ID of the guest. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Name of the guest if provided, otherwise a user-friendly fallback name that * uniquely identifies the guest. */ - label: Scalars['String']; + label: Scalars["String"]; /** Last name, if provided. */ - lastName?: Maybe; + lastName?: Maybe; /** * Positive ordinal number starting at 1. * @@ -1299,9 +1309,9 @@ export type CartGuest = { * Use the `id` field for that instead. Also, don't assume this scheme follows * any predefined ordering. */ - number: Scalars['Int']; + number: Scalars["Int"]; /** Mobile phone, if provided. */ - phoneNumber?: Maybe; + phoneNumber?: Maybe; }; /** Abstract item added using the `addCart...Item` mutations. */ @@ -1309,74 +1319,74 @@ export type CartItem = { /** Payment methods available for this item. */ availablePaymentMethods: Array; /** Total discount amount on the price. Null if location is not set yet. */ - discountAmount?: Maybe; + discountAmount?: Maybe; /** * Valid discount code that was applied, either the cart's code or one that was * applied separately to the item. An invalid code results in a `null` value. */ - discountCode?: Maybe; + discountCode?: Maybe; /** Current item validation errors. */ errors: Array; /** ID of the item. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Original item details. */ item: CartAvailableItem; /** Total for the item after discounts and taxes. Null if location is not set yet. */ - lineTotal?: Maybe; + lineTotal?: Maybe; /** Price before discounts and taxes. Null if location is not set yet. */ - price?: Maybe; + price?: Maybe; /** Payment method selected for this item. */ selectedPaymentMethod?: Maybe; /** Total tax amount on the discounted price. Null if location is not set yet. */ - taxAmount?: Maybe; + taxAmount?: Maybe; }; /** Cart item card payment method. */ export type CartItemCardPaymentMethod = CartItemPaymentMethod & { - __typename?: 'CartItemCardPaymentMethod'; + __typename?: "CartItemCardPaymentMethod"; /** Brand name of the associated card. */ - cardBrand: Scalars['String']; + cardBrand: Scalars["String"]; /** Expiration month of the associated card. */ - cardExpMonth: Scalars['Int']; + cardExpMonth: Scalars["Int"]; /** Expiration year of the associated card. */ - cardExpYear: Scalars['Int']; + cardExpYear: Scalars["Int"]; /** Holder name of the associated card, might be `null`. */ - cardHolder?: Maybe; + cardHolder?: Maybe; /** Whether the associated card is the default card. */ - cardIsDefault: Scalars['Boolean']; + cardIsDefault: Scalars["Boolean"]; /** Last four digits of the card number. */ - cardLast4: Scalars['String']; + cardLast4: Scalars["String"]; /** Refer to the super type. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Refer to the super type. */ - name: Scalars['String']; + name: Scalars["String"]; }; /** Send the item to a recipient via email. */ export type CartItemEmailFulfillment = { - __typename?: 'CartItemEmailFulfillment'; + __typename?: "CartItemEmailFulfillment"; /** Optionally specify a delivery date for the email. */ - deliveryDate?: Maybe; - id: Scalars['ID']; + deliveryDate?: Maybe; + id: Scalars["ID"]; /** Optionally include a message from the sender to the recipient. */ - messageFromSender?: Maybe; + messageFromSender?: Maybe; /** The email the item should be sent to. */ - recipientEmail: Scalars['Email']; + recipientEmail: Scalars["Email"]; /** The name of the person receiving the item. */ - recipientName: Scalars['String']; + recipientName: Scalars["String"]; /** The name of the person sending the item. */ - senderName: Scalars['String']; + senderName: Scalars["String"]; }; /** Cart item validation error. */ export type CartItemError = { - __typename?: 'CartItemError'; + __typename?: "CartItemError"; /** Machine-readable code. */ code: CartItemErrorCode; /** Detailed geek-readable description. */ - description: Scalars['String']; + description: Scalars["String"]; /** Short human-readable message. */ - message: Scalars['String']; + message: Scalars["String"]; }; /** Machine-readable cart item validation error code. */ @@ -1389,7 +1399,7 @@ export enum CartItemErrorCode { * All items in the cart that require payment must have a payment method set * before checking out. */ - CartMissingItemPaymentMethod = 'CART_MISSING_ITEM_PAYMENT_METHOD', + CartMissingItemPaymentMethod = "CART_MISSING_ITEM_PAYMENT_METHOD", /** * This bookable item is missing a reserved time. * @@ -1399,47 +1409,47 @@ export enum CartItemErrorCode { * out. Note that times are only reserved temporarily and will expire unless * the cart is checked out before the expiration time. */ - CartMissingItemTime = 'CART_MISSING_ITEM_TIME' + CartMissingItemTime = "CART_MISSING_ITEM_TIME" } /** Specified design for a CartItemEmailFulfillment. */ export type CartItemGiftCardDesign = { - __typename?: 'CartItemGiftCardDesign'; - backgroundColor?: Maybe; - foregroundText?: Maybe; - id: Scalars['ID']; - image?: Maybe; + __typename?: "CartItemGiftCardDesign"; + backgroundColor?: Maybe; + foregroundText?: Maybe; + id: Scalars["ID"]; + image?: Maybe; }; /** Cart item payment method. */ export type CartItemPaymentMethod = { /** ID of the method. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Short human-readable name. */ - name: Scalars['String']; + name: Scalars["String"]; }; /** Cart item voucher payment method. */ export type CartItemVoucherPaymentMethod = CartItemPaymentMethod & { - __typename?: 'CartItemVoucherPaymentMethod'; + __typename?: "CartItemVoucherPaymentMethod"; /** Number of vouchers available, always at least one. */ - availableCount: Scalars['Int']; + availableCount: Scalars["Int"]; /** * Last date when the voucher is valid, or `null` if valid forever. * * Note that when there are multiple vouchers available with different * expiration dates, this is the earliest date when a voucher expires. */ - expiresOn?: Maybe; + expiresOn?: Maybe; /** Refer to the super type. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Refer to the super type. */ - name: Scalars['String']; + name: Scalars["String"]; }; /** Offer added to a cart, see the `offers` field. */ export type CartOffer = { - __typename?: 'CartOffer'; + __typename?: "CartOffer"; /** * Whether this offer is applied to any items currently in the cart. * @@ -1447,146 +1457,145 @@ export type CartOffer = { * used) but there are no items in the current cart that could be affected. * When applicable items are added later, the offer is applied then. */ - applied: Scalars['Boolean']; + applied: Scalars["Boolean"]; /** Case-insensitive, uniquely identifying code. */ - code: Scalars['String']; + code: Scalars["String"]; /** ID of the offer. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Human-readable name. */ - name: Scalars['String']; + name: Scalars["String"]; }; /** Displayed price range of an item, before tax. */ export type CartPriceRange = { - __typename?: 'CartPriceRange'; + __typename?: "CartPriceRange"; /** Maximum price. */ - max: Scalars['Money']; + max: Scalars["Money"]; /** Minimum price. */ - min: Scalars['Money']; + min: Scalars["Money"]; /** Whether the price is variable, i.e. the minimum and maximum differ. */ - variable: Scalars['Boolean']; + variable: Scalars["Boolean"]; }; /** An item that can be purchased. */ export type CartPurchasableItem = CartItem & { - __typename?: 'CartPurchasableItem'; + __typename?: "CartPurchasableItem"; /** Refer to the super type. */ availablePaymentMethods: Array; /** Refer to the super type. */ - discountAmount?: Maybe; + discountAmount?: Maybe; /** Refer to the super type. */ - discountCode?: Maybe; + discountCode?: Maybe; /** Refer to the super type. */ errors: Array; /** Refer to the super type. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Refer to the super type. */ item: CartAvailablePurchasableItem; /** Refer to the super type. */ - lineTotal?: Maybe; + lineTotal?: Maybe; /** Refer to the super type. */ - price?: Maybe; + price?: Maybe; /** Refer to the super type. */ selectedPaymentMethod?: Maybe; /** Refer to the super type. */ - taxAmount?: Maybe; + taxAmount?: Maybe; }; export type CartSetLocationInput = { /** ID of the cart */ - id: Scalars['ID']; + id: Scalars["ID"]; /** ID of the location */ - locationId: Scalars['ID']; + locationId: Scalars["ID"]; }; export type CartSetLocationPayload = { - __typename?: 'CartSetLocationPayload'; + __typename?: "CartSetLocationPayload"; /** Updated Cart */ cart: Cart; }; /** Summary of the cart, including e.g. line item totals. */ export type CartSummary = { - __typename?: 'CartSummary'; + __typename?: "CartSummary"; deposit: DepositType; /** Total required deposit amount. */ - depositAmount: Scalars['Money']; + depositAmount: Scalars["Money"]; /** Total discount amount on the subtotal. */ - discountAmount: Scalars['Money']; + discountAmount: Scalars["Money"]; /** Total gratuity amount on the subtotal. */ - gratuityAmount: Scalars['Money']; + gratuityAmount: Scalars["Money"]; /** Whether a payment method is required */ - paymentMethodRequired: Scalars['Boolean']; + paymentMethodRequired: Scalars["Boolean"]; /** Rounding amount on the discounted and taxed subtotal. */ - roundingAmount: Scalars['Money']; + roundingAmount: Scalars["Money"]; /** Subtotal before gratuity, discounts, taxes, and rounding. */ - subtotal: Scalars['Money']; + subtotal: Scalars["Money"]; /** Total tax amount on the discounted subtotal. */ - taxAmount: Scalars['Money']; + taxAmount: Scalars["Money"]; /** Total after gratuity, discounts, taxes, and rounding. */ - total: Scalars['Money']; + total: Scalars["Money"]; }; export type CheckoutCartInput = { /** ID of the cart */ - id: Scalars['ID']; + id: Scalars["ID"]; }; export type CheckoutCartPayload = { - __typename?: 'CheckoutCartPayload'; + __typename?: "CheckoutCartPayload"; appointments: Array; cart: Cart; }; /** A Client */ export type Client = Node & { - __typename?: 'Client'; + __typename?: "Client"; /** Email address */ - email?: Maybe; + email?: Maybe; /** First name */ - firstName?: Maybe; + firstName?: Maybe; /** The ID of an object */ - id: Scalars['ID']; - insertedAt: Scalars['DateTime']; + id: Scalars["ID"]; + insertedAt: Scalars["DateTime"]; /** Last name */ - lastName?: Maybe; + lastName?: Maybe; /** Mobile phone number */ - mobilePhone?: Maybe; + mobilePhone?: Maybe; /** Full name */ - name?: Maybe; - updatedAt: Scalars['DateTime']; + name?: Maybe; + updatedAt: Scalars["DateTime"]; }; - /** See `CartItemEmailFulfillment`. */ export type CreateCartGiftCardItemEmailFulfillmentInput = { - deliveryDate?: Maybe; + deliveryDate?: Maybe; /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** The id of the CartGiftCardItem. */ - itemId: Scalars['ID']; - messageFromSender?: Maybe; - recipientEmail: Scalars['Email']; - recipientName: Scalars['String']; - senderName: Scalars['String']; + itemId: Scalars["ID"]; + messageFromSender?: Maybe; + recipientEmail: Scalars["Email"]; + recipientName: Scalars["String"]; + senderName: Scalars["String"]; }; export type CreateCartGiftCardItemEmailFulfillmentPayload = { - __typename?: 'CreateCartGiftCardItemEmailFulfillmentPayload'; + __typename?: "CreateCartGiftCardItemEmailFulfillmentPayload"; cart: Cart; emailFulfillment: CartItemEmailFulfillment; }; export type CreateCartGuestInput = { - email?: Maybe; - firstName?: Maybe; - id: Scalars['ID']; - lastName?: Maybe; - phoneNumber?: Maybe; + email?: Maybe; + firstName?: Maybe; + id: Scalars["ID"]; + lastName?: Maybe; + phoneNumber?: Maybe; }; export type CreateCartGuestPayload = { - __typename?: 'CreateCartGuestPayload'; + __typename?: "CreateCartGuestPayload"; cart: Cart; guest: CartGuest; }; @@ -1597,230 +1606,222 @@ export type CreateCartInput = { /** Optional client information */ clientInformation?: Maybe; /** Optional message or note from the client to the business */ - clientMessage?: Maybe; + clientMessage?: Maybe; /** Optional discount code */ - discountCode?: Maybe; + discountCode?: Maybe; /** ID of the cart location */ - locationId?: Maybe; + locationId?: Maybe; /** * Referral source for the appointments booked in the cart. * * This values is mapped to the appointments' 'referral_source' custom * field values after checkout. */ - referralSource?: Maybe; + referralSource?: Maybe; }; export type CreateCartPayload = { - __typename?: 'CreateCartPayload'; + __typename?: "CreateCartPayload"; cart: Cart; }; - - export type DeleteCartGiftCardItemEmailFulfillmentInput = { /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** The id of the CartGiftCardItem. */ - itemId: Scalars['ID']; + itemId: Scalars["ID"]; }; export type DeleteCartGiftCardItemEmailFulfillmentPayload = { - __typename?: 'DeleteCartGiftCardItemEmailFulfillmentPayload'; + __typename?: "DeleteCartGiftCardItemEmailFulfillmentPayload"; cart: Cart; }; export type DeleteCartGuestInput = { - guestId: Scalars['ID']; - id: Scalars['ID']; + guestId: Scalars["ID"]; + id: Scalars["ID"]; }; export type DeleteCartGuestPayload = { - __typename?: 'DeleteCartGuestPayload'; + __typename?: "DeleteCartGuestPayload"; cart: Cart; }; export enum DepositType { /** An amount that covers the entire cost of the service is due at the time of booking. In other words, the deposit amount is equal to the total amount */ - FullDeposit = 'FULL_DEPOSIT', + FullDeposit = "FULL_DEPOSIT", /** There is no deposit required before the time of service. In other words, the deposit amount is zero */ - NoDeposit = 'NO_DEPOSIT', + NoDeposit = "NO_DEPOSIT", /** An amount that will go towards the final total amount is due at the time of booking. In other words, the deposit amount is less than the total amount */ - PartialDeposit = 'PARTIAL_DEPOSIT' + PartialDeposit = "PARTIAL_DEPOSIT" } - - export type GiftCardDesign = { - __typename?: 'GiftCardDesign'; - backgroundColor?: Maybe; - foregroundText?: Maybe; - id: Scalars['ID']; - image?: Maybe; - name: Scalars['String']; - preset: Scalars['Boolean']; + __typename?: "GiftCardDesign"; + backgroundColor?: Maybe; + foregroundText?: Maybe; + id: Scalars["ID"]; + image?: Maybe; + name: Scalars["String"]; + preset: Scalars["Boolean"]; }; /** Location */ export type Location = Node & { - __typename?: 'Location'; + __typename?: "Location"; /** The location's address */ address: Address; /** URL to an image related to the location */ - avatar?: Maybe; + avatar?: Maybe; /** Name of the business */ - businessName: Scalars['String']; + businessName: Scalars["String"]; /** The coordinates of the location */ - coordinates?: Maybe; + coordinates?: Maybe; /** Location external id */ - externalId?: Maybe; + externalId?: Maybe; /** The ID of an object */ - id: Scalars['ID']; - insertedAt: Scalars['DateTime']; + id: Scalars["ID"]; + insertedAt: Scalars["DateTime"]; /** * Indicates that the location is a remote location, and that appointments for * this location are carried out remotely. */ - isRemote: Scalars['Boolean']; + isRemote: Scalars["Boolean"]; /** The location's name */ - name: Scalars['String']; + name: Scalars["String"]; /** The location's phone number */ - phoneNumber?: Maybe; + phoneNumber?: Maybe; /** The location's timezone */ - tz: Scalars['Tz']; - updatedAt: Scalars['DateTime']; + tz: Scalars["Tz"]; + updatedAt: Scalars["DateTime"]; }; export type LocationConnection = { - __typename?: 'LocationConnection'; + __typename?: "LocationConnection"; edges?: Maybe>>; pageInfo: PageInfo; }; export type LocationEdge = { - __typename?: 'LocationEdge'; - cursor?: Maybe; + __typename?: "LocationEdge"; + cursor?: Maybe; node?: Maybe; }; /** A client membership sold at the business. */ export type Membership = Node & { - __typename?: 'Membership'; + __typename?: "Membership"; /** Client who owns the membership. */ client: Client; /** The id of the client who owns the membership. */ - clientId: Scalars['ID']; + clientId: Scalars["ID"]; /** * Ending date for the membership. * * May be NULL to indicate an indefinitely frozen membership. */ - endOn?: Maybe; + endOn?: Maybe; /** The ID of an object */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Duration of the membership interval (eg. 1 month). */ - interval: Scalars['DurationInterval']; + interval: Scalars["DurationInterval"]; /** The membership name. */ - name: Scalars['String']; + name: Scalars["String"]; /** Start date of the membership. */ - startOn: Scalars['Date']; + startOn: Scalars["Date"]; /** Membership Status. Active, Cancelled, Past Due or Paused */ status: SubscriptionStatus; /** The current term number of the membership */ - termNumber: Scalars['Int']; + termNumber: Scalars["Int"]; /** Optional vouchers included with membership */ vouchers: Array; }; export type MembershipConnection = { - __typename?: 'MembershipConnection'; + __typename?: "MembershipConnection"; edges?: Maybe>>; pageInfo: PageInfo; }; export type MembershipEdge = { - __typename?: 'MembershipEdge'; - cursor?: Maybe; + __typename?: "MembershipEdge"; + cursor?: Maybe; node?: Maybe; }; /** A membership service voucher */ export type MembershipVoucher = { - __typename?: 'MembershipVoucher'; + __typename?: "MembershipVoucher"; /** Number of vouchers included */ - quantity: Scalars['Int']; + quantity: Scalars["Int"]; service: Service; services: Array; }; - - export type Node = { /** The ID of the object. */ - id: Scalars['ID']; + id: Scalars["ID"]; }; export type OnlineGiftCardSettings = { - __typename?: 'OnlineGiftCardSettings'; + __typename?: "OnlineGiftCardSettings"; giftCardDesigns: Array; /** ID of the location that will be alloted gift card sales */ - designatedLocationId?: Maybe; + designatedLocationId?: Maybe; /** Message displayed on the gift card microsite */ - websiteMessage?: Maybe; + websiteMessage?: Maybe; }; export type PageInfo = { - __typename?: 'PageInfo'; + __typename?: "PageInfo"; /** When paginating forwards, the cursor to continue. */ - endCursor?: Maybe; + endCursor?: Maybe; /** When paginating forwards, are there more items? */ - hasNextPage: Scalars['Boolean']; + hasNextPage: Scalars["Boolean"]; /** When paginating backwards, are there more items? */ - hasPreviousPage: Scalars['Boolean']; + hasPreviousPage: Scalars["Boolean"]; /** When paginating backwards, the cursor to continue. */ - startCursor?: Maybe; + startCursor?: Maybe; }; - - export type RemoveCartOfferInput = { /** ID of the cart */ - id: Scalars['ID']; + id: Scalars["ID"]; /** The offer code identifier */ - offerId: Scalars['String']; + offerId: Scalars["String"]; }; export type RemoveCartOfferPayload = { - __typename?: 'RemoveCartOfferPayload'; + __typename?: "RemoveCartOfferPayload"; cart: Cart; }; export type RemoveCartSelectedItemInput = { /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** ID of the selected item. */ - itemId: Scalars['ID']; + itemId: Scalars["ID"]; }; export type RemoveCartSelectedItemPayload = { - __typename?: 'RemoveCartSelectedItemPayload'; + __typename?: "RemoveCartSelectedItemPayload"; cart: Cart; }; export type ReserveCartBookableItemsInput = { /** ID of the bookable time. */ - bookableTimeId: Scalars['ID']; + bookableTimeId: Scalars["ID"]; /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; }; export type ReserveCartBookableItemsPayload = { - __typename?: 'ReserveCartBookableItemsPayload'; + __typename?: "ReserveCartBookableItemsPayload"; cart: Cart; }; export type RootMutationType = { - __typename?: 'RootMutationType'; + __typename?: "RootMutationType"; /** * Add a credit card payment method to a cart. * @@ -1994,188 +1995,152 @@ export type RootMutationType = { updateClient?: Maybe; }; - export type RootMutationTypeAddCartCardPaymentMethodArgs = { input: AddCartCardPaymentMethodInput; }; - export type RootMutationTypeAddCartOfferArgs = { input: AddCartOfferInput; }; - export type RootMutationTypeAddCartSelectedBookableItemArgs = { input: AddCartSelectedBookableItemInput; }; - export type RootMutationTypeAddCartSelectedGiftCardItemArgs = { input: AddCartSelectedGiftCardItemInput; }; - export type RootMutationTypeAddCartSelectedPurchasableItemArgs = { input: AddCartSelectedPurchasableItemInput; }; - export type RootMutationTypeAppointmentAddTagsArgs = { input: AppointmentAddTagsInput; }; - export type RootMutationTypeAppointmentRescheduleArgs = { input: AppointmentRescheduleInput; }; - export type RootMutationTypeAppointmentRescheduleAvailableDatesArgs = { input: AppointmentRescheduleAvailableDatesInput; }; - export type RootMutationTypeAppointmentRescheduleAvailableTimesArgs = { input: AppointmentRescheduleAvailableTimesInput; }; - export type RootMutationTypeAuthorizeCartOwnershipArgs = { input: AuthorizeCartOwnershipInput; }; - export type RootMutationTypeCancelAppointmentArgs = { input: CancelAppointmentInput; }; - export type RootMutationTypeCartAddToWaitlistArgs = { input: CartAddToWaitlistInput; }; - export type RootMutationTypeCartBookingQuestionAddAnswerArgs = { input: CartBookingQuestionAddAnswerInput; }; - export type RootMutationTypeCartBookingQuestionClearAnswerArgs = { input: CartBookingQuestionClearAnswerInput; }; - export type RootMutationTypeCartClearArgs = { input: CartClearInput; }; - export type RootMutationTypeCartSetLocationArgs = { input: CartSetLocationInput; }; - export type RootMutationTypeCheckoutCartArgs = { input: CheckoutCartInput; }; - export type RootMutationTypeCreateCartArgs = { input: CreateCartInput; }; - export type RootMutationTypeCreateCartGiftCardItemEmailFulfillmentArgs = { input: CreateCartGiftCardItemEmailFulfillmentInput; }; - export type RootMutationTypeCreateCartGuestArgs = { input: CreateCartGuestInput; }; - export type RootMutationTypeDeleteCartGiftCardItemEmailFulfillmentArgs = { input: DeleteCartGiftCardItemEmailFulfillmentInput; }; - export type RootMutationTypeDeleteCartGuestArgs = { input: DeleteCartGuestInput; }; - export type RootMutationTypeRemoveCartOfferArgs = { input: RemoveCartOfferInput; }; - export type RootMutationTypeRemoveCartSelectedItemArgs = { input: RemoveCartSelectedItemInput; }; - export type RootMutationTypeReserveCartBookableItemsArgs = { input: ReserveCartBookableItemsInput; }; - export type RootMutationTypeSelectCartPaymentMethodArgs = { input: SelectCartPaymentMethodInput; }; - export type RootMutationTypeSendClientAuthorizationCodeViaEmailArgs = { input: SendClientAuthorizationCodeViaEmailInput; }; - export type RootMutationTypeSendClientAuthorizationCodeViaSmsArgs = { input: SendClientAuthorizationCodeViaSmsInput; }; - export type RootMutationTypeTakeCartOwnershipArgs = { input: TakeCartOwnershipInput; }; - export type RootMutationTypeUpdateCartArgs = { input: UpdateCartInput; }; - export type RootMutationTypeUpdateCartGiftCardItemEmailFulfillmentArgs = { input: UpdateCartGiftCardItemEmailFulfillmentInput; }; - export type RootMutationTypeUpdateCartGuestArgs = { input: UpdateCartGuestInput; }; - export type RootMutationTypeUpdateCartSelectedBookableItemArgs = { input: UpdateCartSelectedBookableItemInput; }; - export type RootMutationTypeUpdateCartSelectedGiftCardItemArgs = { input: UpdateCartSelectedGiftCardItemInput; }; - export type RootMutationTypeUpdateCartSelectedPurchasableItemArgs = { input: UpdateCartSelectedPurchasableItemInput; }; - export type RootMutationTypeUpdateClientArgs = { input: UpdateClientInput; }; export type RootQueryType = { - __typename?: 'RootQueryType'; + __typename?: "RootQueryType"; appointment?: Maybe; /** Look up the currently authenticated business */ business?: Maybe; @@ -2206,7 +2171,9 @@ export type RootQueryType = { * existing reservations are invalidated and the times must be reserved again * using `reserveCartBookableItems`. */ - cartBookableStaffVariants?: Maybe>; + cartBookableStaffVariants?: Maybe< + Array + >; /** * Retrieves available times for all bookable cart items, given a date that * was retrieved earlier using `cartBookableDates`. @@ -2233,210 +2200,200 @@ export type RootQueryType = { node?: Maybe; }; - export type RootQueryTypeAppointmentArgs = { - cartId?: Maybe; - id: Scalars['ID']; + cartId?: Maybe; + id: Scalars["ID"]; }; - export type RootQueryTypeCartArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type RootQueryTypeCartBookableDatesArgs = { - id: Scalars['ID']; - limit?: Maybe; - locationId?: Maybe; - searchRangeLower?: Maybe; - searchRangeUpper?: Maybe; - tz?: Maybe; + id: Scalars["ID"]; + limit?: Maybe; + locationId?: Maybe; + searchRangeLower?: Maybe; + searchRangeUpper?: Maybe; + tz?: Maybe; }; - export type RootQueryTypeCartBookableStaffVariantsArgs = { - bookableTimeId: Scalars['ID']; - id: Scalars['ID']; - itemId: Scalars['ID']; - locationId?: Maybe; + bookableTimeId: Scalars["ID"]; + id: Scalars["ID"]; + itemId: Scalars["ID"]; + locationId?: Maybe; }; - export type RootQueryTypeCartBookableTimesArgs = { - id: Scalars['ID']; - locationId?: Maybe; - searchDate: Scalars['Date']; - staffVariantIds?: Maybe>; - tz?: Maybe; + id: Scalars["ID"]; + locationId?: Maybe; + searchDate: Scalars["Date"]; + staffVariantIds?: Maybe>; + tz?: Maybe; }; - export type RootQueryTypeLocationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; + after?: Maybe; + before?: Maybe; + first?: Maybe; + last?: Maybe; }; - export type RootQueryTypeMyAppointmentsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - query?: Maybe; + after?: Maybe; + before?: Maybe; + first?: Maybe; + last?: Maybe; + query?: Maybe; }; - export type RootQueryTypeMyMembershipsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; + after?: Maybe; + before?: Maybe; + first?: Maybe; + last?: Maybe; }; - export type RootQueryTypeNodeArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; export type SelectCartPaymentMethodInput = { /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** ID of the selected payment method. */ - paymentMethodId: Scalars['ID']; + paymentMethodId: Scalars["ID"]; }; export type SelectCartPaymentMethodPayload = { - __typename?: 'SelectCartPaymentMethodPayload'; + __typename?: "SelectCartPaymentMethodPayload"; cart: Cart; }; export type SendClientAuthorizationCodeViaEmailInput = { /** Email to send the authorization code to */ - email: Scalars['String']; + email: Scalars["String"]; }; export type SendClientAuthorizationCodeViaEmailPayload = { - __typename?: 'SendClientAuthorizationCodeViaEmailPayload'; - clientAuthorizationCodeId: Scalars['String']; + __typename?: "SendClientAuthorizationCodeViaEmailPayload"; + clientAuthorizationCodeId: Scalars["String"]; }; export type SendClientAuthorizationCodeViaSmsInput = { /** Mobile phone number to send the authorization code to */ - mobilePhone: Scalars['String']; + mobilePhone: Scalars["String"]; }; export type SendClientAuthorizationCodeViaSmsPayload = { - __typename?: 'SendClientAuthorizationCodeViaSmsPayload'; - clientAuthorizationCodeId: Scalars['String']; + __typename?: "SendClientAuthorizationCodeViaSmsPayload"; + clientAuthorizationCodeId: Scalars["String"]; }; /** A Service */ export type Service = Node & { - __typename?: 'Service'; + __typename?: "Service"; /** Service Category */ category: ServiceCategory; /** Service Category Id */ - categoryId: Scalars['ID']; + categoryId: Scalars["ID"]; /** Description */ - description?: Maybe; + description?: Maybe; /** External Id */ - externalId?: Maybe; + externalId?: Maybe; /** The ID of an object */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Name */ - name: Scalars['String']; + name: Scalars["String"]; }; /** A ServiceCategory */ export type ServiceCategory = { - __typename?: 'ServiceCategory'; + __typename?: "ServiceCategory"; /** Name */ - name: Scalars['String']; + name: Scalars["String"]; }; /** Staff */ export type Staff = Node & { - __typename?: 'Staff'; + __typename?: "Staff"; /** A URL to the Avatar uploaded for this staff within the Boulevard Dashboard */ - avatar?: Maybe; + avatar?: Maybe; /** A biography of the staff member */ - bio?: Maybe; + bio?: Maybe; /** The public display name of the staff member. Preferred over other name fields. */ - displayName: Scalars['String']; + displayName: Scalars["String"]; /** The first name of the staff member. Consider using the display name instead. */ - firstName: Scalars['String']; + firstName: Scalars["String"]; /** The ID of an object */ - id: Scalars['ID']; - insertedAt: Scalars['DateTime']; + id: Scalars["ID"]; + insertedAt: Scalars["DateTime"]; /** The last name of the staff member. Consider using the display name instead. */ - lastName: Scalars['String']; + lastName: Scalars["String"]; /** The nickname of the staff member. Consider using the display name instead. */ - nickname?: Maybe; + nickname?: Maybe; /** The role the staff member holds at the business */ role: StaffRole; - updatedAt: Scalars['DateTime']; + updatedAt: Scalars["DateTime"]; }; /** Staff Role */ export type StaffRole = Node & { - __typename?: 'StaffRole'; + __typename?: "StaffRole"; /** The ID of an object */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Name of the role */ - name: Scalars['String']; + name: Scalars["String"]; }; export enum SubscriptionStatus { - Active = 'ACTIVE', - Cancelled = 'CANCELLED', - PastDue = 'PAST_DUE', - Paused = 'PAUSED' + Active = "ACTIVE", + Cancelled = "CANCELLED", + PastDue = "PAST_DUE", + Paused = "PAUSED" } export type TakeCartOwnershipInput = { /** ID of the cart */ - id: Scalars['ID']; + id: Scalars["ID"]; }; export type TakeCartOwnershipPayload = { - __typename?: 'TakeCartOwnershipPayload'; + __typename?: "TakeCartOwnershipPayload"; cart: Cart; }; - /** See `CartItemEmailFulfillment`. */ export type UpdateCartGiftCardItemEmailFulfillmentInput = { - deliveryDate?: Maybe; + deliveryDate?: Maybe; /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** The id of the CartGiftCardItem. */ - itemId: Scalars['ID']; - messageFromSender?: Maybe; - recipientEmail?: Maybe; - recipientName?: Maybe; - senderName?: Maybe; + itemId: Scalars["ID"]; + messageFromSender?: Maybe; + recipientEmail?: Maybe; + recipientName?: Maybe; + senderName?: Maybe; }; export type UpdateCartGiftCardItemEmailFulfillmentPayload = { - __typename?: 'UpdateCartGiftCardItemEmailFulfillmentPayload'; + __typename?: "UpdateCartGiftCardItemEmailFulfillmentPayload"; cart: Cart; emailFulfillment: CartItemEmailFulfillment; }; export type UpdateCartGuestInput = { - email?: Maybe; - firstName?: Maybe; - guestId: Scalars['ID']; - id: Scalars['ID']; - lastName?: Maybe; - phoneNumber?: Maybe; + email?: Maybe; + firstName?: Maybe; + guestId: Scalars["ID"]; + id: Scalars["ID"]; + lastName?: Maybe; + phoneNumber?: Maybe; }; export type UpdateCartGuestPayload = { - __typename?: 'UpdateCartGuestPayload'; + __typename?: "UpdateCartGuestPayload"; cart: Cart; guest: CartGuest; }; @@ -2448,32 +2405,32 @@ export type UpdateCartGuestPayload = { export type UpdateCartInput = { advanceGratuity?: Maybe; clientInformation?: Maybe; - clientMessage?: Maybe; - discountCode?: Maybe; - id: Scalars['ID']; + clientMessage?: Maybe; + discountCode?: Maybe; + id: Scalars["ID"]; /** * Referral source for the appointments booked in the cart. * * This values is mapped to the appointments' 'referral_source' custom * field values after checkout. */ - referralSource?: Maybe; + referralSource?: Maybe; }; export type UpdateCartPayload = { - __typename?: 'UpdateCartPayload'; + __typename?: "UpdateCartPayload"; cart: Cart; }; export type UpdateCartSelectedBookableItemInput = { /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Optional discount code applied to the item. Invalid discount codes are * ignored without an error, check `discountCode` on the selected item to see * if the code was valid. */ - itemDiscountCode?: Maybe; + itemDiscountCode?: Maybe; /** * Optional ID that identifies the guest this item is booked for. A null * value indicates the cart owner, or current client. @@ -2481,115 +2438,135 @@ export type UpdateCartSelectedBookableItemInput = { * When finding available times for bookable items, it's assumed that two * items having different guests can be booked simultaneously. */ - itemGuestId?: Maybe; + itemGuestId?: Maybe; /** ID of the selected bookable item. */ - itemId: Scalars['ID']; + itemId: Scalars["ID"]; /** * Optional IDs of selected bookable item options. Note that the selections * must conform to the option group requirements, e.g. limits on the number * of options. Otherwise an error is returned. */ - itemOptionIds?: Maybe>; + itemOptionIds?: Maybe>; /** Optional ID of the selected bookable item staff variant. */ - itemStaffVariantId?: Maybe; + itemStaffVariantId?: Maybe; }; export type UpdateCartSelectedBookableItemPayload = { - __typename?: 'UpdateCartSelectedBookableItemPayload'; + __typename?: "UpdateCartSelectedBookableItemPayload"; cart: Cart; }; export type UpdateCartSelectedGiftCardItemInput = { /** ID of a valid CartItemGiftCardDesign */ - giftCardDesignId?: Maybe; + giftCardDesignId?: Maybe; /** ID of the cart or token. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** ID of the CartGiftCardItem. */ - itemId: Scalars['ID']; + itemId: Scalars["ID"]; /** * Price applied to the gift card item. See cartAvailableGiftCardItem.minPrice * and maxPrice for limits */ - itemPrice?: Maybe; + itemPrice?: Maybe; }; export type UpdateCartSelectedGiftCardItemPayload = { - __typename?: 'UpdateCartSelectedGiftCardItemPayload'; + __typename?: "UpdateCartSelectedGiftCardItemPayload"; cart: Cart; }; export type UpdateCartSelectedPurchasableItemInput = { /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Optional discount code applied to the item. Invalid discount codes are * ignored without an error, check `discountCode` on the selected item to see * if the code was valid. */ - itemDiscountCode?: Maybe; + itemDiscountCode?: Maybe; /** ID of the selected purchasable item. */ - itemId: Scalars['ID']; + itemId: Scalars["ID"]; }; export type UpdateCartSelectedPurchasableItemPayload = { - __typename?: 'UpdateCartSelectedPurchasableItemPayload'; + __typename?: "UpdateCartSelectedPurchasableItemPayload"; cart: Cart; }; export type UpdateClientInput = { - dob?: Maybe; - email?: Maybe; - firstName?: Maybe; - lastName?: Maybe; - mobilePhone?: Maybe; + dob?: Maybe; + email?: Maybe; + firstName?: Maybe; + lastName?: Maybe; + mobilePhone?: Maybe; }; export type UpdateClientPayload = { - __typename?: 'UpdateClientPayload'; + __typename?: "UpdateClientPayload"; client?: Maybe; }; - export type SendClientAuthorizationCodeViaSmsMutationVariables = Exact<{ input: SendClientAuthorizationCodeViaSmsInput; }>; - -export type SendClientAuthorizationCodeViaSmsMutation = ( - { __typename?: 'RootMutationType' } - & { sendClientAuthorizationCodeViaSms?: Maybe<( - { __typename?: 'SendClientAuthorizationCodeViaSmsPayload' } - & Pick - )> } -); - +export type SendClientAuthorizationCodeViaSmsMutation = { + __typename?: "RootMutationType"; +} & { + sendClientAuthorizationCodeViaSms?: Maybe< + { __typename?: "SendClientAuthorizationCodeViaSmsPayload" } & Pick< + SendClientAuthorizationCodeViaSmsPayload, + "clientAuthorizationCodeId" + > + >; +}; export const SendClientAuthorizationCodeViaSms = gql` - mutation SendClientAuthorizationCodeViaSms($input: SendClientAuthorizationCodeViaSmsInput!) { - sendClientAuthorizationCodeViaSms(input: $input) { - clientAuthorizationCodeId + mutation SendClientAuthorizationCodeViaSms( + $input: SendClientAuthorizationCodeViaSmsInput! + ) { + sendClientAuthorizationCodeViaSms(input: $input) { + clientAuthorizationCodeId + } } -} - `; +`; export const SendClientAuthorizationCodeViaSmsDocument = gql` - mutation SendClientAuthorizationCodeViaSms($input: SendClientAuthorizationCodeViaSmsInput!) { - sendClientAuthorizationCodeViaSms(input: $input) { - clientAuthorizationCodeId + mutation SendClientAuthorizationCodeViaSms( + $input: SendClientAuthorizationCodeViaSmsInput! + ) { + sendClientAuthorizationCodeViaSms(input: $input) { + clientAuthorizationCodeId + } } -} - `; - -export type SdkFunctionWrapper = (action: (requestHeaders?:Record) => Promise, operationName: string) => Promise; +`; +export type SdkFunctionWrapper = ( + action: (requestHeaders?: Record) => Promise, + operationName: string +) => Promise; const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action(); -export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { +export function getSdk( + client: GraphQLClient, + withWrapper: SdkFunctionWrapper = defaultWrapper +) { return { - SendClientAuthorizationCodeViaSms(variables: SendClientAuthorizationCodeViaSmsMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { - return withWrapper((wrappedRequestHeaders) => client.request(SendClientAuthorizationCodeViaSmsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'SendClientAuthorizationCodeViaSms'); + SendClientAuthorizationCodeViaSms( + variables: SendClientAuthorizationCodeViaSmsMutationVariables, + requestHeaders?: Dom.RequestInit["headers"] + ): Promise { + return withWrapper( + wrappedRequestHeaders => + client.request( + SendClientAuthorizationCodeViaSmsDocument, + variables, + { ...requestHeaders, ...wrappedRequestHeaders } + ), + "SendClientAuthorizationCodeViaSms" + ); } }; } -export type Sdk = ReturnType; \ No newline at end of file +export type Sdk = ReturnType; diff --git a/src/graph.ts b/src/graph.ts index d547429..5fcc6f9 100644 --- a/src/graph.ts +++ b/src/graph.ts @@ -1,10 +1,16 @@ -import gql from 'graphql-tag'; -import { GraphQLClient } from 'graphql-request'; -import * as Dom from 'graphql-request/dist/types.dom'; -export type Maybe = T | null; -export type Exact = { [K in keyof T]: T[K] }; -export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; -export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +import gql from "graphql-tag"; +import { GraphQLClient } from "graphql-request"; +import * as Dom from "graphql-request/dist/types.dom"; +export type Maybe = T | undefined; +export type Exact = { + [K in keyof T]: T[K]; +}; +export type MakeOptional = Omit & { + [SubKey in K]?: Maybe; +}; +export type MakeMaybe = Omit & { + [SubKey in K]: Maybe; +}; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; @@ -99,43 +105,43 @@ export type Scalars = { export type AddCartCardPaymentMethodInput = { /** ID of the cart */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Whether to automatically select this credit card as the payment method * for the cart, false by default. */ - select?: Maybe; + select?: Maybe; /** Credit card token obtained from the Credit Card Tokenization endpoint. */ - token: Scalars['ID']; + token: Scalars["ID"]; }; export type AddCartCardPaymentMethodPayload = { - __typename?: 'AddCartCardPaymentMethodPayload'; + __typename?: "AddCartCardPaymentMethodPayload"; cart: Cart; }; export type AddCartOfferInput = { /** ID of the cart */ - id: Scalars['ID']; + id: Scalars["ID"]; /** The offer code identifier */ - offerCode: Scalars['String']; + offerCode: Scalars["String"]; }; export type AddCartOfferPayload = { - __typename?: 'AddCartOfferPayload'; + __typename?: "AddCartOfferPayload"; cart: Cart; offer: CartOffer; }; export type AddCartSelectedBookableItemInput = { /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Optional discount code applied to the item. Invalid discount codes are * ignored without an error, check `discountCode` on the selected item to see * if the code was valid. */ - itemDiscountCode?: Maybe; + itemDiscountCode?: Maybe; /** * Optional ID that identifies the guest this item is booked for. A null * value indicates the cart owner, or current client. @@ -143,84 +149,84 @@ export type AddCartSelectedBookableItemInput = { * When finding available times for bookable items, it's assumed that two * items having different guests can be booked simultaneously. */ - itemGuestId?: Maybe; + itemGuestId?: Maybe; /** ID of the bookable item. */ - itemId: Scalars['ID']; + itemId: Scalars["ID"]; /** * Optional IDs of selected bookable item options. Note that the selections * must conform to the option group requirements, e.g. limits on the number * of options. Otherwise an error is returned. */ - itemOptionIds?: Maybe>; + itemOptionIds?: Maybe>; /** Optional ID of the selected bookable item staff variant. */ - itemStaffVariantId?: Maybe; + itemStaffVariantId?: Maybe; }; export type AddCartSelectedBookableItemPayload = { - __typename?: 'AddCartSelectedBookableItemPayload'; + __typename?: "AddCartSelectedBookableItemPayload"; cart: Cart; }; export type AddCartSelectedGiftCardItemInput = { /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** ID of the gift card item. */ - itemId: Scalars['ID']; + itemId: Scalars["ID"]; /** * Price applied to the gift card item. See cartAvailableGiftCardItem.minPrice * and maxPrice for limits */ - itemPrice: Scalars['Money']; + itemPrice: Scalars["Money"]; }; export type AddCartSelectedGiftCardItemPayload = { - __typename?: 'AddCartSelectedGiftCardItemPayload'; + __typename?: "AddCartSelectedGiftCardItemPayload"; cart: Cart; }; export type AddCartSelectedPurchasableItemInput = { /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Optional discount code applied to the item. Invalid discount codes are * ignored without an error, check `discountCode` on the selected item to see * if the code was valid. */ - itemDiscountCode?: Maybe; + itemDiscountCode?: Maybe; /** ID of the purchasable item. */ - itemId: Scalars['ID']; + itemId: Scalars["ID"]; }; export type AddCartSelectedPurchasableItemPayload = { - __typename?: 'AddCartSelectedPurchasableItemPayload'; + __typename?: "AddCartSelectedPurchasableItemPayload"; cart: Cart; }; export type Address = { - __typename?: 'Address'; - city?: Maybe; - country?: Maybe; - line1?: Maybe; - line2?: Maybe; - province?: Maybe; - state?: Maybe; - zip?: Maybe; + __typename?: "Address"; + city?: Maybe; + country?: Maybe; + line1?: Maybe; + line2?: Maybe; + province?: Maybe; + state?: Maybe; + zip?: Maybe; }; export type AddressInput = { - city?: Maybe; - country?: Maybe; - line1?: Maybe; - line2?: Maybe; - name?: Maybe; - province?: Maybe; - state?: Maybe; - zip?: Maybe; + city?: Maybe; + country?: Maybe; + line1?: Maybe; + line2?: Maybe; + name?: Maybe; + province?: Maybe; + state?: Maybe; + zip?: Maybe; }; /** An Appointment */ export type Appointment = Node & { - __typename?: 'Appointment'; + __typename?: "Appointment"; /** * Service options chosen with this appointment service and their true values, * which may be changed from the option definition default values. @@ -236,21 +242,21 @@ export type Appointment = Node & { /** Links to allow direct addition of the appointment to different calendar platforms */ calendarLinks: CalendarLinks; /** Whether or not the client can cancel this appointment */ - cancellable: Scalars['Boolean']; + cancellable: Scalars["Boolean"]; /** Information about the cancellation, if present */ cancellation?: Maybe; /** Boolean signifying if the appointment is cancelled or not */ - cancelled: Scalars['Boolean']; + cancelled: Scalars["Boolean"]; /** The client of the appointment */ client: Client; /** The duration of the appointment for the client */ - clientDuration: Scalars['Int']; + clientDuration: Scalars["Int"]; /** The id of the client of the appointment. */ - clientId: Scalars['ID']; + clientId: Scalars["ID"]; /** Whether or not the client can confirm this appointment at this time */ - confirmable: Scalars['Boolean']; + confirmable: Scalars["Boolean"]; /** When the appointment was created (in Etc/UTC) */ - createdAt: Scalars['DateTime']; + createdAt: Scalars["DateTime"]; /** A collection of approved payment methods for the appointment. */ creditCards?: Maybe>; /** Forms added to this appointment */ @@ -259,191 +265,190 @@ export type Appointment = Node & { * The duration of the appointment * @deprecated Use `clientDuration` instead. */ - duration: Scalars['Int']; + duration: Scalars["Int"]; /** End time for the appointment */ - endAt: Scalars['DateTime']; + endAt: Scalars["DateTime"]; /** The ID of an object */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Whether or not the appointment is a group appointment */ - isGroup: Scalars['Boolean']; + isGroup: Scalars["Boolean"]; /** Whether or not the appointment is recurring */ - isRecurring: Scalars['Boolean']; + isRecurring: Scalars["Boolean"]; /** The Location where this appointment was booked. */ location: Location; /** The Id of the Location where this appointment was booked. */ - locationId: Scalars['ID']; + locationId: Scalars["ID"]; /** Non reschedulable reason for this appointment will return null if it's reschedulable */ nonReschedulableReason?: Maybe; /** Notes provided by the client during booking */ - notes?: Maybe; + notes?: Maybe; /** Custom forms templates which should be filled out */ pendingFormTemplates: Array; /** Whether or not the client can reschedule this appointment */ - reschedulable: Scalars['Boolean']; + reschedulable: Scalars["Boolean"]; /** Start time for the appointment */ - startAt: Scalars['DateTime']; + startAt: Scalars["DateTime"]; /** The state of the appointment. */ state: AppointmentState; }; - /** An Appointment */ export type AppointmentPendingFormTemplatesArgs = { format?: Maybe; }; export type AppointmentAddTagsInput = { - cartId: Scalars['ID']; - id: Scalars['ID']; - tagIds: Array; + cartId: Scalars["ID"]; + id: Scalars["ID"]; + tagIds: Array; }; export type AppointmentAddTagsPayload = { - __typename?: 'AppointmentAddTagsPayload'; - success: Scalars['Boolean']; + __typename?: "AppointmentAddTagsPayload"; + success: Scalars["Boolean"]; }; export type AppointmentCancellation = { - __typename?: 'AppointmentCancellation'; + __typename?: "AppointmentCancellation"; /** Datetime the appointment was cancelled in UTC. */ - cancelledAt: Scalars['DateTime']; - notes?: Maybe; + cancelledAt: Scalars["DateTime"]; + notes?: Maybe; reason: AppointmentCancellationReason; }; export enum AppointmentCancellationReason { - ClientCancel = 'CLIENT_CANCEL', - ClientLateCancel = 'CLIENT_LATE_CANCEL', - Merged = 'MERGED', - Mistake = 'MISTAKE', - NoShow = 'NO_SHOW', - StaffCancel = 'STAFF_CANCEL', - Voided = 'VOIDED' + ClientCancel = "CLIENT_CANCEL", + ClientLateCancel = "CLIENT_LATE_CANCEL", + Merged = "MERGED", + Mistake = "MISTAKE", + NoShow = "NO_SHOW", + StaffCancel = "STAFF_CANCEL", + Voided = "VOIDED" } export type AppointmentConnection = { - __typename?: 'AppointmentConnection'; + __typename?: "AppointmentConnection"; edges?: Maybe>>; pageInfo: PageInfo; }; export type AppointmentEdge = { - __typename?: 'AppointmentEdge'; - cursor?: Maybe; + __typename?: "AppointmentEdge"; + cursor?: Maybe; node?: Maybe; }; export enum AppointmentNonReschedulableReason { - CancelledAppointment = 'CANCELLED_APPOINTMENT', - GroupAppointment = 'GROUP_APPOINTMENT', - OnlineBookingNotAllowed = 'ONLINE_BOOKING_NOT_ALLOWED', - OutsideCancellationWindow = 'OUTSIDE_CANCELLATION_WINDOW', - ServiceNotBookable = 'SERVICE_NOT_BOOKABLE' + CancelledAppointment = "CANCELLED_APPOINTMENT", + GroupAppointment = "GROUP_APPOINTMENT", + OnlineBookingNotAllowed = "ONLINE_BOOKING_NOT_ALLOWED", + OutsideCancellationWindow = "OUTSIDE_CANCELLATION_WINDOW", + ServiceNotBookable = "SERVICE_NOT_BOOKABLE" } export type AppointmentRescheduleAvailableDatesInput = { /** The ID of the appointment that needs to be rescheduled. */ - appointmentId: Scalars['ID']; + appointmentId: Scalars["ID"]; /** The lower range (inclusive) of dates to search for appointment availability. */ - searchRangeLower: Scalars['Date']; + searchRangeLower: Scalars["Date"]; /** The upper range (inclusive) of dates to search for appointment availability. */ - searchRangeUpper: Scalars['Date']; + searchRangeUpper: Scalars["Date"]; /** * Optional time zone the matches should be converted to, e.g. the client's * time zone. The search range dates are also interpreted using this. When * null, the location's time zone is used. */ - tz?: Maybe; + tz?: Maybe; }; export type AppointmentRescheduleAvailableDatesPayload = { - __typename?: 'AppointmentRescheduleAvailableDatesPayload'; + __typename?: "AppointmentRescheduleAvailableDatesPayload"; availableDates: Array; }; export type AppointmentRescheduleAvailableTimesInput = { /** The ID of the appointment that needs to be rescheduled. */ - appointmentId: Scalars['ID']; + appointmentId: Scalars["ID"]; /** The date that should be searched for available times. */ - date: Scalars['Date']; + date: Scalars["Date"]; /** * Optional time zone the matches should be converted to, e.g. the client's * time zone. When null, the location's time zone is used. */ - tz?: Maybe; + tz?: Maybe; }; export type AppointmentRescheduleAvailableTimesPayload = { - __typename?: 'AppointmentRescheduleAvailableTimesPayload'; + __typename?: "AppointmentRescheduleAvailableTimesPayload"; availableTimes: Array; }; export type AppointmentRescheduleInput = { /** The ID of the appointment that needs to be rescheduled. */ - appointmentId: Scalars['ID']; + appointmentId: Scalars["ID"]; /** * The encoded data representing an available appointment slot (can be computed * using the appointmentRescheduleAvailableTimes mutation). */ - bookableTimeId: Scalars['ID']; + bookableTimeId: Scalars["ID"]; /** * Creates a notification for the dashboard users to let them know that the appointment has * been self-rescheduled by the client. */ - sendNotification: Scalars['Boolean']; + sendNotification: Scalars["Boolean"]; }; export type AppointmentReschedulePayload = { - __typename?: 'AppointmentReschedulePayload'; + __typename?: "AppointmentReschedulePayload"; appointment: Appointment; }; /** An AppointmentService */ export type AppointmentService = { - __typename?: 'AppointmentService'; + __typename?: "AppointmentService"; /** Duration for the entire service (including add-ons) */ - duration: Scalars['Int']; + duration: Scalars["Int"]; /** The ISO time at which the appointment service is completely finished. */ - endAt: Scalars['DateTime']; + endAt: Scalars["DateTime"]; /** Price of the service, before any discounts or taxes are applied. */ - price: Scalars['Money']; + price: Scalars["Money"]; /** The service. */ service: Service; /** The id of the service. This may be null for time blockers. */ - serviceId: Scalars['ID']; + serviceId: Scalars["ID"]; /** The staff performing this service. */ staff: Staff; /** The ID of the staff member associated with this service */ - staffId: Scalars['ID']; + staffId: Scalars["ID"]; /** A boolean indicating whether the staff was specifically requested by the client. */ - staffRequested: Scalars['Boolean']; + staffRequested: Scalars["Boolean"]; /** The ISO time at which the appointment service begins */ - startAt: Scalars['DateTime']; + startAt: Scalars["DateTime"]; /** Length of time (in minutes) from the start of the appointment until this service begins. */ - startTimeOffset: Scalars['Int']; + startTimeOffset: Scalars["Int"]; /** The total duration (in minutes) of this service */ - totalDuration: Scalars['Int']; + totalDuration: Scalars["Int"]; }; /** An AppointmentServiceOption */ export type AppointmentServiceOption = Node & { - __typename?: 'AppointmentServiceOption'; + __typename?: "AppointmentServiceOption"; /** ID of the AppointmentService that this object relates to. */ - appointmentServiceId: Scalars['ID']; + appointmentServiceId: Scalars["ID"]; /** Minutes added to duration when selected. */ - durationDelta: Scalars['Int']; + durationDelta: Scalars["Int"]; /** Minutes added to finish when selected. */ - finishDurationDelta: Scalars['Int']; + finishDurationDelta: Scalars["Int"]; /** The ID of an object */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Minutes added to the post service client time. */ - postClientDurationDelta: Scalars['Int']; + postClientDurationDelta: Scalars["Int"]; /** Minutes added to the post service staff time. */ - postStaffDurationDelta: Scalars['Int']; + postStaffDurationDelta: Scalars["Int"]; /** Amount added to price when selected. */ - priceDelta: Scalars['Int']; + priceDelta: Scalars["Int"]; /** ID of the ServiceOption that this object relates to. */ - serviceOptionId: Scalars['ID']; + serviceOptionId: Scalars["ID"]; }; export type AppointmentSort = { @@ -452,35 +457,35 @@ export type AppointmentSort = { }; export enum AppointmentSortDirection { - Asc = 'ASC', - Desc = 'DESC' + Asc = "ASC", + Desc = "DESC" } export enum AppointmentSortField { - StartAt = 'START_AT' + StartAt = "START_AT" } export enum AppointmentState { - Active = 'ACTIVE', - Arrived = 'ARRIVED', - Booked = 'BOOKED', - Cancelled = 'CANCELLED', - Confirmed = 'CONFIRMED', - Final = 'FINAL' + Active = "ACTIVE", + Arrived = "ARRIVED", + Booked = "BOOKED", + Cancelled = "CANCELLED", + Confirmed = "CONFIRMED", + Final = "FINAL" } export type AuthMethod = { - __typename?: 'AuthMethod'; + __typename?: "AuthMethod"; /** Auth method id */ - id: Scalars['String']; + id: Scalars["String"]; /** Auth method name */ - label: Scalars['String']; + label: Scalars["String"]; /** Auth method value */ - value: Scalars['String']; + value: Scalars["String"]; }; export type AvailableRescheduleDate = { - __typename?: 'AvailableRescheduleDate'; + __typename?: "AvailableRescheduleDate"; /** * Matched date for the booking. * @@ -488,116 +493,114 @@ export type AvailableRescheduleDate = { * time zone is requested using the `tz` argument. The date uses the requested * time zone, or the location's time zone when `tz` is null. */ - date: Scalars['Date']; + date: Scalars["Date"]; }; export type AvailableRescheduleTime = { - __typename?: 'AvailableRescheduleTime'; - bookableTimeId: Scalars['ID']; + __typename?: "AvailableRescheduleTime"; + bookableTimeId: Scalars["ID"]; /** Matched start time for the booking. */ - startTime: Scalars['DateTime']; + startTime: Scalars["DateTime"]; }; export type BaseBookableItem = { - __typename?: 'BaseBookableItem'; + __typename?: "BaseBookableItem"; /** The ID of the base bookable item */ - itemId: Scalars['ID']; + itemId: Scalars["ID"]; /** Whether the current item has to use the same staff as the base item */ - sameStaffVariantRequired: Scalars['Boolean']; + sameStaffVariantRequired: Scalars["Boolean"]; }; export type BookingQuestionOptionAnswerInput = { - optionId: Scalars['ID']; + optionId: Scalars["ID"]; }; /** The business */ export type Business = Node & { - __typename?: 'Business'; + __typename?: "Business"; /** A setting to let a business decide if a person with multiple client profiles can log in to one of their profiles */ - allowLoginWithMultipleClients?: Maybe; + allowLoginWithMultipleClients?: Maybe; /** The business logo */ - avatar?: Maybe; + avatar?: Maybe; /** An optional URL to use to direct customers to a business's custom booking flow */ - customBookingUrl?: Maybe; + customBookingUrl?: Maybe; /** The ID of an object */ - id: Scalars['ID']; - insertedAt: Scalars['DateTime']; + id: Scalars["ID"]; + insertedAt: Scalars["DateTime"]; /** Locations */ locations?: Maybe; /** Flag for whether or not referral sources are managed by location */ - manageReferralSourcesByLocation?: Maybe; + manageReferralSourcesByLocation?: Maybe; /** Name of the business */ - name: Scalars['String']; + name: Scalars["String"]; onlineGiftCardSettings: OnlineGiftCardSettings; /** The business's phone number. This could be an empty string. */ - phoneNumber: Scalars['String']; + phoneNumber: Scalars["String"]; /** Client referral sources */ referralSources: Array; /** The timezone associated with the business */ - tz: Scalars['Tz']; - updatedAt: Scalars['DateTime']; + tz: Scalars["Tz"]; + updatedAt: Scalars["DateTime"]; /** The business' website. This could be an empty string. */ - website: Scalars['String']; + website: Scalars["String"]; }; - /** The business */ export type BusinessLocationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; + after?: Maybe; + before?: Maybe; + first?: Maybe; + last?: Maybe; }; - /** The business */ export type BusinessReferralSourcesArgs = { - categoryId?: Maybe; + categoryId?: Maybe; }; export type BusinessGiftCardDesign = { - __typename?: 'BusinessGiftCardDesign'; + __typename?: "BusinessGiftCardDesign"; design: GiftCardDesign; - id: Scalars['ID']; - selected: Scalars['Boolean']; + id: Scalars["ID"]; + selected: Scalars["Boolean"]; }; export type CalendarLinks = { - __typename?: 'CalendarLinks'; + __typename?: "CalendarLinks"; /** A deep link to add the appointment directly to Google Calendar */ - googleCalendar: Scalars['Url']; + googleCalendar: Scalars["Url"]; /** A downloadable ICS file to use for native calendar applications */ - icsDownload: Scalars['Url']; + icsDownload: Scalars["Url"]; /** A deep link to add the appointment directly to Microsoft Office 365 */ - microsoftOffice: Scalars['Url']; + microsoftOffice: Scalars["Url"]; /** A deep link to add the appointment directly to Microsoft Outlook Online */ - microsoftOutlook: Scalars['Url']; + microsoftOutlook: Scalars["Url"]; /** A deep link to add the appointment directly to Yahoo Calendar */ - yahooCalendar: Scalars['Url']; + yahooCalendar: Scalars["Url"]; }; export type CancelAppointmentInput = { - id: Scalars['ID']; - notes?: Maybe; + id: Scalars["ID"]; + notes?: Maybe; }; export type CancelAppointmentPayload = { - __typename?: 'CancelAppointmentPayload'; + __typename?: "CancelAppointmentPayload"; appointment: Appointment; }; export enum CardBrand { - Amex = 'AMEX', - DinersClub = 'DINERS_CLUB', - Discover = 'DISCOVER', - Jcb = 'JCB', - Mastercard = 'MASTERCARD', - Visa = 'VISA' + Amex = "AMEX", + DinersClub = "DINERS_CLUB", + Discover = "DISCOVER", + Jcb = "JCB", + Mastercard = "MASTERCARD", + Visa = "VISA" } /** Represents a cart flow used for booking or purchasing things. */ export type Cart = Node & { - __typename?: 'Cart'; + __typename?: "Cart"; /** Optional gratuity defined in advance for bookable items. */ advanceGratuity?: Maybe; /** @@ -636,18 +639,18 @@ export type Cart = Node & { */ clientInformation?: Maybe; /** Optional message from the client to the business. */ - clientMessage?: Maybe; + clientMessage?: Maybe; /** * Timestamp of when the cart was completed. * * This field cannot be edited and once completed cannot be changed. */ - completedAt?: Maybe; + completedAt?: Maybe; /** * When the cart has reserved bookable items, the end time of the latest item. * This value is `null` when there are no reservations. */ - endTime?: Maybe; + endTime?: Maybe; /** Current validation errors. */ errors: Array; /** @@ -662,15 +665,15 @@ export type Cart = Node & { * and this timestamp will be in the past. To renew the reservations, call the * `reserveCartBookableItems` mutation again. */ - expiresAt?: Maybe; + expiresAt?: Maybe; /** Features available to the cart. */ features: CartFeatures; /** A list of guests added to the cart */ guests: Array; /** The ID of an object */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Timestamp when the cart was created. */ - insertedAt: Scalars['DateTime']; + insertedAt: Scalars["DateTime"]; /** Location associated with the cart */ location?: Maybe; /** @@ -694,96 +697,94 @@ export type Cart = Node & { * When the cart has reserved bookable items, the starting time of the earliest * item. This value is `null` when there are no reservations. */ - startTime?: Maybe; + startTime?: Maybe; /** * Selected starting time ID for the item, corresponds to the ID that was used * to reserve the times. This value is `null` when there are no reservations. */ - startTimeId?: Maybe; + startTimeId?: Maybe; /** Summary of the cart, including e.g. line item totals. */ summary: CartSummary; /** Timestamp when the cart was last updated. */ - updatedAt: Scalars['DateTime']; + updatedAt: Scalars["DateTime"]; }; - /** Represents a cart flow used for booking or purchasing things. */ export type CartAvailableItemArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - /** Represents a cart flow used for booking or purchasing things. */ export type CartSelectedItemArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; export type CartAddToWaitlistInput = { /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** The preferred lower bound date and time of the bookable items. */ - preferredTimeLower: Scalars['NaiveDateTime']; + preferredTimeLower: Scalars["NaiveDateTime"]; /** The preferred upper bound date and time of the bookable items. */ - preferredTimeUpper: Scalars['NaiveDateTime']; + preferredTimeUpper: Scalars["NaiveDateTime"]; /** * Optional time zone the preferred times should be converted from, e.g. the client's * time zone. If a timezone other than the default location's timezone was used when * fetching bookable times, then that same timezone should be supplied in this mutation. */ - tz?: Maybe; + tz?: Maybe; }; export type CartAddToWaitlistPayload = { - __typename?: 'CartAddToWaitlistPayload'; + __typename?: "CartAddToWaitlistPayload"; cart: Cart; }; /** Gratuity set in advance for bookable items. */ export type CartAdvanceGratuity = { - __typename?: 'CartAdvanceGratuity'; + __typename?: "CartAdvanceGratuity"; /** Fixed gratuity amount, has to be set if `percentage` is not set. */ - fixed?: Maybe; + fixed?: Maybe; /** Percentage gratuity amount, has to be set if `fixed` is not set. */ - percentage?: Maybe; + percentage?: Maybe; }; /** See `CartAdvanceGratuity`. */ export type CartAdvanceGratuityInput = { - fixed?: Maybe; - percentage?: Maybe; + fixed?: Maybe; + percentage?: Maybe; }; export type CartAppointment = { - __typename?: 'CartAppointment'; - appointmentId: Scalars['ID']; - clientId: Scalars['ID']; + __typename?: "CartAppointment"; + appointmentId: Scalars["ID"]; + clientId: Scalars["ID"]; /** Whether an appointment belongs to the cart owner. */ - forCartOwner: Scalars['Boolean']; + forCartOwner: Scalars["Boolean"]; }; /** Item that can be booked through `addCartBookableItem`. */ export type CartAvailableBookableItem = CartAvailableItem & { - __typename?: 'CartAvailableBookableItem'; + __typename?: "CartAvailableBookableItem"; /** Refer to the super type. */ - description?: Maybe; + description?: Maybe; /** Refer to the super type. */ - disabled: Scalars['Boolean']; + disabled: Scalars["Boolean"]; /** Refer to the super type. */ - disabledDescription?: Maybe; + disabledDescription?: Maybe; /** Refer to the super type. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Displayed client duration in minutes. * @deprecated Use `listDurationRange` instead. */ - listDuration: Scalars['Int']; + listDuration: Scalars["Int"]; /** Refer to the super type. */ listDurationRange: CartDurationRange; /** * Refer to the super type. * @deprecated Use `listPriceRange` instead. */ - listPrice: Scalars['Money']; + listPrice: Scalars["Money"]; /** Refer to the super type. */ listPriceRange: CartPriceRange; /** @@ -801,7 +802,7 @@ export type CartAvailableBookableItem = CartAvailableItem & { */ locationVariants: Array; /** Refer to the super type. */ - name: Scalars['String']; + name: Scalars["String"]; /** * Groups of available options for modifying the booked service. These can be * used to modify the booked item and may affect pricing and timing. @@ -820,41 +821,40 @@ export type CartAvailableBookableItem = CartAvailableItem & { * Whether duration varies per staff variant. * @deprecated Use `listDurationRange` instead. */ - variableDuration: Scalars['Boolean']; + variableDuration: Scalars["Boolean"]; /** * Whether price varies per staff variant. * @deprecated Use `listPriceRange` instead. */ - variablePrice: Scalars['Boolean']; + variablePrice: Scalars["Boolean"]; }; - /** Item that can be booked through `addCartBookableItem`. */ export type CartAvailableBookableItemLocationVariantsArgs = { - staffId?: Maybe; + staffId?: Maybe; }; /** Location variant of a bookable item */ export type CartAvailableBookableItemLocationVariant = { - __typename?: 'CartAvailableBookableItemLocationVariant'; + __typename?: "CartAvailableBookableItemLocationVariant"; location: Location; }; /** Option of a bookable item that can be selected. */ export type CartAvailableBookableItemOption = { - __typename?: 'CartAvailableBookableItemOption'; + __typename?: "CartAvailableBookableItemOption"; /** Short optional description. */ - description?: Maybe; + description?: Maybe; /** Minutes added to duration when selected. */ - durationDelta: Scalars['Int']; + durationDelta: Scalars["Int"]; /** Group ID of the option. */ - groupId: Scalars['ID']; + groupId: Scalars["ID"]; /** ID of the option. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Short human-readable name. */ - name: Scalars['String']; + name: Scalars["String"]; /** Amount added to price when selected. */ - priceDelta: Scalars['Money']; + priceDelta: Scalars["Money"]; }; /** @@ -865,37 +865,37 @@ export type CartAvailableBookableItemOption = { * those requirements. */ export type CartAvailableBookableItemOptionGroup = { - __typename?: 'CartAvailableBookableItemOptionGroup'; + __typename?: "CartAvailableBookableItemOptionGroup"; /** Short optional description. */ - description?: Maybe; + description?: Maybe; /** ID of the option group. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Optional maximum number of options that can be selected. */ - maxLimit?: Maybe; + maxLimit?: Maybe; /** Optional minimum number of options that must be selected. */ - minLimit?: Maybe; + minLimit?: Maybe; /** Short human-readable name. */ - name: Scalars['String']; + name: Scalars["String"]; /** List of selectable options. */ options: Array; }; /** Staff variant of a bookable item. */ export type CartAvailableBookableItemStaffVariant = { - __typename?: 'CartAvailableBookableItemStaffVariant'; + __typename?: "CartAvailableBookableItemStaffVariant"; /** Duration of the variant in minutes. */ - duration: Scalars['Int']; + duration: Scalars["Int"]; /** ID of the variant. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Price of the variant before discounts and taxes. */ - price: Scalars['Money']; + price: Scalars["Money"]; /** Staff member booked. */ staff: Staff; }; /** Category of items that can be checked out. */ export type CartAvailableCategory = Node & { - __typename?: 'CartAvailableCategory'; + __typename?: "CartAvailableCategory"; /** * Items available to be checked out. * @@ -906,62 +906,62 @@ export type CartAvailableCategory = Node & { */ availableItems: Array; /** Short optional description. */ - description?: Maybe; + description?: Maybe; /** Whether the category should appear as disabled. */ - disabled: Scalars['Boolean']; + disabled: Scalars["Boolean"]; /** Message detailing why `disabled` is set. Might not be available. */ - disabledDescription?: Maybe; + disabledDescription?: Maybe; /** The ID of an object */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Short human-readable name. */ - name: Scalars['String']; + name: Scalars["String"]; }; /** Gift card that can be purchased through `addCartSelectedGiftCardItem`. */ export type CartAvailableGiftCardItem = CartAvailableItem & { - __typename?: 'CartAvailableGiftCardItem'; + __typename?: "CartAvailableGiftCardItem"; /** When true the user may enter a custom amount between the min and max price range. */ - allowCustomAmounts: Scalars['Boolean']; + allowCustomAmounts: Scalars["Boolean"]; /** Refer to the super type. */ - description?: Maybe; + description?: Maybe; /** Refer to the super type. */ - disabled: Scalars['Boolean']; + disabled: Scalars["Boolean"]; /** Refer to the super type. */ - disabledDescription?: Maybe; + disabledDescription?: Maybe; /** The maximum available price for which to purchase the gift card. */ - giftCardMax: Scalars['Money']; + giftCardMax: Scalars["Money"]; /** The minimum available price for which to purchase the gift card. */ - giftCardMin: Scalars['Money']; + giftCardMin: Scalars["Money"]; /** Refer to the super type. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Refer to the super type. * @deprecated Use `listPriceRange` instead. */ - listPrice: Scalars['Money']; + listPrice: Scalars["Money"]; /** Refer to the super type. */ listPriceRange: CartPriceRange; /** Refer to the super type. */ - name: Scalars['String']; + name: Scalars["String"]; /** The available preset prices for which to purchase the gift card. */ - pricePresets: Array; + pricePresets: Array; }; /** Abstract available item that can be checked out. */ export type CartAvailableItem = { /** Short optional description. */ - description?: Maybe; + description?: Maybe; /** Whether the item should appear disabled or hidden. */ - disabled: Scalars['Boolean']; + disabled: Scalars["Boolean"]; /** Message detailing why `disabled` is set. Might not be available. */ - disabledDescription?: Maybe; + disabledDescription?: Maybe; /** ID of the item. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Displayed price of the item before tax. * @deprecated Use `listPriceRange` instead. */ - listPrice: Scalars['Money']; + listPrice: Scalars["Money"]; /** * Displayed price range of the item before tax. * @@ -971,34 +971,34 @@ export type CartAvailableItem = { */ listPriceRange: CartPriceRange; /** Short human-readable name. */ - name: Scalars['String']; + name: Scalars["String"]; }; /** Item that can be purchased through `addCartPurchasableItem`. */ export type CartAvailablePurchasableItem = CartAvailableItem & { - __typename?: 'CartAvailablePurchasableItem'; + __typename?: "CartAvailablePurchasableItem"; /** Refer to the super type. */ - description?: Maybe; + description?: Maybe; /** Refer to the super type. */ - disabled: Scalars['Boolean']; + disabled: Scalars["Boolean"]; /** Refer to the super type. */ - disabledDescription?: Maybe; + disabledDescription?: Maybe; /** Refer to the super type. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Refer to the super type. * @deprecated Use `listPriceRange` instead. */ - listPrice: Scalars['Money']; + listPrice: Scalars["Money"]; /** Refer to the super type. */ listPriceRange: CartPriceRange; /** Refer to the super type. */ - name: Scalars['String']; + name: Scalars["String"]; }; /** Available starting date for bookable items in a cart. */ export type CartBookableDate = { - __typename?: 'CartBookableDate'; + __typename?: "CartBookableDate"; /** * Available date for the bookable items. * @@ -1006,12 +1006,12 @@ export type CartBookableDate = { * time zone is requested using the `tz` argument. The date uses the requested * time zone, or the location's time zone when `tz` is null. */ - date: Scalars['Date']; + date: Scalars["Date"]; }; /** An item that can be booked at a certain time. */ export type CartBookableItem = CartItem & { - __typename?: 'CartBookableItem'; + __typename?: "CartBookableItem"; /** * Any add-on services available for the selected service. * @@ -1024,12 +1024,12 @@ export type CartBookableItem = CartItem & { /** The information about a base bookable item for a add-on item */ baseBookableItem?: Maybe; /** Refer to the super type. */ - discountAmount?: Maybe; + discountAmount?: Maybe; /** * Refer to the super type. * @deprecated Use `offers` on the cart instead. */ - discountCode?: Maybe; + discountCode?: Maybe; /** Refer to the super type. */ errors: Array; /** @@ -1045,15 +1045,15 @@ export type CartBookableItem = CartItem & { * * This field is more efficient than `guest` when only the ID is required. */ - guestId?: Maybe; + guestId?: Maybe; /** Refer to the super type. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Refer to the super type. */ item: CartAvailableBookableItem; /** Refer to the super type. */ - lineTotal?: Maybe; + lineTotal?: Maybe; /** Refer to the super type. */ - price?: Maybe; + price?: Maybe; /** Any selected options for the item. */ selectedOptions: Array; /** Refer to the super type. */ @@ -1076,31 +1076,31 @@ export type CartBookableItem = CartItem & { * start time must be reserved again. See the parent cart’s `expiresAt` field * for more information. */ - startTime?: Maybe; + startTime?: Maybe; /** Refer to the super type. */ - taxAmount?: Maybe; + taxAmount?: Maybe; }; /** Available starting time for bookable items in a cart. */ export type CartBookableTime = { - __typename?: 'CartBookableTime'; + __typename?: "CartBookableTime"; /** ID of this particular time. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** @deprecated Do not use. */ - score: Scalars['Float']; + score: Scalars["Float"]; /** Available start time for the earliest bookable item. */ - startTime: Scalars['DateTime']; + startTime: Scalars["DateTime"]; }; export type CartBookingQuestion = { - __typename?: 'CartBookingQuestion'; + __typename?: "CartBookingQuestion"; answer?: Maybe; /** How the input for the booking question should be displayed. */ displayType: CartBookingQuestionDisplayType; /** Validation errors for the question */ - errors?: Maybe>; + errors?: Maybe>; /** Unique ID of the question */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Unique key of the question. Compared to the IDs (which should * always be treated as opaque), this can be be interpreted by the client code. @@ -1111,13 +1111,13 @@ export type CartBookingQuestion = { * currently cannot be set in the UI. Please contact the developer support if * you need to use this field. */ - key: Scalars['String']; + key: Scalars["String"]; /** Booking question displayed label */ - label: Scalars['String']; + label: Scalars["String"]; /** Options for select/multiselect booking questions */ options: Array; /** Whether the answer is required to checkout */ - required: Scalars['Boolean']; + required: Scalars["Boolean"]; /** Indicates the type of entity that the booking question answer is mapped to. */ schema?: Maybe; /** Accepted type for the booking question answer. */ @@ -1127,115 +1127,122 @@ export type CartBookingQuestion = { export type CartBookingQuestionAddAnswerInput = { answer: CartBookingQuestionAnswerInput; /** The ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** The ID of the booking question */ - questionId: Scalars['ID']; + questionId: Scalars["ID"]; }; export type CartBookingQuestionAddAnswerPayload = { - __typename?: 'CartBookingQuestionAddAnswerPayload'; + __typename?: "CartBookingQuestionAddAnswerPayload"; cart: Cart; }; /** Current answer for the booking question. */ -export type CartBookingQuestionAnswer = CartBookingQuestionBooleanAnswer | CartBookingQuestionDatetimeAnswer | CartBookingQuestionFloatAnswer | CartBookingQuestionIntegerAnswer | CartBookingQuestionMultiSelectAnswer | CartBookingQuestionSelectAnswer | CartBookingQuestionTextAnswer; +export type CartBookingQuestionAnswer = + | CartBookingQuestionBooleanAnswer + | CartBookingQuestionDatetimeAnswer + | CartBookingQuestionFloatAnswer + | CartBookingQuestionIntegerAnswer + | CartBookingQuestionMultiSelectAnswer + | CartBookingQuestionSelectAnswer + | CartBookingQuestionTextAnswer; export type CartBookingQuestionAnswerInput = { - booleanValue?: Maybe; - datetimeValue?: Maybe; - floatValue?: Maybe; - integerValue?: Maybe; + booleanValue?: Maybe; + datetimeValue?: Maybe; + floatValue?: Maybe; + integerValue?: Maybe; optionValue?: Maybe; optionValues?: Maybe>; - textValue?: Maybe; + textValue?: Maybe; }; export type CartBookingQuestionBooleanAnswer = { - __typename?: 'CartBookingQuestionBooleanAnswer'; - booleanValue: Scalars['Boolean']; + __typename?: "CartBookingQuestionBooleanAnswer"; + booleanValue: Scalars["Boolean"]; }; export type CartBookingQuestionClearAnswerInput = { /** The ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** The ID of the booking question */ - questionId: Scalars['ID']; + questionId: Scalars["ID"]; }; export type CartBookingQuestionClearAnswerPayload = { - __typename?: 'CartBookingQuestionClearAnswerPayload'; + __typename?: "CartBookingQuestionClearAnswerPayload"; cart: Cart; }; export type CartBookingQuestionDatetimeAnswer = { - __typename?: 'CartBookingQuestionDatetimeAnswer'; - datetimeValue: Scalars['DateTime']; + __typename?: "CartBookingQuestionDatetimeAnswer"; + datetimeValue: Scalars["DateTime"]; }; export enum CartBookingQuestionDisplayType { - Boolean = 'BOOLEAN', - Datetime = 'DATETIME', - Float = 'FLOAT', - Integer = 'INTEGER', - LongText = 'LONG_TEXT', - Multiselect = 'MULTISELECT', - Select = 'SELECT', - ShortText = 'SHORT_TEXT' + Boolean = "BOOLEAN", + Datetime = "DATETIME", + Float = "FLOAT", + Integer = "INTEGER", + LongText = "LONG_TEXT", + Multiselect = "MULTISELECT", + Select = "SELECT", + ShortText = "SHORT_TEXT" } export type CartBookingQuestionFloatAnswer = { - __typename?: 'CartBookingQuestionFloatAnswer'; - floatValue: Scalars['Float']; + __typename?: "CartBookingQuestionFloatAnswer"; + floatValue: Scalars["Float"]; }; export type CartBookingQuestionIntegerAnswer = { - __typename?: 'CartBookingQuestionIntegerAnswer'; - integerValue: Scalars['Int']; + __typename?: "CartBookingQuestionIntegerAnswer"; + integerValue: Scalars["Int"]; }; export type CartBookingQuestionMultiSelectAnswer = { - __typename?: 'CartBookingQuestionMultiSelectAnswer'; + __typename?: "CartBookingQuestionMultiSelectAnswer"; options: Array; }; export type CartBookingQuestionOption = { - __typename?: 'CartBookingQuestionOption'; - id: Scalars['ID']; - label: Scalars['String']; + __typename?: "CartBookingQuestionOption"; + id: Scalars["ID"]; + label: Scalars["String"]; }; export enum CartBookingQuestionSchema { - Appointment = 'APPOINTMENT', - Client = 'CLIENT' + Appointment = "APPOINTMENT", + Client = "CLIENT" } export type CartBookingQuestionSelectAnswer = { - __typename?: 'CartBookingQuestionSelectAnswer'; + __typename?: "CartBookingQuestionSelectAnswer"; option: CartBookingQuestionOption; }; export type CartBookingQuestionTextAnswer = { - __typename?: 'CartBookingQuestionTextAnswer'; - textValue: Scalars['String']; + __typename?: "CartBookingQuestionTextAnswer"; + textValue: Scalars["String"]; }; export enum CartBookingQuestionValueType { - Boolean = 'BOOLEAN', - Datetime = 'DATETIME', - Float = 'FLOAT', - Integer = 'INTEGER', - Multiselect = 'MULTISELECT', - Select = 'SELECT', - Text = 'TEXT' + Boolean = "BOOLEAN", + Datetime = "DATETIME", + Float = "FLOAT", + Integer = "INTEGER", + Multiselect = "MULTISELECT", + Select = "SELECT", + Text = "TEXT" } export type CartClearInput = { /** ID of the cart */ - id: Scalars['ID']; + id: Scalars["ID"]; }; export type CartClearPayload = { - __typename?: 'CartClearPayload'; + __typename?: "CartClearPayload"; cart: Cart; }; @@ -1249,22 +1256,22 @@ export type CartClearPayload = { * multiple times, as long as required information is present before checkout. */ export type CartClientInformation = { - __typename?: 'CartClientInformation'; + __typename?: "CartClientInformation"; /** Optional email address. */ - email?: Maybe; + email?: Maybe; /** Optional external ID of the client, used to integrate with external systems. */ - externalId?: Maybe; + externalId?: Maybe; /** Required first name. */ - firstName?: Maybe; + firstName?: Maybe; /** Optional last name. */ - lastName?: Maybe; + lastName?: Maybe; /** Optional mobile phone number. */ - phoneNumber?: Maybe; + phoneNumber?: Maybe; }; /** See `CartClientInformation`. */ export type CartClientInformationInput = { - email?: Maybe; + email?: Maybe; /** * External ID of the client, used to integrate with external systems. * @@ -1272,32 +1279,32 @@ export type CartClientInformationInput = { * at checkout, if the external ID is not unique for the new client, the value * is ignored. */ - externalId?: Maybe; - firstName?: Maybe; - lastName?: Maybe; - phoneNumber?: Maybe; + externalId?: Maybe; + firstName?: Maybe; + lastName?: Maybe; + phoneNumber?: Maybe; }; /** Displayed duration range of a bookable item. */ export type CartDurationRange = { - __typename?: 'CartDurationRange'; + __typename?: "CartDurationRange"; /** Maximum duration in minutes. */ - max: Scalars['Int']; + max: Scalars["Int"]; /** Minimum duration in minutes. */ - min: Scalars['Int']; + min: Scalars["Int"]; /** Whether the duration is variable, i.e. the minimum and maximum differ. */ - variable: Scalars['Boolean']; + variable: Scalars["Boolean"]; }; /** Cart validation error. */ export type CartError = { - __typename?: 'CartError'; + __typename?: "CartError"; /** Machine-readable code. */ code: CartErrorCode; /** Detailed geek-readable description. */ - description: Scalars['String']; + description: Scalars["String"]; /** Short human-readable message. */ - message: Scalars['String']; + message: Scalars["String"]; }; /** Machine-readable cart validation error code. */ @@ -1309,7 +1316,7 @@ export enum CartErrorCode { * * Make sure that all required booking questions have valid answers. */ - CartBookingQuestionAnswerMissing = 'CART_BOOKING_QUESTION_ANSWER_MISSING', + CartBookingQuestionAnswerMissing = "CART_BOOKING_QUESTION_ANSWER_MISSING", /** * One or more gift card items do not have a valid price. * @@ -1319,7 +1326,7 @@ export enum CartErrorCode { * See cartAvailableGiftCardItem.minPrice and cartAvailableGiftCardItem.maxPrice * for upper and lower bound price limits. */ - CartGiftCardItemPrice = 'CART_GIFT_CARD_ITEM_PRICE', + CartGiftCardItemPrice = "CART_GIFT_CARD_ITEM_PRICE", /** * This cart is not associated with an existing client, therefore separate * client information is required. @@ -1335,7 +1342,7 @@ export enum CartErrorCode { * * Other fields are recommended. */ - CartMissingClientInformation = 'CART_MISSING_CLIENT_INFORMATION', + CartMissingClientInformation = "CART_MISSING_CLIENT_INFORMATION", /** * No cart items have been selected, at least one is required. * @@ -1344,7 +1351,7 @@ export enum CartErrorCode { * Add one or more items to the cart before checking out, empty carts cannot be * checked out. */ - CartMissingItems = 'CART_MISSING_ITEMS', + CartMissingItems = "CART_MISSING_ITEMS", /** * One or more cart items is missing a payment method. * @@ -1354,7 +1361,7 @@ export enum CartErrorCode { * before checking out. These items will each have a separate item-specific * validation error with the same code. */ - CartMissingItemPaymentMethod = 'CART_MISSING_ITEM_PAYMENT_METHOD', + CartMissingItemPaymentMethod = "CART_MISSING_ITEM_PAYMENT_METHOD", /** * One or more bookable items is missing a reserved time. * @@ -1367,7 +1374,7 @@ export enum CartErrorCode { * Note that times are only reserved temporarily and will expire unless the * cart is checked out before the expiration time. */ - CartMissingItemTime = 'CART_MISSING_ITEM_TIME', + CartMissingItemTime = "CART_MISSING_ITEM_TIME", /** * A location has not been selected for a cart. * @@ -1375,74 +1382,74 @@ export enum CartErrorCode { * * Before checking out, select a location for a cart. */ - CartMissingLocation = 'CART_MISSING_LOCATION' + CartMissingLocation = "CART_MISSING_LOCATION" } /** Features available to the cart. */ export type CartFeatures = { - __typename?: 'CartFeatures'; + __typename?: "CartFeatures"; /** * Whether the booking questions feature is enabled. It also enables * the `CART_BOOKING_QUESTION_ANSWER_MISSING` error on the Cart. */ - bookingQuestionsEnabled: Scalars['Boolean']; + bookingQuestionsEnabled: Scalars["Boolean"]; /** Whether gift cards are available to be purchased in this cart. */ - giftCardPurchaseEnabled: Scalars['Boolean']; + giftCardPurchaseEnabled: Scalars["Boolean"]; /** Whether payment info is required to check out services in this cart. */ - paymentInfoRequired: Scalars['Boolean']; + paymentInfoRequired: Scalars["Boolean"]; /** Whether service add-ons are enabled for this cart. */ - serviceAddonsEnabled: Scalars['Boolean']; + serviceAddonsEnabled: Scalars["Boolean"]; }; /** A gift card item that can be purchased. */ export type CartGiftCardItem = CartItem & { - __typename?: 'CartGiftCardItem'; + __typename?: "CartGiftCardItem"; /** Refer to the super type. */ addons: Array; /** Refer to the super type. */ availablePaymentMethods: Array; /** Refer to the super type. */ - discountAmount?: Maybe; + discountAmount?: Maybe; /** * Refer to the super type. * @deprecated Use `offers` on the cart instead. */ - discountCode?: Maybe; + discountCode?: Maybe; /** Send the gift card to a recipient via email. */ emailFulfillment?: Maybe; /** Refer to the super type. */ errors: Array; giftCardDesign?: Maybe; /** Refer to the super type. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Refer to the super type. */ item: CartAvailableGiftCardItem; /** Refer to the super type. */ - lineTotal?: Maybe; + lineTotal?: Maybe; /** Refer to the super type. */ - price?: Maybe; + price?: Maybe; /** Refer to the super type. */ selectedPaymentMethod?: Maybe; /** Refer to the super type. */ - taxAmount?: Maybe; + taxAmount?: Maybe; }; /** A guest that can be associated with a bookable item. */ export type CartGuest = { - __typename?: 'CartGuest'; + __typename?: "CartGuest"; /** Email address, if provided. */ - email?: Maybe; + email?: Maybe; /** First name, if provided. */ - firstName?: Maybe; + firstName?: Maybe; /** ID of the guest. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Name of the guest if provided, otherwise a user-friendly fallback name that * uniquely identifies the guest. */ - label: Scalars['String']; + label: Scalars["String"]; /** Last name, if provided. */ - lastName?: Maybe; + lastName?: Maybe; /** * Positive ordinal number starting at 1. * @@ -1450,9 +1457,9 @@ export type CartGuest = { * Use the `id` field for that instead. Also, don't assume this scheme follows * any predefined ordering. */ - number: Scalars['Int']; + number: Scalars["Int"]; /** Mobile phone, if provided. */ - phoneNumber?: Maybe; + phoneNumber?: Maybe; }; /** Abstract item added using the `addCart...Item` mutations. */ @@ -1462,75 +1469,75 @@ export type CartItem = { /** Payment methods available for this item. */ availablePaymentMethods: Array; /** Total discount amount on the price. Null if location is not set yet. */ - discountAmount?: Maybe; + discountAmount?: Maybe; /** * Valid discount code that was applied, either the cart's code or one that was * applied separately to the item. An invalid code results in a `null` value. * @deprecated Use `offers` on the cart instead. */ - discountCode?: Maybe; + discountCode?: Maybe; /** Current item validation errors. */ errors: Array; /** ID of the item. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Original item details. */ item: CartAvailableItem; /** Total for the item after discounts and taxes. Null if location is not set yet. */ - lineTotal?: Maybe; + lineTotal?: Maybe; /** Price before discounts and taxes. Null if location is not set yet. */ - price?: Maybe; + price?: Maybe; /** Payment method selected for this item. */ selectedPaymentMethod?: Maybe; /** Total tax amount on the discounted price. Null if location is not set yet. */ - taxAmount?: Maybe; + taxAmount?: Maybe; }; /** Cart item card payment method. */ export type CartItemCardPaymentMethod = CartItemPaymentMethod & { - __typename?: 'CartItemCardPaymentMethod'; + __typename?: "CartItemCardPaymentMethod"; /** Brand name of the associated card. */ - cardBrand: Scalars['String']; + cardBrand: Scalars["String"]; /** Expiration month of the associated card. */ - cardExpMonth: Scalars['Int']; + cardExpMonth: Scalars["Int"]; /** Expiration year of the associated card. */ - cardExpYear: Scalars['Int']; + cardExpYear: Scalars["Int"]; /** Holder name of the associated card, might be `null`. */ - cardHolder?: Maybe; + cardHolder?: Maybe; /** Whether the associated card is the default card. */ - cardIsDefault: Scalars['Boolean']; + cardIsDefault: Scalars["Boolean"]; /** Last four digits of the card number. */ - cardLast4: Scalars['String']; + cardLast4: Scalars["String"]; /** Refer to the super type. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Refer to the super type. */ - name: Scalars['String']; + name: Scalars["String"]; }; /** Send the item to a recipient via email. */ export type CartItemEmailFulfillment = { - __typename?: 'CartItemEmailFulfillment'; + __typename?: "CartItemEmailFulfillment"; /** Optionally specify a delivery date for the email. */ - deliveryDate?: Maybe; - id: Scalars['ID']; + deliveryDate?: Maybe; + id: Scalars["ID"]; /** Optionally include a message from the sender to the recipient. */ - messageFromSender?: Maybe; + messageFromSender?: Maybe; /** The email the item should be sent to. */ - recipientEmail: Scalars['Email']; + recipientEmail: Scalars["Email"]; /** The name of the person receiving the item. */ - recipientName: Scalars['String']; + recipientName: Scalars["String"]; /** The name of the person sending the item. */ - senderName: Scalars['String']; + senderName: Scalars["String"]; }; /** Cart item validation error. */ export type CartItemError = { - __typename?: 'CartItemError'; + __typename?: "CartItemError"; /** Machine-readable code. */ code: CartItemErrorCode; /** Detailed geek-readable description. */ - description: Scalars['String']; + description: Scalars["String"]; /** Short human-readable message. */ - message: Scalars['String']; + message: Scalars["String"]; }; /** Machine-readable cart item validation error code. */ @@ -1543,7 +1550,7 @@ export enum CartItemErrorCode { * All items in the cart that require payment must have a payment method set * before checking out. */ - CartMissingItemPaymentMethod = 'CART_MISSING_ITEM_PAYMENT_METHOD', + CartMissingItemPaymentMethod = "CART_MISSING_ITEM_PAYMENT_METHOD", /** * This bookable item is missing a reserved time. * @@ -1553,54 +1560,54 @@ export enum CartItemErrorCode { * out. Note that times are only reserved temporarily and will expire unless * the cart is checked out before the expiration time. */ - CartMissingItemTime = 'CART_MISSING_ITEM_TIME' + CartMissingItemTime = "CART_MISSING_ITEM_TIME" } /** Specified design for a CartItemEmailFulfillment. */ export type CartItemGiftCardDesign = { - __typename?: 'CartItemGiftCardDesign'; - backgroundColor?: Maybe; - foregroundText?: Maybe; - id: Scalars['ID']; - image?: Maybe; + __typename?: "CartItemGiftCardDesign"; + backgroundColor?: Maybe; + foregroundText?: Maybe; + id: Scalars["ID"]; + image?: Maybe; }; /** Cart item payment method. */ export type CartItemPaymentMethod = { /** ID of the method. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Short human-readable name. */ - name: Scalars['String']; + name: Scalars["String"]; }; /** Cart item voucher payment method. */ export type CartItemVoucherPaymentMethod = CartItemPaymentMethod & { - __typename?: 'CartItemVoucherPaymentMethod'; + __typename?: "CartItemVoucherPaymentMethod"; /** Number of vouchers available, always at least one. */ - availableCount: Scalars['Int']; + availableCount: Scalars["Int"]; /** * Available voucher IDs, always at least one. * * This field can be useful to identify specific vouchers when a single voucher * can be applied to multiple services. */ - availableVoucherIds: Array; + availableVoucherIds: Array; /** * Last date when the voucher is valid, or `null` if valid forever. * * Note that when there are multiple vouchers available with different * expiration dates, this is the earliest date when a voucher expires. */ - expiresOn?: Maybe; + expiresOn?: Maybe; /** Refer to the super type. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Refer to the super type. */ - name: Scalars['String']; + name: Scalars["String"]; }; /** Offer added to a cart, see the `offers` field. */ export type CartOffer = { - __typename?: 'CartOffer'; + __typename?: "CartOffer"; /** * Whether this offer is applied to any items currently in the cart. * @@ -1608,213 +1615,212 @@ export type CartOffer = { * used) but there are no items in the current cart that could be affected. * When applicable items are added later, the offer is applied then. */ - applied: Scalars['Boolean']; + applied: Scalars["Boolean"]; /** Case-insensitive, uniquely identifying code. */ - code: Scalars['String']; + code: Scalars["String"]; /** ID of the offer. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Human-readable name. */ - name: Scalars['String']; + name: Scalars["String"]; }; /** Displayed price range of an item, before tax. */ export type CartPriceRange = { - __typename?: 'CartPriceRange'; + __typename?: "CartPriceRange"; /** Maximum price. */ - max: Scalars['Money']; + max: Scalars["Money"]; /** Minimum price. */ - min: Scalars['Money']; + min: Scalars["Money"]; /** Whether the price is variable, i.e. the minimum and maximum differ. */ - variable: Scalars['Boolean']; + variable: Scalars["Boolean"]; }; /** An item that can be purchased. */ export type CartPurchasableItem = CartItem & { - __typename?: 'CartPurchasableItem'; + __typename?: "CartPurchasableItem"; /** Refer to the super type. */ addons: Array; /** Refer to the super type. */ availablePaymentMethods: Array; /** Refer to the super type. */ - discountAmount?: Maybe; + discountAmount?: Maybe; /** * Refer to the super type. * @deprecated Use `offers` on the cart instead. */ - discountCode?: Maybe; + discountCode?: Maybe; /** Refer to the super type. */ errors: Array; /** Refer to the super type. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Refer to the super type. */ item: CartAvailablePurchasableItem; /** Refer to the super type. */ - lineTotal?: Maybe; + lineTotal?: Maybe; /** Refer to the super type. */ - price?: Maybe; + price?: Maybe; /** Refer to the super type. */ selectedPaymentMethod?: Maybe; /** Refer to the super type. */ - taxAmount?: Maybe; + taxAmount?: Maybe; }; export type CartSetLocationInput = { /** ID of the cart */ - id: Scalars['ID']; + id: Scalars["ID"]; /** ID of the location */ - locationId: Scalars['ID']; + locationId: Scalars["ID"]; }; export type CartSetLocationPayload = { - __typename?: 'CartSetLocationPayload'; + __typename?: "CartSetLocationPayload"; /** Updated Cart */ cart: Cart; }; /** Summary of the cart, including e.g. line item totals. */ export type CartSummary = { - __typename?: 'CartSummary'; + __typename?: "CartSummary"; deposit: DepositType; /** Total required deposit amount. */ - depositAmount: Scalars['Money']; + depositAmount: Scalars["Money"]; /** Total discount amount on the subtotal. */ - discountAmount: Scalars['Money']; + discountAmount: Scalars["Money"]; /** Total gratuity amount on the subtotal. */ - gratuityAmount: Scalars['Money']; + gratuityAmount: Scalars["Money"]; /** Whether a payment method is required */ - paymentMethodRequired: Scalars['Boolean']; + paymentMethodRequired: Scalars["Boolean"]; /** Rounding amount on the discounted and taxed subtotal. */ - roundingAmount: Scalars['Money']; + roundingAmount: Scalars["Money"]; /** Subtotal before gratuity, discounts, taxes, and rounding. */ - subtotal: Scalars['Money']; + subtotal: Scalars["Money"]; /** Total tax amount on the discounted subtotal. */ - taxAmount: Scalars['Money']; + taxAmount: Scalars["Money"]; /** Total after gratuity, discounts, taxes, and rounding. */ - total: Scalars['Money']; + total: Scalars["Money"]; }; export type CheckoutCartInput = { /** ID of the cart */ - id: Scalars['ID']; + id: Scalars["ID"]; }; export type CheckoutCartPayload = { - __typename?: 'CheckoutCartPayload'; + __typename?: "CheckoutCartPayload"; appointments: Array; cart: Cart; }; /** A Client */ export type Client = Node & { - __typename?: 'Client'; + __typename?: "Client"; /** Communication preferences */ communicationSubscriptions: Array; /** Email address */ - email?: Maybe; + email?: Maybe; /** First name */ - firstName?: Maybe; + firstName?: Maybe; /** The ID of an object */ - id: Scalars['ID']; - insertedAt: Scalars['DateTime']; + id: Scalars["ID"]; + insertedAt: Scalars["DateTime"]; /** Last name */ - lastName?: Maybe; + lastName?: Maybe; /** Mobile phone number */ - mobilePhone?: Maybe; + mobilePhone?: Maybe; /** Full name */ - name?: Maybe; + name?: Maybe; /** Pronoun */ - pronoun?: Maybe; - updatedAt: Scalars['DateTime']; + pronoun?: Maybe; + updatedAt: Scalars["DateTime"]; }; export type ClientNote = { - __typename?: 'ClientNote'; + __typename?: "ClientNote"; /** ID */ - id: Scalars['ID']; + id: Scalars["ID"]; /** When the note was originally created */ - insertedAt: Scalars['NaiveDateTime']; + insertedAt: Scalars["NaiveDateTime"]; /** The body (text) of the note. */ - text: Scalars['String']; + text: Scalars["String"]; type: NoteType; /** When the note was last updated */ - updatedAt: Scalars['NaiveDateTime']; + updatedAt: Scalars["NaiveDateTime"]; }; export enum CommunicationChannel { - Email = 'EMAIL', - Sms = 'SMS' + Email = "EMAIL", + Sms = "SMS" } export type CommunicationChannelPreference = { - __typename?: 'CommunicationChannelPreference'; + __typename?: "CommunicationChannelPreference"; /** The communication channel through which communications are received */ communicationChannel: CommunicationChannel; /** Indicates whether communications can be sent to the given communication channel */ - enabled: Scalars['Boolean']; + enabled: Scalars["Boolean"]; }; export enum CommunicationKey { - AppointmentReminder = 'APPOINTMENT_REMINDER', - Marketing = 'MARKETING' + AppointmentReminder = "APPOINTMENT_REMINDER", + Marketing = "MARKETING" } export type CommunicationSubscription = { - __typename?: 'CommunicationSubscription'; + __typename?: "CommunicationSubscription"; /** Communication preferences for a given communication subscription */ communicationChannelPreferences: Array; /** Describes the type of communications the subscription relates to */ - description: Scalars['String']; + description: Scalars["String"]; /** Identifying key of a communication subscription */ key: CommunicationKey; /** Human readable title of a communication subscription */ - title: Scalars['String']; + title: Scalars["String"]; }; export type CommunicationSubscriptionInput = { channel: CommunicationChannel; - enabled: Scalars['Boolean']; + enabled: Scalars["Boolean"]; key: CommunicationKey; }; export type ConfirmAppointmentInput = { - id: Scalars['ID']; + id: Scalars["ID"]; }; export type ConfirmAppointmentPayload = { - __typename?: 'ConfirmAppointmentPayload'; + __typename?: "ConfirmAppointmentPayload"; appointment: Appointment; }; - /** See `CartItemEmailFulfillment`. */ export type CreateCartGiftCardItemEmailFulfillmentInput = { - deliveryDate?: Maybe; + deliveryDate?: Maybe; /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** The id of the CartGiftCardItem. */ - itemId: Scalars['ID']; - messageFromSender?: Maybe; - recipientEmail: Scalars['Email']; - recipientName: Scalars['String']; - senderName: Scalars['String']; + itemId: Scalars["ID"]; + messageFromSender?: Maybe; + recipientEmail: Scalars["Email"]; + recipientName: Scalars["String"]; + senderName: Scalars["String"]; }; export type CreateCartGiftCardItemEmailFulfillmentPayload = { - __typename?: 'CreateCartGiftCardItemEmailFulfillmentPayload'; + __typename?: "CreateCartGiftCardItemEmailFulfillmentPayload"; cart: Cart; emailFulfillment: CartItemEmailFulfillment; }; export type CreateCartGuestInput = { - email?: Maybe; - firstName?: Maybe; - id: Scalars['ID']; - lastName?: Maybe; - phoneNumber?: Maybe; + email?: Maybe; + firstName?: Maybe; + id: Scalars["ID"]; + lastName?: Maybe; + phoneNumber?: Maybe; }; export type CreateCartGuestPayload = { - __typename?: 'CreateCartGuestPayload'; + __typename?: "CreateCartGuestPayload"; cart: Cart; guest: CartGuest; }; @@ -1825,663 +1831,659 @@ export type CreateCartInput = { /** Optional client information */ clientInformation?: Maybe; /** Optional message or note from the client to the business */ - clientMessage?: Maybe; + clientMessage?: Maybe; /** Optional discount code */ - discountCode?: Maybe; + discountCode?: Maybe; /** ID of the cart location */ - locationId?: Maybe; + locationId?: Maybe; /** * Referral source for the appointments booked in the cart. * * This values is mapped to the appointments' 'referral_source' custom * field values after checkout. */ - referralSource?: Maybe; + referralSource?: Maybe; }; export type CreateCartPayload = { - __typename?: 'CreateCartPayload'; + __typename?: "CreateCartPayload"; cart: Cart; }; export type CreateClientNoteInput = { /** The body (text) of the note. */ - text: Scalars['String']; + text: Scalars["String"]; type: NoteType; }; export type CreateClientNotePayload = { - __typename?: 'CreateClientNotePayload'; + __typename?: "CreateClientNotePayload"; clientNote?: Maybe; }; export type CreateCreditCardInput = { /** A friendly nickname associated with the card */ - nickname?: Maybe; + nickname?: Maybe; /** A token obtained from Vault */ - vaultToken: Scalars['String']; + vaultToken: Scalars["String"]; }; export type CreateCreditCardResult = { - __typename?: 'CreateCreditCardResult'; + __typename?: "CreateCreditCardResult"; creditCard?: Maybe; }; export type CreateCustomFormInput = { answers?: Maybe>; - appointmentId: Scalars['ID']; - offline?: Maybe; - submit?: Maybe; - submittedAt?: Maybe; - versionId: Scalars['ID']; + appointmentId: Scalars["ID"]; + offline?: Maybe; + submit?: Maybe; + submittedAt?: Maybe; + versionId: Scalars["ID"]; }; /** A credit card */ export type CreditCard = { - __typename?: 'CreditCard'; + __typename?: "CreditCard"; /** The brand of the card */ brand: CardBrand; /** The M formatted exp month of the card without leading zeros for single-digit months. */ - expMonth: Scalars['Int']; + expMonth: Scalars["Int"]; /** The YYYY formatted exp year of the card */ - expYear: Scalars['Int']; + expYear: Scalars["Int"]; /** The ID of the credit card */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Whether the card is expired or not */ - isExpired: Scalars['Boolean']; + isExpired: Scalars["Boolean"]; /** The last4 digits of the card number */ - last4: Scalars['String']; + last4: Scalars["String"]; }; export type CreditCardConnection = { - __typename?: 'CreditCardConnection'; + __typename?: "CreditCardConnection"; edges?: Maybe>>; pageInfo: PageInfo; }; export type CreditCardEdge = { - __typename?: 'CreditCardEdge'; - cursor?: Maybe; + __typename?: "CreditCardEdge"; + cursor?: Maybe; node?: Maybe; }; export type CustomForm = Node & { - __typename?: 'CustomForm'; + __typename?: "CustomForm"; /** ID of the appointment the form relates to */ - appointmentId?: Maybe; + appointmentId?: Maybe; /** ID of a client who submitted out the form */ - clientId?: Maybe; + clientId?: Maybe; components: Array; formTemplate: FormTemplate; /** The ID of an object */ - id: Scalars['ID']; - insertedAt: Scalars['DateTime']; - notStarted: Scalars['Boolean']; - submittedAt?: Maybe; + id: Scalars["ID"]; + insertedAt: Scalars["DateTime"]; + notStarted: Scalars["Boolean"]; + submittedAt?: Maybe; version: CustomFormVersion; }; export type CustomFormAnswer = { - checkboxAnswer?: Maybe>; - dateAnswer?: Maybe; - dropdownAnswer?: Maybe>; - id: Scalars['ID']; + checkboxAnswer?: Maybe>; + dateAnswer?: Maybe; + dropdownAnswer?: Maybe>; + id: Scalars["ID"]; imageAnswer?: Maybe; - otherAnswer?: Maybe; - radioAnswer?: Maybe; - selectAnswer?: Maybe>; + otherAnswer?: Maybe; + radioAnswer?: Maybe; + selectAnswer?: Maybe>; signatureAnswer?: Maybe; - textAnswer?: Maybe; - textareaAnswer?: Maybe; + textAnswer?: Maybe; + textareaAnswer?: Maybe; }; export type CustomFormComponent = { - h: Scalars['Int']; - id: Scalars['ID']; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentCheckbox = CustomFormComponent & { - __typename?: 'CustomFormComponentCheckbox'; - checkboxAnswer?: Maybe>; - floatWidth?: Maybe; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentCheckbox"; + checkboxAnswer?: Maybe>; + floatWidth?: Maybe; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - label?: Maybe; - required: Scalars['Boolean']; + label?: Maybe; + required: Scalars["Boolean"]; values: Array; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentCheckboxV2 = CustomFormComponent & { - __typename?: 'CustomFormComponentCheckboxV2'; - checkboxAnswer?: Maybe>; - enableOther: Scalars['Boolean']; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentCheckboxV2"; + checkboxAnswer?: Maybe>; + enableOther: Scalars["Boolean"]; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - label?: Maybe; - otherAnswer?: Maybe; - required: Scalars['Boolean']; + label?: Maybe; + otherAnswer?: Maybe; + required: Scalars["Boolean"]; values: Array; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentDate = CustomFormComponent & { - __typename?: 'CustomFormComponentDate'; - dateAnswer?: Maybe; - floatWidth?: Maybe; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentDate"; + dateAnswer?: Maybe; + floatWidth?: Maybe; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - label?: Maybe; - required: Scalars['Boolean']; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + label?: Maybe; + required: Scalars["Boolean"]; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentDateV2 = CustomFormComponent & { - __typename?: 'CustomFormComponentDateV2'; - autoPopulate: Scalars['Boolean']; - connectedField?: Maybe; - connectedSource?: Maybe; - dateAnswer?: Maybe; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentDateV2"; + autoPopulate: Scalars["Boolean"]; + connectedField?: Maybe; + connectedSource?: Maybe; + dateAnswer?: Maybe; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - label?: Maybe; - required: Scalars['Boolean']; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + label?: Maybe; + required: Scalars["Boolean"]; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentDividerV2 = CustomFormComponent & { - __typename?: 'CustomFormComponentDividerV2'; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentDividerV2"; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentDropdownV2 = CustomFormComponent & { - __typename?: 'CustomFormComponentDropdownV2'; - autoPopulate: Scalars['Boolean']; - connectedField?: Maybe; - connectedSource?: Maybe; - dropdownAnswer?: Maybe>; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentDropdownV2"; + autoPopulate: Scalars["Boolean"]; + connectedField?: Maybe; + connectedSource?: Maybe; + dropdownAnswer?: Maybe>; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - label?: Maybe; - manageReferralSourcesByLocation: Scalars['Boolean']; - multiple: Scalars['Boolean']; - required: Scalars['Boolean']; + label?: Maybe; + manageReferralSourcesByLocation: Scalars["Boolean"]; + multiple: Scalars["Boolean"]; + required: Scalars["Boolean"]; values: Array; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentH1 = CustomFormComponent & { - __typename?: 'CustomFormComponentH1'; - floatWidth?: Maybe; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentH1"; + floatWidth?: Maybe; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - label: Scalars['String']; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + label: Scalars["String"]; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentH2 = CustomFormComponent & { - __typename?: 'CustomFormComponentH2'; - floatWidth?: Maybe; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentH2"; + floatWidth?: Maybe; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - label: Scalars['String']; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + label: Scalars["String"]; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentImageAnswer = { - __typename?: 'CustomFormComponentImageAnswer'; - annotatedImageUrl?: Maybe; - canvasDataUrl?: Maybe; - customFormImageId?: Maybe; - sourceImageUrl?: Maybe; + __typename?: "CustomFormComponentImageAnswer"; + annotatedImageUrl?: Maybe; + canvasDataUrl?: Maybe; + customFormImageId?: Maybe; + sourceImageUrl?: Maybe; }; export type CustomFormComponentImageUploaderV2 = CustomFormComponent & { - __typename?: 'CustomFormComponentImageUploaderV2'; - enableImageMarkup: Scalars['Boolean']; + __typename?: "CustomFormComponentImageUploaderV2"; + enableImageMarkup: Scalars["Boolean"]; /** @deprecated This field has been deprecated, use imageAnswer instead */ fileUpload: CustomFormComponentSignatureUpload; - h: Scalars['Int']; - id: Scalars['ID']; + h: Scalars["Int"]; + id: Scalars["ID"]; imageAnswer: CustomFormComponentImageAnswer; kind: FormComponentKind; - label?: Maybe; - required: Scalars['Boolean']; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + label?: Maybe; + required: Scalars["Boolean"]; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentImageV2 = CustomFormComponent & { - __typename?: 'CustomFormComponentImageV2'; - enableImageMarkup: Scalars['Boolean']; - fileUploadId?: Maybe; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentImageV2"; + enableImageMarkup: Scalars["Boolean"]; + fileUploadId?: Maybe; + h: Scalars["Int"]; + id: Scalars["ID"]; imageAnswer: CustomFormComponentImageAnswer; kind: FormComponentKind; - label?: Maybe; - src: Scalars['String']; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + label?: Maybe; + src: Scalars["String"]; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentLogo = CustomFormComponent & { - __typename?: 'CustomFormComponentLogo'; - floatWidth?: Maybe; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentLogo"; + floatWidth?: Maybe; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - markdownContent: Scalars['String']; - markdownHtml: Scalars['String']; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + markdownContent: Scalars["String"]; + markdownHtml: Scalars["String"]; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentLogoV2 = CustomFormComponent & { - __typename?: 'CustomFormComponentLogoV2'; - fileUploadId?: Maybe; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentLogoV2"; + fileUploadId?: Maybe; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - src: Scalars['String']; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + src: Scalars["String"]; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentMarkdown = CustomFormComponent & { - __typename?: 'CustomFormComponentMarkdown'; - floatWidth?: Maybe; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentMarkdown"; + floatWidth?: Maybe; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - markdownContent: Scalars['String']; - markdownHtml: Scalars['String']; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + markdownContent: Scalars["String"]; + markdownHtml: Scalars["String"]; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentMultipleChoiceV2 = CustomFormComponent & { - __typename?: 'CustomFormComponentMultipleChoiceV2'; - autoPopulate: Scalars['Boolean']; - connectedField?: Maybe; - connectedSource?: Maybe; - enableOther: Scalars['Boolean']; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentMultipleChoiceV2"; + autoPopulate: Scalars["Boolean"]; + connectedField?: Maybe; + connectedSource?: Maybe; + enableOther: Scalars["Boolean"]; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - label?: Maybe; - otherAnswer?: Maybe; - radioAnswer?: Maybe; - required: Scalars['Boolean']; + label?: Maybe; + otherAnswer?: Maybe; + radioAnswer?: Maybe; + required: Scalars["Boolean"]; values: Array; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentRadio = CustomFormComponent & { - __typename?: 'CustomFormComponentRadio'; - floatWidth?: Maybe; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentRadio"; + floatWidth?: Maybe; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - label?: Maybe; - radioAnswer?: Maybe; - required: Scalars['Boolean']; + label?: Maybe; + radioAnswer?: Maybe; + required: Scalars["Boolean"]; values: Array; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentRadioValue = { - __typename?: 'CustomFormComponentRadioValue'; - id: Scalars['String']; - label: Scalars['String']; + __typename?: "CustomFormComponentRadioValue"; + id: Scalars["String"]; + label: Scalars["String"]; }; export type CustomFormComponentSelect = CustomFormComponent & { - __typename?: 'CustomFormComponentSelect'; - floatWidth?: Maybe; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentSelect"; + floatWidth?: Maybe; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - label?: Maybe; - required: Scalars['Boolean']; - selectAnswer?: Maybe>>; - selectMultiple: Scalars['Boolean']; + label?: Maybe; + required: Scalars["Boolean"]; + selectAnswer?: Maybe>>; + selectMultiple: Scalars["Boolean"]; values: Array; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentSelectValue = { - __typename?: 'CustomFormComponentSelectValue'; - id: Scalars['String']; - label: Scalars['String']; + __typename?: "CustomFormComponentSelectValue"; + id: Scalars["String"]; + label: Scalars["String"]; }; export type CustomFormComponentSignature = CustomFormComponent & { - __typename?: 'CustomFormComponentSignature'; - enableWet?: Maybe; + __typename?: "CustomFormComponentSignature"; + enableWet?: Maybe; fileUpload: CustomFormComponentSignatureUpload; - floatWidth?: Maybe; - h: Scalars['Int']; - id: Scalars['ID']; + floatWidth?: Maybe; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - label: Scalars['String']; - required: Scalars['Boolean']; + label: Scalars["String"]; + required: Scalars["Boolean"]; signatureAnswer: CustomFormComponentSignatureAnswer; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentSignatureAnswer = { - __typename?: 'CustomFormComponentSignatureAnswer'; - fileUploadId?: Maybe; - name?: Maybe; - url?: Maybe; + __typename?: "CustomFormComponentSignatureAnswer"; + fileUploadId?: Maybe; + name?: Maybe; + url?: Maybe; }; export type CustomFormComponentSignatureUpload = { - __typename?: 'CustomFormComponentSignatureUpload'; - id: Scalars['ID']; - signedPutUrl: Scalars['String']; + __typename?: "CustomFormComponentSignatureUpload"; + id: Scalars["ID"]; + signedPutUrl: Scalars["String"]; }; export type CustomFormComponentSignatureV2 = CustomFormComponent & { - __typename?: 'CustomFormComponentSignatureV2'; - enableWetV2?: Maybe; + __typename?: "CustomFormComponentSignatureV2"; + enableWetV2?: Maybe; fileUpload: CustomFormComponentSignatureUpload; - h: Scalars['Int']; - id: Scalars['ID']; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - label?: Maybe; - required: Scalars['Boolean']; + label?: Maybe; + required: Scalars["Boolean"]; signatureAnswer: CustomFormComponentSignatureAnswer; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentText = CustomFormComponent & { - __typename?: 'CustomFormComponentText'; - floatWidth?: Maybe; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentText"; + floatWidth?: Maybe; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - label: Scalars['String']; - placeholder?: Maybe; - required: Scalars['Boolean']; - textAnswer?: Maybe; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + label: Scalars["String"]; + placeholder?: Maybe; + required: Scalars["Boolean"]; + textAnswer?: Maybe; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentTextInputV2 = CustomFormComponent & { - __typename?: 'CustomFormComponentTextInputV2'; - autoPopulate: Scalars['Boolean']; - connectedField?: Maybe; - connectedSource?: Maybe; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentTextInputV2"; + autoPopulate: Scalars["Boolean"]; + connectedField?: Maybe; + connectedSource?: Maybe; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - label?: Maybe; - longResponse: Scalars['Boolean']; - placeholder?: Maybe; - required: Scalars['Boolean']; - textAnswer?: Maybe; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + label?: Maybe; + longResponse: Scalars["Boolean"]; + placeholder?: Maybe; + required: Scalars["Boolean"]; + textAnswer?: Maybe; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentTextV2 = CustomFormComponent & { - __typename?: 'CustomFormComponentTextV2'; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentTextV2"; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - value?: Maybe; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + value?: Maybe; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormComponentTextarea = CustomFormComponent & { - __typename?: 'CustomFormComponentTextarea'; - h: Scalars['Int']; - id: Scalars['ID']; + __typename?: "CustomFormComponentTextarea"; + h: Scalars["Int"]; + id: Scalars["ID"]; kind: FormComponentKind; - label: Scalars['String']; - placeholder?: Maybe; - required: Scalars['Boolean']; - textAnswer?: Maybe; - textareaAnswer?: Maybe; - w: Scalars['Int']; - x: Scalars['Int']; - y: Scalars['Int']; + label: Scalars["String"]; + placeholder?: Maybe; + required: Scalars["Boolean"]; + textAnswer?: Maybe; + textareaAnswer?: Maybe; + w: Scalars["Int"]; + x: Scalars["Int"]; + y: Scalars["Int"]; }; export type CustomFormImageAnswer = { - customFormImageId?: Maybe; + customFormImageId?: Maybe; }; export type CustomFormSignatureAnswer = { - fileUploadId?: Maybe; - name?: Maybe; + fileUploadId?: Maybe; + name?: Maybe; }; export type CustomFormTemplate = { - __typename?: 'CustomFormTemplate'; + __typename?: "CustomFormTemplate"; /** @deprecated Use `status` instead */ - active: Scalars['Boolean']; + active: Scalars["Boolean"]; components: Array; createdByStaff?: Maybe; currentVersion: CustomFormVersion; - description?: Maybe; - id: Scalars['ID']; - insertedAt: Scalars['DateTime']; - internal: Scalars['Boolean']; - name: Scalars['String']; - requestDuringBooking: Scalars['Boolean']; - requestDuringCheckin: Scalars['Boolean']; - requestDuringReminder: Scalars['Boolean']; - requestSameDay: Scalars['Boolean']; + description?: Maybe; + id: Scalars["ID"]; + insertedAt: Scalars["DateTime"]; + internal: Scalars["Boolean"]; + name: Scalars["String"]; + requestDuringBooking: Scalars["Boolean"]; + requestDuringCheckin: Scalars["Boolean"]; + requestDuringReminder: Scalars["Boolean"]; + requestSameDay: Scalars["Boolean"]; resource: FormResourceType; - sortOrder: Scalars['Float']; - status: Scalars['String']; + sortOrder: Scalars["Float"]; + status: Scalars["String"]; templateLocations: Array>; templateServices: Array>; - updatedAt: Scalars['DateTime']; + updatedAt: Scalars["DateTime"]; }; export type CustomFormTemplateLocation = { - __typename?: 'CustomFormTemplateLocation'; - id: Scalars['ID']; + __typename?: "CustomFormTemplateLocation"; + id: Scalars["ID"]; location: Location; template: CustomFormTemplate; }; export type CustomFormTemplateService = { - __typename?: 'CustomFormTemplateService'; - id: Scalars['ID']; + __typename?: "CustomFormTemplateService"; + id: Scalars["ID"]; service: Service; template: CustomFormTemplate; }; export type CustomFormVersion = { - __typename?: 'CustomFormVersion'; + __typename?: "CustomFormVersion"; components: Array; - id: Scalars['ID']; + id: Scalars["ID"]; template: CustomFormTemplate; - templatingVersion: Scalars['Int']; + templatingVersion: Scalars["Int"]; }; - - export type DeleteCartGiftCardItemEmailFulfillmentInput = { /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** The id of the CartGiftCardItem. */ - itemId: Scalars['ID']; + itemId: Scalars["ID"]; }; export type DeleteCartGiftCardItemEmailFulfillmentPayload = { - __typename?: 'DeleteCartGiftCardItemEmailFulfillmentPayload'; + __typename?: "DeleteCartGiftCardItemEmailFulfillmentPayload"; cart: Cart; }; export type DeleteCartGuestInput = { - guestId: Scalars['ID']; - id: Scalars['ID']; + guestId: Scalars["ID"]; + id: Scalars["ID"]; }; export type DeleteCartGuestPayload = { - __typename?: 'DeleteCartGuestPayload'; + __typename?: "DeleteCartGuestPayload"; cart: Cart; }; export enum DepositType { /** An amount that covers the entire cost of the service is due at the time of booking. In other words, the deposit amount is equal to the total amount */ - FullDeposit = 'FULL_DEPOSIT', + FullDeposit = "FULL_DEPOSIT", /** There is no deposit required before the time of service. In other words, the deposit amount is zero */ - NoDeposit = 'NO_DEPOSIT', + NoDeposit = "NO_DEPOSIT", /** An amount that will go towards the final total amount is due at the time of booking. In other words, the deposit amount is less than the total amount */ - PartialDeposit = 'PARTIAL_DEPOSIT' + PartialDeposit = "PARTIAL_DEPOSIT" } - - export type FormComponentCheckboxValue = { - __typename?: 'FormComponentCheckboxValue'; - id: Scalars['ID']; - label: Scalars['String']; + __typename?: "FormComponentCheckboxValue"; + id: Scalars["ID"]; + label: Scalars["String"]; }; export enum FormComponentKind { - Checkbox = 'CHECKBOX', - CheckboxV2 = 'CHECKBOX_V2', - Date = 'DATE', - DateV2 = 'DATE_V2', - DividerV2 = 'DIVIDER_V2', - DropdownV2 = 'DROPDOWN_V2', - H1 = 'H1', - H2 = 'H2', - ImageUploaderV2 = 'IMAGE_UPLOADER_V2', - ImageV2 = 'IMAGE_V2', - Logo = 'LOGO', - LogoV2 = 'LOGO_V2', - Markdown = 'MARKDOWN', - MultipleChoiceV2 = 'MULTIPLE_CHOICE_V2', - Radio = 'RADIO', - Select = 'SELECT', - Signature = 'SIGNATURE', - SignatureV2 = 'SIGNATURE_V2', - Text = 'TEXT', - TextInputV2 = 'TEXT_INPUT_V2', - TextV2 = 'TEXT_V2', - Textarea = 'TEXTAREA' + Checkbox = "CHECKBOX", + CheckboxV2 = "CHECKBOX_V2", + Date = "DATE", + DateV2 = "DATE_V2", + DividerV2 = "DIVIDER_V2", + DropdownV2 = "DROPDOWN_V2", + H1 = "H1", + H2 = "H2", + ImageUploaderV2 = "IMAGE_UPLOADER_V2", + ImageV2 = "IMAGE_V2", + Logo = "LOGO", + LogoV2 = "LOGO_V2", + Markdown = "MARKDOWN", + MultipleChoiceV2 = "MULTIPLE_CHOICE_V2", + Radio = "RADIO", + Select = "SELECT", + Signature = "SIGNATURE", + SignatureV2 = "SIGNATURE_V2", + Text = "TEXT", + TextInputV2 = "TEXT_INPUT_V2", + TextV2 = "TEXT_V2", + Textarea = "TEXTAREA" } export type FormComponentV2CheckboxValue = { - __typename?: 'FormComponentV2CheckboxValue'; - id: Scalars['ID']; - label?: Maybe; + __typename?: "FormComponentV2CheckboxValue"; + id: Scalars["ID"]; + label?: Maybe; }; export enum FormPresentationFormat { /** All relevant forms */ - Any = 'ANY', + Any = "ANY", /** Booking widget during booking */ - Booking = 'BOOKING', + Booking = "BOOKING", /** Display this form in the Reception app during check-in */ - Checkin = 'CHECKIN', + Checkin = "CHECKIN", /** A reminder to complete the form before their appointment */ - Reminder = 'REMINDER' + Reminder = "REMINDER" } export enum FormResourceType { - Appointment = 'APPOINTMENT', - Client = 'CLIENT' + Appointment = "APPOINTMENT", + Client = "CLIENT" } export type FormTemplate = { - __typename?: 'FormTemplate'; + __typename?: "FormTemplate"; /** Form template ID */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Form template name */ - name: Scalars['String']; + name: Scalars["String"]; }; export type GiftCardDesign = { - __typename?: 'GiftCardDesign'; - backgroundColor?: Maybe; - foregroundText?: Maybe; - id: Scalars['ID']; - image?: Maybe; - name: Scalars['String']; - preset: Scalars['Boolean']; + __typename?: "GiftCardDesign"; + backgroundColor?: Maybe; + foregroundText?: Maybe; + id: Scalars["ID"]; + image?: Maybe; + name: Scalars["String"]; + preset: Scalars["Boolean"]; }; /** Location */ export type Location = Node & { - __typename?: 'Location'; + __typename?: "Location"; /** The location's address */ address: Address; /** Whether or not the location allows booking online */ - allowOnlineBooking: Scalars['Boolean']; + allowOnlineBooking: Scalars["Boolean"]; /** Whether or not the location allows rescheduling online */ - allowOnlineRescheduling: Scalars['Boolean']; + allowOnlineRescheduling: Scalars["Boolean"]; /** The location's arrival instructions */ - arrivalInstructions: Scalars['String']; + arrivalInstructions: Scalars["String"]; /** URL to an image related to the location */ - avatar?: Maybe; + avatar?: Maybe; /** Name of the business */ - businessName: Scalars['String']; + businessName: Scalars["String"]; /** The location's contact email */ - contactEmail?: Maybe; + contactEmail?: Maybe; /** The coordinates of the location */ - coordinates?: Maybe; + coordinates?: Maybe; /** Location external id */ - externalId?: Maybe; + externalId?: Maybe; /** * Stores the location's daily business hours and whether the location is * open or closed on a specific day of the week. This is an array of 7 elements @@ -2489,28 +2491,28 @@ export type Location = Node & { */ hours?: Maybe>>; /** The ID of an object */ - id: Scalars['ID']; - insertedAt: Scalars['DateTime']; + id: Scalars["ID"]; + insertedAt: Scalars["DateTime"]; /** * Indicates that the location is a remote location, and that appointments for * this location are carried out remotely. */ - isRemote: Scalars['Boolean']; + isRemote: Scalars["Boolean"]; /** The location's name */ - name: Scalars['String']; + name: Scalars["String"]; /** The location's phone number */ - phoneNumber?: Maybe; + phoneNumber?: Maybe; /** Social account links */ social: LocationSocialAccounts; /** The location's timezone */ - tz: Scalars['Tz']; - updatedAt: Scalars['DateTime']; + tz: Scalars["Tz"]; + updatedAt: Scalars["DateTime"]; /** The location's website */ - website?: Maybe; + website?: Maybe; }; export type LocationConnection = { - __typename?: 'LocationConnection'; + __typename?: "LocationConnection"; edges?: Maybe>>; pageInfo: PageInfo; }; @@ -2521,15 +2523,15 @@ export type LocationConnection = { * the location opens and closes on that day. */ export type LocationDays = { - __typename?: 'LocationDays'; + __typename?: "LocationDays"; finish?: Maybe; - open?: Maybe; + open?: Maybe; start?: Maybe; }; export type LocationEdge = { - __typename?: 'LocationEdge'; - cursor?: Maybe; + __typename?: "LocationEdge"; + cursor?: Maybe; node?: Maybe; }; @@ -2539,221 +2541,217 @@ export type LocationEdge = { * saved as { hour: 14, minute: 30 }. */ export type LocationHours = { - __typename?: 'LocationHours'; + __typename?: "LocationHours"; /** Only integers in the range 0..23 are valid */ - hour?: Maybe; - minute?: Maybe; + hour?: Maybe; + minute?: Maybe; }; export type LocationSocialAccounts = { - __typename?: 'LocationSocialAccounts'; - facebook?: Maybe; - google?: Maybe; - instagram?: Maybe; - pinterest?: Maybe; - twitter?: Maybe; - yelp?: Maybe; - youtube?: Maybe; + __typename?: "LocationSocialAccounts"; + facebook?: Maybe; + google?: Maybe; + instagram?: Maybe; + pinterest?: Maybe; + twitter?: Maybe; + yelp?: Maybe; + youtube?: Maybe; }; /** A client membership sold at the business. */ export type Membership = Node & { - __typename?: 'Membership'; + __typename?: "Membership"; /** Client who owns the membership. */ client: Client; /** The id of the client who owns the membership. */ - clientId: Scalars['ID']; + clientId: Scalars["ID"]; /** The credit card that will be charged for the membership. */ creditCard?: Maybe; /** Has the membership current billing failed */ - currentBillingError: Scalars['Boolean']; + currentBillingError: Scalars["Boolean"]; /** * Ending date for the membership. * * May be NULL to indicate an indefinitely frozen membership. */ - endOn?: Maybe; + endOn?: Maybe; /** The ID of an object */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Duration of the membership interval (eg. 1 month). */ - interval: Scalars['DurationInterval']; + interval: Scalars["DurationInterval"]; /** The membership name. */ - name: Scalars['String']; + name: Scalars["String"]; /** Start date of the membership. */ - startOn: Scalars['Date']; + startOn: Scalars["Date"]; /** Membership Status. Active, Cancelled, Past Due or Paused */ status: SubscriptionStatus; /** The current term number of the membership */ - termNumber: Scalars['Int']; + termNumber: Scalars["Int"]; /** How much the membership costs per interval. */ - unitPrice: Scalars['Money']; + unitPrice: Scalars["Money"]; /** Optional vouchers included with membership */ vouchers: Array; }; export type MembershipConnection = { - __typename?: 'MembershipConnection'; + __typename?: "MembershipConnection"; edges?: Maybe>>; pageInfo: PageInfo; }; export type MembershipEdge = { - __typename?: 'MembershipEdge'; - cursor?: Maybe; + __typename?: "MembershipEdge"; + cursor?: Maybe; node?: Maybe; }; export type MembershipPaymentMethodUpdateAndRenewInput = { - id: Scalars['ID']; - paymentMethodId: Scalars['ID']; + id: Scalars["ID"]; + paymentMethodId: Scalars["ID"]; }; export type MembershipPaymentMethodUpdateAndRenewPayload = { - __typename?: 'MembershipPaymentMethodUpdateAndRenewPayload'; + __typename?: "MembershipPaymentMethodUpdateAndRenewPayload"; membership?: Maybe; - newCardWasChargedForRenewal?: Maybe; + newCardWasChargedForRenewal?: Maybe; }; export type MembershipPaymentMethodUpdateInput = { - id: Scalars['ID']; - paymentMethodId: Scalars['ID']; + id: Scalars["ID"]; + paymentMethodId: Scalars["ID"]; }; export type MembershipPaymentMethodUpdatePayload = { - __typename?: 'MembershipPaymentMethodUpdatePayload'; + __typename?: "MembershipPaymentMethodUpdatePayload"; membership?: Maybe; }; /** A membership service voucher */ export type MembershipVoucher = { - __typename?: 'MembershipVoucher'; + __typename?: "MembershipVoucher"; /** Number of vouchers included */ - quantity: Scalars['Int']; + quantity: Scalars["Int"]; /** @deprecated Use services to fetch the list of services from a membership voucher. */ service: Service; services: Array; }; - - export type Node = { /** The ID of the object. */ - id: Scalars['ID']; + id: Scalars["ID"]; }; export enum NoteType { /** Note with allergy information */ - Allergy = 'ALLERGY', + Allergy = "ALLERGY", /** Standard note */ - Default = 'DEFAULT', + Default = "DEFAULT", /** Note with medical information */ - Medication = 'MEDICATION' + Medication = "MEDICATION" } export type OnlineGiftCardSettings = { - __typename?: 'OnlineGiftCardSettings'; + __typename?: "OnlineGiftCardSettings"; giftCardDesigns: Array; /** ID of the location that will be alloted gift card sales */ - designatedLocationId?: Maybe; + designatedLocationId?: Maybe; /** Message displayed on the gift card microsite */ - websiteMessage?: Maybe; + websiteMessage?: Maybe; }; export type PageInfo = { - __typename?: 'PageInfo'; + __typename?: "PageInfo"; /** When paginating forwards, the cursor to continue. */ - endCursor?: Maybe; + endCursor?: Maybe; /** When paginating forwards, are there more items? */ - hasNextPage: Scalars['Boolean']; + hasNextPage: Scalars["Boolean"]; /** When paginating backwards, are there more items? */ - hasPreviousPage: Scalars['Boolean']; + hasPreviousPage: Scalars["Boolean"]; /** When paginating backwards, the cursor to continue. */ - startCursor?: Maybe; + startCursor?: Maybe; }; - - export type ReferralInput = { - additionalInfo?: Maybe; - id?: Maybe; - referralSourceId?: Maybe; - referrerClientId?: Maybe; + additionalInfo?: Maybe; + id?: Maybe; + referralSourceId?: Maybe; + referrerClientId?: Maybe; }; export type ReferralSource = { - __typename?: 'ReferralSource'; + __typename?: "ReferralSource"; /** If the referral source is active or has been soft deleted */ - active: Scalars['Boolean']; + active: Scalars["Boolean"]; /** Whether or not this referral source has been enabled for all locations */ - allLocations: Scalars['Boolean']; + allLocations: Scalars["Boolean"]; /** ID */ - id: Scalars['ID']; + id: Scalars["ID"]; /** When the referral source was created */ - insertedAt: Scalars['DateTime']; + insertedAt: Scalars["DateTime"]; /** Location ID of location that owns the referral source. If null, owned by the business */ - locationId?: Maybe; + locationId?: Maybe; /** Locations that have access to the referral source, but cannot necessarily edit the referral source */ locations: Array; /** Name of the source of the referral */ - name: Scalars['String']; + name: Scalars["String"]; }; export type RemoveCartOfferInput = { /** ID of the cart */ - id: Scalars['ID']; + id: Scalars["ID"]; /** The offer code identifier */ - offerId: Scalars['String']; + offerId: Scalars["String"]; }; export type RemoveCartOfferPayload = { - __typename?: 'RemoveCartOfferPayload'; + __typename?: "RemoveCartOfferPayload"; cart: Cart; }; export type RemoveCartSelectedItemInput = { /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** ID of the selected item. */ - itemId: Scalars['ID']; + itemId: Scalars["ID"]; }; export type RemoveCartSelectedItemPayload = { - __typename?: 'RemoveCartSelectedItemPayload'; + __typename?: "RemoveCartSelectedItemPayload"; cart: Cart; }; export type RemoveCustomFormImageResult = { - __typename?: 'RemoveCustomFormImageResult'; - id: Scalars['ID']; + __typename?: "RemoveCustomFormImageResult"; + id: Scalars["ID"]; }; export type RequestCodeInput = { /** Method used for sending the code. Can be either sms or email */ - method: Scalars['String']; + method: Scalars["String"]; /** Phone number or email address depending on the method selected */ - value: Scalars['String']; + value: Scalars["String"]; }; export type RequestCodePayload = { - __typename?: 'RequestCodePayload'; + __typename?: "RequestCodePayload"; /** Request id used along with the code for the login. */ - requestId: Scalars['String']; + requestId: Scalars["String"]; }; export type ReserveCartBookableItemsInput = { /** ID of the bookable time. */ - bookableTimeId: Scalars['ID']; + bookableTimeId: Scalars["ID"]; /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; }; export type ReserveCartBookableItemsPayload = { - __typename?: 'ReserveCartBookableItemsPayload'; + __typename?: "ReserveCartBookableItemsPayload"; cart: Cart; }; export type RootMutationType = { - __typename?: 'RootMutationType'; + __typename?: "RootMutationType"; /** * Add a credit card payment method to a cart. * @@ -2965,258 +2963,208 @@ export type RootMutationType = { updateCustomForm: CustomForm; }; - export type RootMutationTypeAddCartCardPaymentMethodArgs = { input: AddCartCardPaymentMethodInput; }; - export type RootMutationTypeAddCartOfferArgs = { input: AddCartOfferInput; }; - export type RootMutationTypeAddCartSelectedBookableItemArgs = { input: AddCartSelectedBookableItemInput; }; - export type RootMutationTypeAddCartSelectedGiftCardItemArgs = { input: AddCartSelectedGiftCardItemInput; }; - export type RootMutationTypeAddCartSelectedPurchasableItemArgs = { input: AddCartSelectedPurchasableItemInput; }; - export type RootMutationTypeAppointmentAddTagsArgs = { input: AppointmentAddTagsInput; }; - export type RootMutationTypeAppointmentRescheduleArgs = { input: AppointmentRescheduleInput; }; - export type RootMutationTypeAppointmentRescheduleAvailableDatesArgs = { input: AppointmentRescheduleAvailableDatesInput; }; - export type RootMutationTypeAppointmentRescheduleAvailableTimesArgs = { input: AppointmentRescheduleAvailableTimesInput; }; - export type RootMutationTypeCancelAppointmentArgs = { input: CancelAppointmentInput; }; - export type RootMutationTypeCartAddToWaitlistArgs = { input: CartAddToWaitlistInput; }; - export type RootMutationTypeCartBookingQuestionAddAnswerArgs = { input: CartBookingQuestionAddAnswerInput; }; - export type RootMutationTypeCartBookingQuestionClearAnswerArgs = { input: CartBookingQuestionClearAnswerInput; }; - export type RootMutationTypeCartClearArgs = { input: CartClearInput; }; - export type RootMutationTypeCartSetLocationArgs = { input: CartSetLocationInput; }; - export type RootMutationTypeCheckoutCartArgs = { input: CheckoutCartInput; }; - export type RootMutationTypeConfirmAppointmentArgs = { input: ConfirmAppointmentInput; }; - export type RootMutationTypeCreateCartArgs = { input: CreateCartInput; }; - export type RootMutationTypeCreateCartGiftCardItemEmailFulfillmentArgs = { input: CreateCartGiftCardItemEmailFulfillmentInput; }; - export type RootMutationTypeCreateCartGuestArgs = { input: CreateCartGuestInput; }; - export type RootMutationTypeCreateClientNoteArgs = { input: CreateClientNoteInput; }; - export type RootMutationTypeCreateCreditCardArgs = { card: CreateCreditCardInput; }; - export type RootMutationTypeCreateCustomFormArgs = { form: CreateCustomFormInput; }; - export type RootMutationTypeDeleteCartGiftCardItemEmailFulfillmentArgs = { input: DeleteCartGiftCardItemEmailFulfillmentInput; }; - export type RootMutationTypeDeleteCartGuestArgs = { input: DeleteCartGuestInput; }; - export type RootMutationTypeMembershipPaymentMethodUpdateArgs = { input: MembershipPaymentMethodUpdateInput; }; - export type RootMutationTypeMembershipPaymentMethodUpdateAndRenewArgs = { input: MembershipPaymentMethodUpdateAndRenewInput; }; - export type RootMutationTypeRemoveCartOfferArgs = { input: RemoveCartOfferInput; }; - export type RootMutationTypeRemoveCartSelectedItemArgs = { input: RemoveCartSelectedItemInput; }; - export type RootMutationTypeRemoveCustomFormImageArgs = { - customFormImageId: Scalars['ID']; + customFormImageId: Scalars["ID"]; }; - export type RootMutationTypeRequestCodeArgs = { input: RequestCodeInput; }; - export type RootMutationTypeReserveCartBookableItemsArgs = { input: ReserveCartBookableItemsInput; }; - export type RootMutationTypeSelectCartPaymentMethodArgs = { input: SelectCartPaymentMethodInput; }; - export type RootMutationTypeSendCartOwnershipCodeByEmailArgs = { input: SendCartOwnershipCodeByEmailInput; }; - export type RootMutationTypeSendCartOwnershipCodeBySmsArgs = { input: SendCartOwnershipCodeBySmsInput; }; - export type RootMutationTypeStartCustomFormImageUploadArgs = { input: StartCustomFormImageUploadInput; }; - export type RootMutationTypeTakeCartOwnershipArgs = { input: TakeCartOwnershipInput; }; - export type RootMutationTypeTakeCartOwnershipByCodeArgs = { input: TakeCartOwnershipByCodeInput; }; - export type RootMutationTypeUnstableClientPasswordlessAuthRequestCodeArgs = { input: UnstableClientPasswordlessAuthRequestCodeInput; }; - export type RootMutationTypeUnstableClientPasswordlessAuthSignInArgs = { input: UnstableClientPasswordlessAuthSignInInput; }; - export type RootMutationTypeUpdateCartArgs = { input: UpdateCartInput; }; - export type RootMutationTypeUpdateCartGiftCardItemEmailFulfillmentArgs = { input: UpdateCartGiftCardItemEmailFulfillmentInput; }; - export type RootMutationTypeUpdateCartGuestArgs = { input: UpdateCartGuestInput; }; - export type RootMutationTypeUpdateCartSelectedBookableItemArgs = { input: UpdateCartSelectedBookableItemInput; }; - export type RootMutationTypeUpdateCartSelectedGiftCardItemArgs = { input: UpdateCartSelectedGiftCardItemInput; }; - export type RootMutationTypeUpdateCartSelectedPurchasableItemArgs = { input: UpdateCartSelectedPurchasableItemInput; }; - export type RootMutationTypeUpdateClientArgs = { input: UpdateClientInput; }; - export type RootMutationTypeUpdateClientInfoArgs = { input: UpdateClientInfoInput; }; - export type RootMutationTypeUpdateCommunicationSubscriptionsArgs = { input: UpdateCommunicationSubscriptionsInput; }; - export type RootMutationTypeUpdateCustomFormArgs = { form: UpdateCustomFormInput; }; export type RootQueryType = { - __typename?: 'RootQueryType'; + __typename?: "RootQueryType"; appointment?: Maybe; /** Look up the currently authenticated business */ business?: Maybe; @@ -3249,7 +3197,9 @@ export type RootQueryType = { * existing reservations are invalidated and the times must be reserved again * using `reserveCartBookableItems`. */ - cartBookableStaffVariants?: Maybe>; + cartBookableStaffVariants?: Maybe< + Array + >; /** * Retrieves available times for all bookable cart items, given a date that * was retrieved earlier using `cartBookableDates`. @@ -3284,300 +3234,285 @@ export type RootQueryType = { unstableClientPasswordlessAuthMethods: Array; }; - export type RootQueryTypeAppointmentArgs = { - cartId?: Maybe; - id: Scalars['ID']; + cartId?: Maybe; + id: Scalars["ID"]; }; - export type RootQueryTypeCartArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type RootQueryTypeCartBookableDatesArgs = { - id: Scalars['ID']; - limit?: Maybe; - locationId?: Maybe; - searchRangeLower?: Maybe; - searchRangeUpper?: Maybe; - staffVariantIds?: Maybe>; - tz?: Maybe; + id: Scalars["ID"]; + limit?: Maybe; + locationId?: Maybe; + searchRangeLower?: Maybe; + searchRangeUpper?: Maybe; + staffVariantIds?: Maybe>; + tz?: Maybe; }; - export type RootQueryTypeCartBookableStaffVariantsArgs = { - bookableTimeId: Scalars['ID']; - id: Scalars['ID']; - itemId: Scalars['ID']; - locationId?: Maybe; + bookableTimeId: Scalars["ID"]; + id: Scalars["ID"]; + itemId: Scalars["ID"]; + locationId?: Maybe; }; - export type RootQueryTypeCartBookableTimesArgs = { - id: Scalars['ID']; - locationId?: Maybe; - searchDate: Scalars['Date']; - staffVariantIds?: Maybe>; - tz?: Maybe; + id: Scalars["ID"]; + locationId?: Maybe; + searchDate: Scalars["Date"]; + staffVariantIds?: Maybe>; + tz?: Maybe; }; - export type RootQueryTypeCustomFormArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type RootQueryTypeCustomFormTemplateArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type RootQueryTypeLocationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; + after?: Maybe; + before?: Maybe; + first?: Maybe; + last?: Maybe; }; - export type RootQueryTypeMembershipArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type RootQueryTypeMyAppointmentsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - query?: Maybe; + after?: Maybe; + before?: Maybe; + first?: Maybe; + last?: Maybe; + query?: Maybe; sort?: Maybe; }; - export type RootQueryTypeMyCreditCardsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; + after?: Maybe; + before?: Maybe; + first?: Maybe; + last?: Maybe; }; - export type RootQueryTypeMyMembershipsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; + after?: Maybe; + before?: Maybe; + first?: Maybe; + last?: Maybe; }; - export type RootQueryTypeNodeArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type RootQueryTypeUnstableClientPasswordlessAuthMethodsArgs = { - clientId: Scalars['ID']; + clientId: Scalars["ID"]; }; export type SelectCartPaymentMethodInput = { /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** ID of the selected payment method. */ - paymentMethodId: Scalars['ID']; + paymentMethodId: Scalars["ID"]; }; export type SelectCartPaymentMethodPayload = { - __typename?: 'SelectCartPaymentMethodPayload'; + __typename?: "SelectCartPaymentMethodPayload"; cart: Cart; }; export type SendCartOwnershipCodeByEmailInput = { /** Email to send the ownership code to */ - email: Scalars['String']; + email: Scalars["String"]; }; export type SendCartOwnershipCodeByEmailPayload = { - __typename?: 'SendCartOwnershipCodeByEmailPayload'; - cartOwnershipCodeId: Scalars['String']; + __typename?: "SendCartOwnershipCodeByEmailPayload"; + cartOwnershipCodeId: Scalars["String"]; }; export type SendCartOwnershipCodeBySmsInput = { /** Mobile phone number to send the ownership code to */ - mobilePhone: Scalars['String']; + mobilePhone: Scalars["String"]; }; export type SendCartOwnershipCodeBySmsPayload = { - __typename?: 'SendCartOwnershipCodeBySmsPayload'; - cartOwnershipCodeId: Scalars['String']; + __typename?: "SendCartOwnershipCodeBySmsPayload"; + cartOwnershipCodeId: Scalars["String"]; }; /** A Service */ export type Service = Node & { - __typename?: 'Service'; + __typename?: "Service"; /** Service Category */ category: ServiceCategory; /** Service Category Id */ - categoryId: Scalars['ID']; + categoryId: Scalars["ID"]; /** Description */ - description?: Maybe; + description?: Maybe; /** External Id */ - externalId?: Maybe; + externalId?: Maybe; /** The ID of an object */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Name */ - name: Scalars['String']; + name: Scalars["String"]; }; /** A ServiceCategory */ export type ServiceCategory = { - __typename?: 'ServiceCategory'; + __typename?: "ServiceCategory"; /** Name */ - name: Scalars['String']; + name: Scalars["String"]; }; /** A ServiceOption */ export type ServiceOption = Node & { - __typename?: 'ServiceOption'; + __typename?: "ServiceOption"; /** The ID of an object */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Name */ - name: Scalars['String']; + name: Scalars["String"]; }; /** Staff */ export type Staff = Node & { - __typename?: 'Staff'; + __typename?: "Staff"; /** A URL to the Avatar uploaded for this staff within the Boulevard Dashboard */ - avatar?: Maybe; + avatar?: Maybe; /** A biography of the staff member */ - bio?: Maybe; + bio?: Maybe; /** The public display name of the staff member. Preferred over other name fields. */ - displayName: Scalars['String']; + displayName: Scalars["String"]; /** The first name of the staff member. Consider using the display name instead. */ - firstName: Scalars['String']; + firstName: Scalars["String"]; /** The ID of an object */ - id: Scalars['ID']; - insertedAt: Scalars['DateTime']; + id: Scalars["ID"]; + insertedAt: Scalars["DateTime"]; /** The last name of the staff member. Consider using the display name instead. */ - lastName: Scalars['String']; + lastName: Scalars["String"]; /** The nickname of the staff member. Consider using the display name instead. */ - nickname?: Maybe; + nickname?: Maybe; /** The role the staff member holds at the business */ role: StaffRole; - updatedAt: Scalars['DateTime']; + updatedAt: Scalars["DateTime"]; }; /** Staff Role */ export type StaffRole = Node & { - __typename?: 'StaffRole'; + __typename?: "StaffRole"; /** The ID of an object */ - id: Scalars['ID']; + id: Scalars["ID"]; /** Name of the role */ - name: Scalars['String']; + name: Scalars["String"]; }; export type StartCustomFormImageUploadInput = { - filename: Scalars['String']; - locationId: Scalars['ID']; + filename: Scalars["String"]; + locationId: Scalars["ID"]; }; export type StartCustomFormImageUploadResult = { - __typename?: 'StartCustomFormImageUploadResult'; - customFormImageId: Scalars['ID']; - signedPutUrl: Scalars['String']; + __typename?: "StartCustomFormImageUploadResult"; + customFormImageId: Scalars["ID"]; + signedPutUrl: Scalars["String"]; }; export enum SubscriptionStatus { - Active = 'ACTIVE', - Cancelled = 'CANCELLED', - PastDue = 'PAST_DUE', - Paused = 'PAUSED' + Active = "ACTIVE", + Cancelled = "CANCELLED", + PastDue = "PAST_DUE", + Paused = "PAUSED" } export type TakeCartOwnershipByCodeInput = { /** Id of cart to take ownership of */ - cartId: Scalars['String']; + cartId: Scalars["String"]; /** Id of the authorization code */ - cartOwnershipCodeId: Scalars['String']; + cartOwnershipCodeId: Scalars["String"]; /** The code that the client received in their email/SMS */ - cartOwnershipCodeValue: Scalars['Int']; + cartOwnershipCodeValue: Scalars["Int"]; }; export type TakeCartOwnershipByCodePayload = { - __typename?: 'TakeCartOwnershipByCodePayload'; + __typename?: "TakeCartOwnershipByCodePayload"; cart: Cart; }; export type TakeCartOwnershipInput = { /** ID of the cart */ - id: Scalars['ID']; + id: Scalars["ID"]; }; export type TakeCartOwnershipPayload = { - __typename?: 'TakeCartOwnershipPayload'; + __typename?: "TakeCartOwnershipPayload"; cart: Cart; }; - export type UnstableClientPasswordlessAuthRequestCodeInput = { /** ID of the auth method to use */ - methodId: Scalars['String']; + methodId: Scalars["String"]; }; export type UnstableClientPasswordlessAuthRequestCodePayload = { - __typename?: 'UnstableClientPasswordlessAuthRequestCodePayload'; + __typename?: "UnstableClientPasswordlessAuthRequestCodePayload"; /** Request id used along with the code for the login. */ - requestId: Scalars['String']; + requestId: Scalars["String"]; }; export type UnstableClientPasswordlessAuthSignInInput = { /** 6 digit auth code */ - code: Scalars['Int']; + code: Scalars["Int"]; /** Request id used along with the code for the login. */ - requestId: Scalars['String']; + requestId: Scalars["String"]; }; export type UnstableClientPasswordlessAuthSignInPayload = { - __typename?: 'UnstableClientPasswordlessAuthSignInPayload'; + __typename?: "UnstableClientPasswordlessAuthSignInPayload"; /** The client data */ client: Client; /** Token for authenticated client API access */ - token: Scalars['String']; + token: Scalars["String"]; }; /** See `CartItemEmailFulfillment`. */ export type UpdateCartGiftCardItemEmailFulfillmentInput = { - deliveryDate?: Maybe; + deliveryDate?: Maybe; /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** The id of the CartGiftCardItem. */ - itemId: Scalars['ID']; - messageFromSender?: Maybe; - recipientEmail?: Maybe; - recipientName?: Maybe; - senderName?: Maybe; + itemId: Scalars["ID"]; + messageFromSender?: Maybe; + recipientEmail?: Maybe; + recipientName?: Maybe; + senderName?: Maybe; }; export type UpdateCartGiftCardItemEmailFulfillmentPayload = { - __typename?: 'UpdateCartGiftCardItemEmailFulfillmentPayload'; + __typename?: "UpdateCartGiftCardItemEmailFulfillmentPayload"; cart: Cart; emailFulfillment: CartItemEmailFulfillment; }; export type UpdateCartGuestInput = { - email?: Maybe; - firstName?: Maybe; - guestId: Scalars['ID']; - id: Scalars['ID']; - lastName?: Maybe; - phoneNumber?: Maybe; + email?: Maybe; + firstName?: Maybe; + guestId: Scalars["ID"]; + id: Scalars["ID"]; + lastName?: Maybe; + phoneNumber?: Maybe; }; export type UpdateCartGuestPayload = { - __typename?: 'UpdateCartGuestPayload'; + __typename?: "UpdateCartGuestPayload"; cart: Cart; guest: CartGuest; }; @@ -3589,32 +3524,32 @@ export type UpdateCartGuestPayload = { export type UpdateCartInput = { advanceGratuity?: Maybe; clientInformation?: Maybe; - clientMessage?: Maybe; - discountCode?: Maybe; - id: Scalars['ID']; + clientMessage?: Maybe; + discountCode?: Maybe; + id: Scalars["ID"]; /** * Referral source for the appointments booked in the cart. * * This values is mapped to the appointments' 'referral_source' custom * field values after checkout. */ - referralSource?: Maybe; + referralSource?: Maybe; }; export type UpdateCartPayload = { - __typename?: 'UpdateCartPayload'; + __typename?: "UpdateCartPayload"; cart: Cart; }; export type UpdateCartSelectedBookableItemInput = { /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Optional discount code applied to the item. Invalid discount codes are * ignored without an error, check `discountCode` on the selected item to see * if the code was valid. */ - itemDiscountCode?: Maybe; + itemDiscountCode?: Maybe; /** * Optional ID that identifies the guest this item is booked for. A null * value indicates the cart owner, or current client. @@ -3622,87 +3557,87 @@ export type UpdateCartSelectedBookableItemInput = { * When finding available times for bookable items, it's assumed that two * items having different guests can be booked simultaneously. */ - itemGuestId?: Maybe; + itemGuestId?: Maybe; /** ID of the selected bookable item. */ - itemId: Scalars['ID']; + itemId: Scalars["ID"]; /** * Optional IDs of selected bookable item options. Note that the selections * must conform to the option group requirements, e.g. limits on the number * of options. Otherwise an error is returned. */ - itemOptionIds?: Maybe>; + itemOptionIds?: Maybe>; /** Optional ID of the selected bookable item staff variant. */ - itemStaffVariantId?: Maybe; + itemStaffVariantId?: Maybe; }; export type UpdateCartSelectedBookableItemPayload = { - __typename?: 'UpdateCartSelectedBookableItemPayload'; + __typename?: "UpdateCartSelectedBookableItemPayload"; cart: Cart; }; export type UpdateCartSelectedGiftCardItemInput = { /** ID of a valid CartItemGiftCardDesign */ - giftCardDesignId?: Maybe; + giftCardDesignId?: Maybe; /** ID of the cart or token. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** ID of the CartGiftCardItem. */ - itemId: Scalars['ID']; + itemId: Scalars["ID"]; /** * Price applied to the gift card item. See cartAvailableGiftCardItem.minPrice * and maxPrice for limits */ - itemPrice?: Maybe; + itemPrice?: Maybe; }; export type UpdateCartSelectedGiftCardItemPayload = { - __typename?: 'UpdateCartSelectedGiftCardItemPayload'; + __typename?: "UpdateCartSelectedGiftCardItemPayload"; cart: Cart; }; export type UpdateCartSelectedPurchasableItemInput = { /** ID of the cart. */ - id: Scalars['ID']; + id: Scalars["ID"]; /** * Optional discount code applied to the item. Invalid discount codes are * ignored without an error, check `discountCode` on the selected item to see * if the code was valid. */ - itemDiscountCode?: Maybe; + itemDiscountCode?: Maybe; /** ID of the selected purchasable item. */ - itemId: Scalars['ID']; + itemId: Scalars["ID"]; }; export type UpdateCartSelectedPurchasableItemPayload = { - __typename?: 'UpdateCartSelectedPurchasableItemPayload'; + __typename?: "UpdateCartSelectedPurchasableItemPayload"; cart: Cart; }; export type UpdateClientInfoInput = { address?: Maybe; - dob?: Maybe; - emergencyContactName?: Maybe; - emergencyContactPhone?: Maybe; - emergencyContactRelationship?: Maybe; - pronoun?: Maybe; + dob?: Maybe; + emergencyContactName?: Maybe; + emergencyContactPhone?: Maybe; + emergencyContactRelationship?: Maybe; + pronoun?: Maybe; referral?: Maybe; }; export type UpdateClientInfoPayload = { - __typename?: 'UpdateClientInfoPayload'; + __typename?: "UpdateClientInfoPayload"; client?: Maybe; }; export type UpdateClientInput = { - dob?: Maybe; - email?: Maybe; - firstName?: Maybe; - lastName?: Maybe; - mobilePhone?: Maybe; - pronoun?: Maybe; + dob?: Maybe; + email?: Maybe; + firstName?: Maybe; + lastName?: Maybe; + mobilePhone?: Maybe; + pronoun?: Maybe; }; export type UpdateClientPayload = { - __typename?: 'UpdateClientPayload'; + __typename?: "UpdateClientPayload"; client?: Maybe; }; @@ -3711,2338 +3646,5565 @@ export type UpdateCommunicationSubscriptionsInput = { }; export type UpdateCommunicationSubscriptionsPayload = { - __typename?: 'UpdateCommunicationSubscriptionsPayload'; + __typename?: "UpdateCommunicationSubscriptionsPayload"; communicationSubscriptions: Array; - success: Scalars['Boolean']; + success: Scalars["Boolean"]; }; export type UpdateCustomFormInput = { answers?: Maybe>; - id: Scalars['ID']; - offline?: Maybe; - submit?: Maybe; - submittedAt?: Maybe; - void?: Maybe; + id: Scalars["ID"]; + offline?: Maybe; + submit?: Maybe; + submittedAt?: Maybe; + void?: Maybe; }; - export type SendCartOwnershipCodeBySmsMutationVariables = Exact<{ input: SendCartOwnershipCodeBySmsInput; }>; - -export type SendCartOwnershipCodeBySmsMutation = ( - { __typename?: 'RootMutationType' } - & { sendCartOwnershipCodeBySms?: Maybe<( - { __typename?: 'SendCartOwnershipCodeBySmsPayload' } - & Pick - )> } -); +export type SendCartOwnershipCodeBySmsMutation = { + __typename?: "RootMutationType"; +} & { + sendCartOwnershipCodeBySms?: Maybe< + { __typename?: "SendCartOwnershipCodeBySmsPayload" } & Pick< + SendCartOwnershipCodeBySmsPayload, + "cartOwnershipCodeId" + > + >; +}; export type SendCartOwnershipCodeByEmailMutationVariables = Exact<{ input: SendCartOwnershipCodeByEmailInput; }>; - -export type SendCartOwnershipCodeByEmailMutation = ( - { __typename?: 'RootMutationType' } - & { sendCartOwnershipCodeByEmail?: Maybe<( - { __typename?: 'SendCartOwnershipCodeByEmailPayload' } - & Pick - )> } -); +export type SendCartOwnershipCodeByEmailMutation = { + __typename?: "RootMutationType"; +} & { + sendCartOwnershipCodeByEmail?: Maybe< + { __typename?: "SendCartOwnershipCodeByEmailPayload" } & Pick< + SendCartOwnershipCodeByEmailPayload, + "cartOwnershipCodeId" + > + >; +}; export type TakeCartOwnershipByCodeMutationVariables = Exact<{ input: TakeCartOwnershipByCodeInput; }>; - -export type TakeCartOwnershipByCodeMutation = ( - { __typename?: 'RootMutationType' } - & { takeCartOwnershipByCode?: Maybe<( - { __typename?: 'TakeCartOwnershipByCodePayload' } - & { cart: ( - { __typename?: 'Cart' } - & Pick - ) } - )> } -); - +export type TakeCartOwnershipByCodeMutation = { + __typename?: "RootMutationType"; +} & { + takeCartOwnershipByCode?: Maybe< + { __typename?: "TakeCartOwnershipByCodePayload" } & { + cart: { __typename?: "Cart" } & Pick; + } + >; +}; export const SendCartOwnershipCodeBySms = gql` - mutation sendCartOwnershipCodeBySms($input: SendCartOwnershipCodeBySmsInput!) { - sendCartOwnershipCodeBySms(input: $input) { - cartOwnershipCodeId + mutation sendCartOwnershipCodeBySms( + $input: SendCartOwnershipCodeBySmsInput! + ) { + sendCartOwnershipCodeBySms(input: $input) { + cartOwnershipCodeId + } } -} - `; +`; export const SendCartOwnershipCodeByEmail = gql` - mutation sendCartOwnershipCodeByEmail($input: SendCartOwnershipCodeByEmailInput!) { - sendCartOwnershipCodeByEmail(input: $input) { - cartOwnershipCodeId + mutation sendCartOwnershipCodeByEmail( + $input: SendCartOwnershipCodeByEmailInput! + ) { + sendCartOwnershipCodeByEmail(input: $input) { + cartOwnershipCodeId + } } -} - `; +`; export const TakeCartOwnershipByCode = gql` - mutation takeCartOwnershipByCode($input: TakeCartOwnershipByCodeInput!) { - takeCartOwnershipByCode(input: $input) { - cart { - id + mutation takeCartOwnershipByCode($input: TakeCartOwnershipByCodeInput!) { + takeCartOwnershipByCode(input: $input) { + cart { + id + } } } -} - `; +`; export const SendCartOwnershipCodeBySmsDocument = gql` - mutation sendCartOwnershipCodeBySms($input: SendCartOwnershipCodeBySmsInput!) { - sendCartOwnershipCodeBySms(input: $input) { - cartOwnershipCodeId + mutation sendCartOwnershipCodeBySms( + $input: SendCartOwnershipCodeBySmsInput! + ) { + sendCartOwnershipCodeBySms(input: $input) { + cartOwnershipCodeId + } } -} - `; +`; export const SendCartOwnershipCodeByEmailDocument = gql` - mutation sendCartOwnershipCodeByEmail($input: SendCartOwnershipCodeByEmailInput!) { - sendCartOwnershipCodeByEmail(input: $input) { - cartOwnershipCodeId + mutation sendCartOwnershipCodeByEmail( + $input: SendCartOwnershipCodeByEmailInput! + ) { + sendCartOwnershipCodeByEmail(input: $input) { + cartOwnershipCodeId + } } -} - `; +`; export const TakeCartOwnershipByCodeDocument = gql` - mutation takeCartOwnershipByCode($input: TakeCartOwnershipByCodeInput!) { - takeCartOwnershipByCode(input: $input) { - cart { - id + mutation takeCartOwnershipByCode($input: TakeCartOwnershipByCodeInput!) { + takeCartOwnershipByCode(input: $input) { + cart { + id + } } } -} - `; - -export type SdkFunctionWrapper = (action: (requestHeaders?:Record) => Promise, operationName: string) => Promise; +`; +export type SdkFunctionWrapper = ( + action: (requestHeaders?: Record) => Promise, + operationName: string +) => Promise; const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action(); -export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { +export function getSdk( + client: GraphQLClient, + withWrapper: SdkFunctionWrapper = defaultWrapper +) { return { - sendCartOwnershipCodeBySms(variables: SendCartOwnershipCodeBySmsMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { - return withWrapper((wrappedRequestHeaders) => client.request(SendCartOwnershipCodeBySmsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'sendCartOwnershipCodeBySms'); + sendCartOwnershipCodeBySms( + variables: SendCartOwnershipCodeBySmsMutationVariables, + requestHeaders?: Dom.RequestInit["headers"] + ): Promise { + return withWrapper( + wrappedRequestHeaders => + client.request( + SendCartOwnershipCodeBySmsDocument, + variables, + { ...requestHeaders, ...wrappedRequestHeaders } + ), + "sendCartOwnershipCodeBySms" + ); }, - sendCartOwnershipCodeByEmail(variables: SendCartOwnershipCodeByEmailMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { - return withWrapper((wrappedRequestHeaders) => client.request(SendCartOwnershipCodeByEmailDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'sendCartOwnershipCodeByEmail'); + sendCartOwnershipCodeByEmail( + variables: SendCartOwnershipCodeByEmailMutationVariables, + requestHeaders?: Dom.RequestInit["headers"] + ): Promise { + return withWrapper( + wrappedRequestHeaders => + client.request( + SendCartOwnershipCodeByEmailDocument, + variables, + { ...requestHeaders, ...wrappedRequestHeaders } + ), + "sendCartOwnershipCodeByEmail" + ); }, - takeCartOwnershipByCode(variables: TakeCartOwnershipByCodeMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { - return withWrapper((wrappedRequestHeaders) => client.request(TakeCartOwnershipByCodeDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'takeCartOwnershipByCode'); + takeCartOwnershipByCode( + variables: TakeCartOwnershipByCodeMutationVariables, + requestHeaders?: Dom.RequestInit["headers"] + ): Promise { + return withWrapper( + wrappedRequestHeaders => + client.request( + TakeCartOwnershipByCodeDocument, + variables, + { ...requestHeaders, ...wrappedRequestHeaders } + ), + "takeCartOwnershipByCode" + ); } }; } export type Sdk = ReturnType; -export const anAddCartCardPaymentMethodInput = (overrides?: Partial): AddCartCardPaymentMethodInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '5dd6869c-15b0-441e-9221-c1b617715162', - select: overrides && overrides.hasOwnProperty('select') ? overrides.select! : true, - token: overrides && overrides.hasOwnProperty('token') ? overrides.token! : 'e2f84ae2-28e6-492e-8a85-9b6588c5f157', - }; +export const anAddCartCardPaymentMethodInput = ( + overrides?: Partial +): AddCartCardPaymentMethodInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "5dd6869c-15b0-441e-9221-c1b617715162", + select: + overrides && overrides.hasOwnProperty("select") + ? overrides.select! + : true, + token: + overrides && overrides.hasOwnProperty("token") + ? overrides.token! + : "e2f84ae2-28e6-492e-8a85-9b6588c5f157" + }; }; -export const anAddCartCardPaymentMethodPayload = (overrides?: Partial): AddCartCardPaymentMethodPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; +export const anAddCartCardPaymentMethodPayload = ( + overrides?: Partial +): AddCartCardPaymentMethodPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; }; -export const anAddCartOfferInput = (overrides?: Partial): AddCartOfferInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '1f4f839f-de0d-442c-86da-5e08f668a1e3', - offerCode: overrides && overrides.hasOwnProperty('offerCode') ? overrides.offerCode! : 'non', - }; +export const anAddCartOfferInput = ( + overrides?: Partial +): AddCartOfferInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "1f4f839f-de0d-442c-86da-5e08f668a1e3", + offerCode: + overrides && overrides.hasOwnProperty("offerCode") + ? overrides.offerCode! + : "non" + }; }; -export const anAddCartOfferPayload = (overrides?: Partial): AddCartOfferPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - offer: overrides && overrides.hasOwnProperty('offer') ? overrides.offer! : aCartOffer(), - }; +export const anAddCartOfferPayload = ( + overrides?: Partial +): AddCartOfferPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart(), + offer: + overrides && overrides.hasOwnProperty("offer") + ? overrides.offer! + : aCartOffer() + }; }; -export const anAddCartSelectedBookableItemInput = (overrides?: Partial): AddCartSelectedBookableItemInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '2924d7d6-584f-46e7-9a54-e23e76057b17', - itemDiscountCode: overrides && overrides.hasOwnProperty('itemDiscountCode') ? overrides.itemDiscountCode! : 'debitis', - itemGuestId: overrides && overrides.hasOwnProperty('itemGuestId') ? overrides.itemGuestId! : '8f1bf3a0-2aaa-45ff-9eab-55bf1748d47a', - itemId: overrides && overrides.hasOwnProperty('itemId') ? overrides.itemId! : '5f97081f-3719-48e3-b365-36004dd1e812', - itemOptionIds: overrides && overrides.hasOwnProperty('itemOptionIds') ? overrides.itemOptionIds! : ['2329067c-5a98-4e38-8405-1e479d05f057'], - itemStaffVariantId: overrides && overrides.hasOwnProperty('itemStaffVariantId') ? overrides.itemStaffVariantId! : 'b01853f0-a0db-4554-bca6-8a069e3787b9', - }; +export const anAddCartSelectedBookableItemInput = ( + overrides?: Partial +): AddCartSelectedBookableItemInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "2924d7d6-584f-46e7-9a54-e23e76057b17", + itemDiscountCode: + overrides && overrides.hasOwnProperty("itemDiscountCode") + ? overrides.itemDiscountCode! + : "debitis", + itemGuestId: + overrides && overrides.hasOwnProperty("itemGuestId") + ? overrides.itemGuestId! + : "8f1bf3a0-2aaa-45ff-9eab-55bf1748d47a", + itemId: + overrides && overrides.hasOwnProperty("itemId") + ? overrides.itemId! + : "5f97081f-3719-48e3-b365-36004dd1e812", + itemOptionIds: + overrides && overrides.hasOwnProperty("itemOptionIds") + ? overrides.itemOptionIds! + : ["2329067c-5a98-4e38-8405-1e479d05f057"], + itemStaffVariantId: + overrides && overrides.hasOwnProperty("itemStaffVariantId") + ? overrides.itemStaffVariantId! + : "b01853f0-a0db-4554-bca6-8a069e3787b9" + }; }; -export const anAddCartSelectedBookableItemPayload = (overrides?: Partial): AddCartSelectedBookableItemPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; +export const anAddCartSelectedBookableItemPayload = ( + overrides?: Partial +): AddCartSelectedBookableItemPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; }; -export const anAddCartSelectedGiftCardItemInput = (overrides?: Partial): AddCartSelectedGiftCardItemInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'af75ff4d-07ad-43fa-a29b-cf57ab2c5a21', - itemId: overrides && overrides.hasOwnProperty('itemId') ? overrides.itemId! : '1eb57a5a-085f-4262-a007-1dadaccad074', - itemPrice: overrides && overrides.hasOwnProperty('itemPrice') ? overrides.itemPrice! : 'nam', - }; +export const anAddCartSelectedGiftCardItemInput = ( + overrides?: Partial +): AddCartSelectedGiftCardItemInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "af75ff4d-07ad-43fa-a29b-cf57ab2c5a21", + itemId: + overrides && overrides.hasOwnProperty("itemId") + ? overrides.itemId! + : "1eb57a5a-085f-4262-a007-1dadaccad074", + itemPrice: + overrides && overrides.hasOwnProperty("itemPrice") + ? overrides.itemPrice! + : "nam" + }; }; -export const anAddCartSelectedGiftCardItemPayload = (overrides?: Partial): AddCartSelectedGiftCardItemPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; +export const anAddCartSelectedGiftCardItemPayload = ( + overrides?: Partial +): AddCartSelectedGiftCardItemPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; }; -export const anAddCartSelectedPurchasableItemInput = (overrides?: Partial): AddCartSelectedPurchasableItemInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '9cbf379c-88e4-47ca-923a-4a4bcdbc2888', - itemDiscountCode: overrides && overrides.hasOwnProperty('itemDiscountCode') ? overrides.itemDiscountCode! : 'illo', - itemId: overrides && overrides.hasOwnProperty('itemId') ? overrides.itemId! : '1fa32b2f-9ce7-4d51-b815-30b80663fb25', - }; +export const anAddCartSelectedPurchasableItemInput = ( + overrides?: Partial +): AddCartSelectedPurchasableItemInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "9cbf379c-88e4-47ca-923a-4a4bcdbc2888", + itemDiscountCode: + overrides && overrides.hasOwnProperty("itemDiscountCode") + ? overrides.itemDiscountCode! + : "illo", + itemId: + overrides && overrides.hasOwnProperty("itemId") + ? overrides.itemId! + : "1fa32b2f-9ce7-4d51-b815-30b80663fb25" + }; }; -export const anAddCartSelectedPurchasableItemPayload = (overrides?: Partial): AddCartSelectedPurchasableItemPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; +export const anAddCartSelectedPurchasableItemPayload = ( + overrides?: Partial +): AddCartSelectedPurchasableItemPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; }; export const anAddress = (overrides?: Partial
): Address => { - return { - city: overrides && overrides.hasOwnProperty('city') ? overrides.city! : 'amet', - country: overrides && overrides.hasOwnProperty('country') ? overrides.country! : 'non', - line1: overrides && overrides.hasOwnProperty('line1') ? overrides.line1! : 'beatae', - line2: overrides && overrides.hasOwnProperty('line2') ? overrides.line2! : 'itaque', - province: overrides && overrides.hasOwnProperty('province') ? overrides.province! : 'est', - state: overrides && overrides.hasOwnProperty('state') ? overrides.state! : 'non', - zip: overrides && overrides.hasOwnProperty('zip') ? overrides.zip! : 'rerum', - }; -}; - -export const anAddressInput = (overrides?: Partial): AddressInput => { - return { - city: overrides && overrides.hasOwnProperty('city') ? overrides.city! : 'adipisci', - country: overrides && overrides.hasOwnProperty('country') ? overrides.country! : 'autem', - line1: overrides && overrides.hasOwnProperty('line1') ? overrides.line1! : 'porro', - line2: overrides && overrides.hasOwnProperty('line2') ? overrides.line2! : 'exercitationem', - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'fuga', - province: overrides && overrides.hasOwnProperty('province') ? overrides.province! : 'beatae', - state: overrides && overrides.hasOwnProperty('state') ? overrides.state! : 'alias', - zip: overrides && overrides.hasOwnProperty('zip') ? overrides.zip! : 'molestiae', - }; -}; - -export const anAppointment = (overrides?: Partial): Appointment => { - return { - appointmentServiceOptions: overrides && overrides.hasOwnProperty('appointmentServiceOptions') ? overrides.appointmentServiceOptions! : [anAppointmentServiceOption()], - appointmentServices: overrides && overrides.hasOwnProperty('appointmentServices') ? overrides.appointmentServices! : [anAppointmentService()], - calendarLinks: overrides && overrides.hasOwnProperty('calendarLinks') ? overrides.calendarLinks! : aCalendarLinks(), - cancellable: overrides && overrides.hasOwnProperty('cancellable') ? overrides.cancellable! : true, - cancellation: overrides && overrides.hasOwnProperty('cancellation') ? overrides.cancellation! : anAppointmentCancellation(), - cancelled: overrides && overrides.hasOwnProperty('cancelled') ? overrides.cancelled! : true, - client: overrides && overrides.hasOwnProperty('client') ? overrides.client! : aClient(), - clientDuration: overrides && overrides.hasOwnProperty('clientDuration') ? overrides.clientDuration! : 9520, - clientId: overrides && overrides.hasOwnProperty('clientId') ? overrides.clientId! : 'd1e8b066-c7b5-4c7b-a148-0b819fd27b2f', - confirmable: overrides && overrides.hasOwnProperty('confirmable') ? overrides.confirmable! : false, - createdAt: overrides && overrides.hasOwnProperty('createdAt') ? overrides.createdAt! : 'ea', - creditCards: overrides && overrides.hasOwnProperty('creditCards') ? overrides.creditCards! : [aCreditCard()], - customForms: overrides && overrides.hasOwnProperty('customForms') ? overrides.customForms! : [aCustomForm()], - duration: overrides && overrides.hasOwnProperty('duration') ? overrides.duration! : 2893, - endAt: overrides && overrides.hasOwnProperty('endAt') ? overrides.endAt! : 'rem', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '746c73a0-8eae-47e7-a1b2-bcf2b2a0994f', - isGroup: overrides && overrides.hasOwnProperty('isGroup') ? overrides.isGroup! : false, - isRecurring: overrides && overrides.hasOwnProperty('isRecurring') ? overrides.isRecurring! : false, - location: overrides && overrides.hasOwnProperty('location') ? overrides.location! : aLocation(), - locationId: overrides && overrides.hasOwnProperty('locationId') ? overrides.locationId! : '4d2d5ed1-5d55-4a9c-b05e-2cf090b04005', - nonReschedulableReason: overrides && overrides.hasOwnProperty('nonReschedulableReason') ? overrides.nonReschedulableReason! : AppointmentNonReschedulableReason.CancelledAppointment, - notes: overrides && overrides.hasOwnProperty('notes') ? overrides.notes! : 'deleniti', - pendingFormTemplates: overrides && overrides.hasOwnProperty('pendingFormTemplates') ? overrides.pendingFormTemplates! : [aCustomFormTemplate()], - reschedulable: overrides && overrides.hasOwnProperty('reschedulable') ? overrides.reschedulable! : true, - startAt: overrides && overrides.hasOwnProperty('startAt') ? overrides.startAt! : 'ut', - state: overrides && overrides.hasOwnProperty('state') ? overrides.state! : AppointmentState.Active, - }; -}; - -export const anAppointmentAddTagsInput = (overrides?: Partial): AppointmentAddTagsInput => { - return { - cartId: overrides && overrides.hasOwnProperty('cartId') ? overrides.cartId! : 'f85f788b-9049-4c50-a205-c544729299cf', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'd6772139-d0a2-4c3f-b886-4c60f159b749', - tagIds: overrides && overrides.hasOwnProperty('tagIds') ? overrides.tagIds! : ['efb89cf9-b9e5-4f2d-b443-75f35e26e41c'], - }; -}; - -export const anAppointmentAddTagsPayload = (overrides?: Partial): AppointmentAddTagsPayload => { - return { - success: overrides && overrides.hasOwnProperty('success') ? overrides.success! : false, - }; -}; - -export const anAppointmentCancellation = (overrides?: Partial): AppointmentCancellation => { - return { - cancelledAt: overrides && overrides.hasOwnProperty('cancelledAt') ? overrides.cancelledAt! : 'excepturi', - notes: overrides && overrides.hasOwnProperty('notes') ? overrides.notes! : 'repudiandae', - reason: overrides && overrides.hasOwnProperty('reason') ? overrides.reason! : AppointmentCancellationReason.ClientCancel, - }; -}; - -export const anAppointmentConnection = (overrides?: Partial): AppointmentConnection => { - return { - edges: overrides && overrides.hasOwnProperty('edges') ? overrides.edges! : [anAppointmentEdge()], - pageInfo: overrides && overrides.hasOwnProperty('pageInfo') ? overrides.pageInfo! : aPageInfo(), - }; -}; - -export const anAppointmentEdge = (overrides?: Partial): AppointmentEdge => { - return { - cursor: overrides && overrides.hasOwnProperty('cursor') ? overrides.cursor! : 'voluptatem', - node: overrides && overrides.hasOwnProperty('node') ? overrides.node! : anAppointment(), - }; -}; - -export const anAppointmentRescheduleAvailableDatesInput = (overrides?: Partial): AppointmentRescheduleAvailableDatesInput => { - return { - appointmentId: overrides && overrides.hasOwnProperty('appointmentId') ? overrides.appointmentId! : 'b699ec2a-811a-4d7e-b1ac-d2367ac38156', - searchRangeLower: overrides && overrides.hasOwnProperty('searchRangeLower') ? overrides.searchRangeLower! : '1970-07-15', - searchRangeUpper: overrides && overrides.hasOwnProperty('searchRangeUpper') ? overrides.searchRangeUpper! : '2006-08-28', - tz: overrides && overrides.hasOwnProperty('tz') ? overrides.tz! : 'reprehenderit', - }; -}; - -export const anAppointmentRescheduleAvailableDatesPayload = (overrides?: Partial): AppointmentRescheduleAvailableDatesPayload => { - return { - availableDates: overrides && overrides.hasOwnProperty('availableDates') ? overrides.availableDates! : [anAvailableRescheduleDate()], - }; -}; - -export const anAppointmentRescheduleAvailableTimesInput = (overrides?: Partial): AppointmentRescheduleAvailableTimesInput => { - return { - appointmentId: overrides && overrides.hasOwnProperty('appointmentId') ? overrides.appointmentId! : 'b1a785fd-9210-4d37-9f24-fcd69eb00c0b', - date: overrides && overrides.hasOwnProperty('date') ? overrides.date! : '2005-12-15', - tz: overrides && overrides.hasOwnProperty('tz') ? overrides.tz! : 'odit', - }; -}; - -export const anAppointmentRescheduleAvailableTimesPayload = (overrides?: Partial): AppointmentRescheduleAvailableTimesPayload => { - return { - availableTimes: overrides && overrides.hasOwnProperty('availableTimes') ? overrides.availableTimes! : [anAvailableRescheduleTime()], - }; -}; - -export const anAppointmentRescheduleInput = (overrides?: Partial): AppointmentRescheduleInput => { - return { - appointmentId: overrides && overrides.hasOwnProperty('appointmentId') ? overrides.appointmentId! : '2e4e843f-1673-467d-a3aa-a36ecc385516', - bookableTimeId: overrides && overrides.hasOwnProperty('bookableTimeId') ? overrides.bookableTimeId! : '28e2b239-d297-464a-9667-98a63923bcaa', - sendNotification: overrides && overrides.hasOwnProperty('sendNotification') ? overrides.sendNotification! : false, - }; -}; - -export const anAppointmentReschedulePayload = (overrides?: Partial): AppointmentReschedulePayload => { - return { - appointment: overrides && overrides.hasOwnProperty('appointment') ? overrides.appointment! : anAppointment(), - }; -}; - -export const anAppointmentService = (overrides?: Partial): AppointmentService => { - return { - duration: overrides && overrides.hasOwnProperty('duration') ? overrides.duration! : 7365, - endAt: overrides && overrides.hasOwnProperty('endAt') ? overrides.endAt! : 'sit', - price: overrides && overrides.hasOwnProperty('price') ? overrides.price! : 'rerum', - service: overrides && overrides.hasOwnProperty('service') ? overrides.service! : aService(), - serviceId: overrides && overrides.hasOwnProperty('serviceId') ? overrides.serviceId! : 'f7ecb84d-fbe0-4c4f-9d36-9b724982eb85', - staff: overrides && overrides.hasOwnProperty('staff') ? overrides.staff! : aStaff(), - staffId: overrides && overrides.hasOwnProperty('staffId') ? overrides.staffId! : 'b404d686-3ce5-4255-8382-6c7b6e35da22', - staffRequested: overrides && overrides.hasOwnProperty('staffRequested') ? overrides.staffRequested! : true, - startAt: overrides && overrides.hasOwnProperty('startAt') ? overrides.startAt! : 'magni', - startTimeOffset: overrides && overrides.hasOwnProperty('startTimeOffset') ? overrides.startTimeOffset! : 2448, - totalDuration: overrides && overrides.hasOwnProperty('totalDuration') ? overrides.totalDuration! : 7950, - }; + return { + city: + overrides && overrides.hasOwnProperty("city") ? overrides.city! : "amet", + country: + overrides && overrides.hasOwnProperty("country") + ? overrides.country! + : "non", + line1: + overrides && overrides.hasOwnProperty("line1") + ? overrides.line1! + : "beatae", + line2: + overrides && overrides.hasOwnProperty("line2") + ? overrides.line2! + : "itaque", + province: + overrides && overrides.hasOwnProperty("province") + ? overrides.province! + : "est", + state: + overrides && overrides.hasOwnProperty("state") ? overrides.state! : "non", + zip: overrides && overrides.hasOwnProperty("zip") ? overrides.zip! : "rerum" + }; }; -export const anAppointmentServiceOption = (overrides?: Partial): AppointmentServiceOption => { - return { - appointmentServiceId: overrides && overrides.hasOwnProperty('appointmentServiceId') ? overrides.appointmentServiceId! : 'd5320ef6-6e9f-49f5-9c58-5cfbb0239f6a', - durationDelta: overrides && overrides.hasOwnProperty('durationDelta') ? overrides.durationDelta! : 9240, - finishDurationDelta: overrides && overrides.hasOwnProperty('finishDurationDelta') ? overrides.finishDurationDelta! : 231, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '2c298b23-9b8d-44b9-bee7-1fadb8638f66', - postClientDurationDelta: overrides && overrides.hasOwnProperty('postClientDurationDelta') ? overrides.postClientDurationDelta! : 4994, - postStaffDurationDelta: overrides && overrides.hasOwnProperty('postStaffDurationDelta') ? overrides.postStaffDurationDelta! : 5931, - priceDelta: overrides && overrides.hasOwnProperty('priceDelta') ? overrides.priceDelta! : 6007, - serviceOptionId: overrides && overrides.hasOwnProperty('serviceOptionId') ? overrides.serviceOptionId! : '00a015e9-d6e4-4398-976a-36224e1ac6cd', - }; +export const anAddressInput = ( + overrides?: Partial +): AddressInput => { + return { + city: + overrides && overrides.hasOwnProperty("city") + ? overrides.city! + : "adipisci", + country: + overrides && overrides.hasOwnProperty("country") + ? overrides.country! + : "autem", + line1: + overrides && overrides.hasOwnProperty("line1") + ? overrides.line1! + : "porro", + line2: + overrides && overrides.hasOwnProperty("line2") + ? overrides.line2! + : "exercitationem", + name: + overrides && overrides.hasOwnProperty("name") ? overrides.name! : "fuga", + province: + overrides && overrides.hasOwnProperty("province") + ? overrides.province! + : "beatae", + state: + overrides && overrides.hasOwnProperty("state") + ? overrides.state! + : "alias", + zip: + overrides && overrides.hasOwnProperty("zip") + ? overrides.zip! + : "molestiae" + }; }; -export const anAppointmentSort = (overrides?: Partial): AppointmentSort => { - return { - direction: overrides && overrides.hasOwnProperty('direction') ? overrides.direction! : AppointmentSortDirection.Asc, - field: overrides && overrides.hasOwnProperty('field') ? overrides.field! : AppointmentSortField.StartAt, - }; +export const anAppointment = ( + overrides?: Partial +): Appointment => { + return { + appointmentServiceOptions: + overrides && overrides.hasOwnProperty("appointmentServiceOptions") + ? overrides.appointmentServiceOptions! + : [anAppointmentServiceOption()], + appointmentServices: + overrides && overrides.hasOwnProperty("appointmentServices") + ? overrides.appointmentServices! + : [anAppointmentService()], + calendarLinks: + overrides && overrides.hasOwnProperty("calendarLinks") + ? overrides.calendarLinks! + : aCalendarLinks(), + cancellable: + overrides && overrides.hasOwnProperty("cancellable") + ? overrides.cancellable! + : true, + cancellation: + overrides && overrides.hasOwnProperty("cancellation") + ? overrides.cancellation! + : anAppointmentCancellation(), + cancelled: + overrides && overrides.hasOwnProperty("cancelled") + ? overrides.cancelled! + : true, + client: + overrides && overrides.hasOwnProperty("client") + ? overrides.client! + : aClient(), + clientDuration: + overrides && overrides.hasOwnProperty("clientDuration") + ? overrides.clientDuration! + : 9520, + clientId: + overrides && overrides.hasOwnProperty("clientId") + ? overrides.clientId! + : "d1e8b066-c7b5-4c7b-a148-0b819fd27b2f", + confirmable: + overrides && overrides.hasOwnProperty("confirmable") + ? overrides.confirmable! + : false, + createdAt: + overrides && overrides.hasOwnProperty("createdAt") + ? overrides.createdAt! + : "ea", + creditCards: + overrides && overrides.hasOwnProperty("creditCards") + ? overrides.creditCards! + : [aCreditCard()], + customForms: + overrides && overrides.hasOwnProperty("customForms") + ? overrides.customForms! + : [aCustomForm()], + duration: + overrides && overrides.hasOwnProperty("duration") + ? overrides.duration! + : 2893, + endAt: + overrides && overrides.hasOwnProperty("endAt") ? overrides.endAt! : "rem", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "746c73a0-8eae-47e7-a1b2-bcf2b2a0994f", + isGroup: + overrides && overrides.hasOwnProperty("isGroup") + ? overrides.isGroup! + : false, + isRecurring: + overrides && overrides.hasOwnProperty("isRecurring") + ? overrides.isRecurring! + : false, + location: + overrides && overrides.hasOwnProperty("location") + ? overrides.location! + : aLocation(), + locationId: + overrides && overrides.hasOwnProperty("locationId") + ? overrides.locationId! + : "4d2d5ed1-5d55-4a9c-b05e-2cf090b04005", + nonReschedulableReason: + overrides && overrides.hasOwnProperty("nonReschedulableReason") + ? overrides.nonReschedulableReason! + : AppointmentNonReschedulableReason.CancelledAppointment, + notes: + overrides && overrides.hasOwnProperty("notes") + ? overrides.notes! + : "deleniti", + pendingFormTemplates: + overrides && overrides.hasOwnProperty("pendingFormTemplates") + ? overrides.pendingFormTemplates! + : [aCustomFormTemplate()], + reschedulable: + overrides && overrides.hasOwnProperty("reschedulable") + ? overrides.reschedulable! + : true, + startAt: + overrides && overrides.hasOwnProperty("startAt") + ? overrides.startAt! + : "ut", + state: + overrides && overrides.hasOwnProperty("state") + ? overrides.state! + : AppointmentState.Active + }; }; -export const anAuthMethod = (overrides?: Partial): AuthMethod => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'quia', - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'ea', - value: overrides && overrides.hasOwnProperty('value') ? overrides.value! : 'temporibus', - }; +export const anAppointmentAddTagsInput = ( + overrides?: Partial +): AppointmentAddTagsInput => { + return { + cartId: + overrides && overrides.hasOwnProperty("cartId") + ? overrides.cartId! + : "f85f788b-9049-4c50-a205-c544729299cf", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "d6772139-d0a2-4c3f-b886-4c60f159b749", + tagIds: + overrides && overrides.hasOwnProperty("tagIds") + ? overrides.tagIds! + : ["efb89cf9-b9e5-4f2d-b443-75f35e26e41c"] + }; }; -export const anAvailableRescheduleDate = (overrides?: Partial): AvailableRescheduleDate => { - return { - date: overrides && overrides.hasOwnProperty('date') ? overrides.date! : '1973-06-11', - }; +export const anAppointmentAddTagsPayload = ( + overrides?: Partial +): AppointmentAddTagsPayload => { + return { + success: + overrides && overrides.hasOwnProperty("success") + ? overrides.success! + : false + }; }; -export const anAvailableRescheduleTime = (overrides?: Partial): AvailableRescheduleTime => { - return { - bookableTimeId: overrides && overrides.hasOwnProperty('bookableTimeId') ? overrides.bookableTimeId! : '61d361f7-0cff-48a4-9a45-0b51b581adb7', - startTime: overrides && overrides.hasOwnProperty('startTime') ? overrides.startTime! : 'animi', - }; +export const anAppointmentCancellation = ( + overrides?: Partial +): AppointmentCancellation => { + return { + cancelledAt: + overrides && overrides.hasOwnProperty("cancelledAt") + ? overrides.cancelledAt! + : "excepturi", + notes: + overrides && overrides.hasOwnProperty("notes") + ? overrides.notes! + : "repudiandae", + reason: + overrides && overrides.hasOwnProperty("reason") + ? overrides.reason! + : AppointmentCancellationReason.ClientCancel + }; }; -export const aBaseBookableItem = (overrides?: Partial): BaseBookableItem => { - return { - itemId: overrides && overrides.hasOwnProperty('itemId') ? overrides.itemId! : 'c7553a7c-a94d-4cbe-aa9b-f4f9df43c485', - sameStaffVariantRequired: overrides && overrides.hasOwnProperty('sameStaffVariantRequired') ? overrides.sameStaffVariantRequired! : false, - }; +export const anAppointmentConnection = ( + overrides?: Partial +): AppointmentConnection => { + return { + edges: + overrides && overrides.hasOwnProperty("edges") + ? overrides.edges! + : [anAppointmentEdge()], + pageInfo: + overrides && overrides.hasOwnProperty("pageInfo") + ? overrides.pageInfo! + : aPageInfo() + }; }; -export const aBookingQuestionOptionAnswerInput = (overrides?: Partial): BookingQuestionOptionAnswerInput => { - return { - optionId: overrides && overrides.hasOwnProperty('optionId') ? overrides.optionId! : '84ecae13-053c-40f8-99a1-182e51a11954', - }; +export const anAppointmentEdge = ( + overrides?: Partial +): AppointmentEdge => { + return { + cursor: + overrides && overrides.hasOwnProperty("cursor") + ? overrides.cursor! + : "voluptatem", + node: + overrides && overrides.hasOwnProperty("node") + ? overrides.node! + : anAppointment() + }; }; -export const aBusiness = (overrides?: Partial): Business => { - return { - allowLoginWithMultipleClients: overrides && overrides.hasOwnProperty('allowLoginWithMultipleClients') ? overrides.allowLoginWithMultipleClients! : false, - avatar: overrides && overrides.hasOwnProperty('avatar') ? overrides.avatar! : 'quod', - customBookingUrl: overrides && overrides.hasOwnProperty('customBookingUrl') ? overrides.customBookingUrl! : 'ut', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'a2f7ba36-84f2-49e7-a518-ec0b59b44903', - insertedAt: overrides && overrides.hasOwnProperty('insertedAt') ? overrides.insertedAt! : 'qui', - locations: overrides && overrides.hasOwnProperty('locations') ? overrides.locations! : aLocationConnection(), - manageReferralSourcesByLocation: overrides && overrides.hasOwnProperty('manageReferralSourcesByLocation') ? overrides.manageReferralSourcesByLocation! : true, - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'cumque', - onlineGiftCardSettings: overrides && overrides.hasOwnProperty('onlineGiftCardSettings') ? overrides.onlineGiftCardSettings! : anOnlineGiftCardSettings(), - phoneNumber: overrides && overrides.hasOwnProperty('phoneNumber') ? overrides.phoneNumber! : 'qui', - referralSources: overrides && overrides.hasOwnProperty('referralSources') ? overrides.referralSources! : [aReferralSource()], - tz: overrides && overrides.hasOwnProperty('tz') ? overrides.tz! : 'nisi', - updatedAt: overrides && overrides.hasOwnProperty('updatedAt') ? overrides.updatedAt! : 'ducimus', - website: overrides && overrides.hasOwnProperty('website') ? overrides.website! : 'molestias', - }; -}; - -export const aBusinessGiftCardDesign = (overrides?: Partial): BusinessGiftCardDesign => { - return { - design: overrides && overrides.hasOwnProperty('design') ? overrides.design! : aGiftCardDesign(), - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '752cd2fa-ae1a-459e-ae72-6a3b125a1b95', - selected: overrides && overrides.hasOwnProperty('selected') ? overrides.selected! : true, - }; -}; - -export const aCalendarLinks = (overrides?: Partial): CalendarLinks => { - return { - googleCalendar: overrides && overrides.hasOwnProperty('googleCalendar') ? overrides.googleCalendar! : 'beatae', - icsDownload: overrides && overrides.hasOwnProperty('icsDownload') ? overrides.icsDownload! : 'totam', - microsoftOffice: overrides && overrides.hasOwnProperty('microsoftOffice') ? overrides.microsoftOffice! : 'autem', - microsoftOutlook: overrides && overrides.hasOwnProperty('microsoftOutlook') ? overrides.microsoftOutlook! : 'occaecati', - yahooCalendar: overrides && overrides.hasOwnProperty('yahooCalendar') ? overrides.yahooCalendar! : 'nobis', - }; -}; - -export const aCancelAppointmentInput = (overrides?: Partial): CancelAppointmentInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '1e219241-a60f-411e-af71-63f2f6b2a81c', - notes: overrides && overrides.hasOwnProperty('notes') ? overrides.notes! : 'earum', - }; -}; - -export const aCancelAppointmentPayload = (overrides?: Partial): CancelAppointmentPayload => { - return { - appointment: overrides && overrides.hasOwnProperty('appointment') ? overrides.appointment! : anAppointment(), - }; +export const anAppointmentRescheduleAvailableDatesInput = ( + overrides?: Partial +): AppointmentRescheduleAvailableDatesInput => { + return { + appointmentId: + overrides && overrides.hasOwnProperty("appointmentId") + ? overrides.appointmentId! + : "b699ec2a-811a-4d7e-b1ac-d2367ac38156", + searchRangeLower: + overrides && overrides.hasOwnProperty("searchRangeLower") + ? overrides.searchRangeLower! + : "1970-07-15", + searchRangeUpper: + overrides && overrides.hasOwnProperty("searchRangeUpper") + ? overrides.searchRangeUpper! + : "2006-08-28", + tz: + overrides && overrides.hasOwnProperty("tz") + ? overrides.tz! + : "reprehenderit" + }; }; -export const aCart = (overrides?: Partial): Cart => { - return { - advanceGratuity: overrides && overrides.hasOwnProperty('advanceGratuity') ? overrides.advanceGratuity! : aCartAdvanceGratuity(), - availableCategories: overrides && overrides.hasOwnProperty('availableCategories') ? overrides.availableCategories! : [aCartAvailableCategory()], - availableItem: overrides && overrides.hasOwnProperty('availableItem') ? overrides.availableItem! : aCartAvailableItem(), - availablePaymentMethods: overrides && overrides.hasOwnProperty('availablePaymentMethods') ? overrides.availablePaymentMethods! : [aCartItemPaymentMethod()], - bookingQuestions: overrides && overrides.hasOwnProperty('bookingQuestions') ? overrides.bookingQuestions! : [aCartBookingQuestion()], - clientInformation: overrides && overrides.hasOwnProperty('clientInformation') ? overrides.clientInformation! : aCartClientInformation(), - clientMessage: overrides && overrides.hasOwnProperty('clientMessage') ? overrides.clientMessage! : 'ea', - completedAt: overrides && overrides.hasOwnProperty('completedAt') ? overrides.completedAt! : 'voluptas', - endTime: overrides && overrides.hasOwnProperty('endTime') ? overrides.endTime! : 'maiores', - errors: overrides && overrides.hasOwnProperty('errors') ? overrides.errors! : [aCartError()], - expiresAt: overrides && overrides.hasOwnProperty('expiresAt') ? overrides.expiresAt! : 'aut', - features: overrides && overrides.hasOwnProperty('features') ? overrides.features! : aCartFeatures(), - guests: overrides && overrides.hasOwnProperty('guests') ? overrides.guests! : [aCartGuest()], - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '92ecd5c5-8738-44c0-808e-4fd12b86c7c2', - insertedAt: overrides && overrides.hasOwnProperty('insertedAt') ? overrides.insertedAt! : 'quisquam', - location: overrides && overrides.hasOwnProperty('location') ? overrides.location! : aLocation(), - offers: overrides && overrides.hasOwnProperty('offers') ? overrides.offers! : [aCartOffer()], - selectedItem: overrides && overrides.hasOwnProperty('selectedItem') ? overrides.selectedItem! : aCartItem(), - selectedItems: overrides && overrides.hasOwnProperty('selectedItems') ? overrides.selectedItems! : [aCartItem()], - startTime: overrides && overrides.hasOwnProperty('startTime') ? overrides.startTime! : 'magni', - startTimeId: overrides && overrides.hasOwnProperty('startTimeId') ? overrides.startTimeId! : '9f173804-87b8-47ec-9ff3-5ab6e9da9fc3', - summary: overrides && overrides.hasOwnProperty('summary') ? overrides.summary! : aCartSummary(), - updatedAt: overrides && overrides.hasOwnProperty('updatedAt') ? overrides.updatedAt! : 'qui', - }; -}; - -export const aCartAddToWaitlistInput = (overrides?: Partial): CartAddToWaitlistInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '09ce8d80-da71-4fea-a812-f6cc18db62df', - preferredTimeLower: overrides && overrides.hasOwnProperty('preferredTimeLower') ? overrides.preferredTimeLower! : 'aut', - preferredTimeUpper: overrides && overrides.hasOwnProperty('preferredTimeUpper') ? overrides.preferredTimeUpper! : 'maxime', - tz: overrides && overrides.hasOwnProperty('tz') ? overrides.tz! : 'animi', - }; -}; - -export const aCartAddToWaitlistPayload = (overrides?: Partial): CartAddToWaitlistPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; -}; - -export const aCartAdvanceGratuity = (overrides?: Partial): CartAdvanceGratuity => { - return { - fixed: overrides && overrides.hasOwnProperty('fixed') ? overrides.fixed! : 'veniam', - percentage: overrides && overrides.hasOwnProperty('percentage') ? overrides.percentage! : 4.21, - }; -}; - -export const aCartAdvanceGratuityInput = (overrides?: Partial): CartAdvanceGratuityInput => { - return { - fixed: overrides && overrides.hasOwnProperty('fixed') ? overrides.fixed! : 'incidunt', - percentage: overrides && overrides.hasOwnProperty('percentage') ? overrides.percentage! : 9.63, - }; -}; - -export const aCartAppointment = (overrides?: Partial): CartAppointment => { - return { - appointmentId: overrides && overrides.hasOwnProperty('appointmentId') ? overrides.appointmentId! : 'd2416b4e-4af9-4dee-909f-e7be31e1fb34', - clientId: overrides && overrides.hasOwnProperty('clientId') ? overrides.clientId! : '0f384a23-d72a-4cbe-80f5-e926c2ecbd10', - forCartOwner: overrides && overrides.hasOwnProperty('forCartOwner') ? overrides.forCartOwner! : false, - }; -}; - -export const aCartAvailableBookableItem = (overrides?: Partial): CartAvailableBookableItem => { - return { - description: overrides && overrides.hasOwnProperty('description') ? overrides.description! : 'a', - disabled: overrides && overrides.hasOwnProperty('disabled') ? overrides.disabled! : true, - disabledDescription: overrides && overrides.hasOwnProperty('disabledDescription') ? overrides.disabledDescription! : 'quia', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '79531cd2-de03-4ac4-bdcc-ea3b8d4d6451', - listDuration: overrides && overrides.hasOwnProperty('listDuration') ? overrides.listDuration! : 7765, - listDurationRange: overrides && overrides.hasOwnProperty('listDurationRange') ? overrides.listDurationRange! : aCartDurationRange(), - listPrice: overrides && overrides.hasOwnProperty('listPrice') ? overrides.listPrice! : 'non', - listPriceRange: overrides && overrides.hasOwnProperty('listPriceRange') ? overrides.listPriceRange! : aCartPriceRange(), - locationVariants: overrides && overrides.hasOwnProperty('locationVariants') ? overrides.locationVariants! : [aCartAvailableBookableItemLocationVariant()], - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'magnam', - optionGroups: overrides && overrides.hasOwnProperty('optionGroups') ? overrides.optionGroups! : [aCartAvailableBookableItemOptionGroup()], - staffVariants: overrides && overrides.hasOwnProperty('staffVariants') ? overrides.staffVariants! : [aCartAvailableBookableItemStaffVariant()], - variableDuration: overrides && overrides.hasOwnProperty('variableDuration') ? overrides.variableDuration! : false, - variablePrice: overrides && overrides.hasOwnProperty('variablePrice') ? overrides.variablePrice! : false, - }; -}; - -export const aCartAvailableBookableItemLocationVariant = (overrides?: Partial): CartAvailableBookableItemLocationVariant => { - return { - location: overrides && overrides.hasOwnProperty('location') ? overrides.location! : aLocation(), - }; -}; - -export const aCartAvailableBookableItemOption = (overrides?: Partial): CartAvailableBookableItemOption => { - return { - description: overrides && overrides.hasOwnProperty('description') ? overrides.description! : 'deleniti', - durationDelta: overrides && overrides.hasOwnProperty('durationDelta') ? overrides.durationDelta! : 9113, - groupId: overrides && overrides.hasOwnProperty('groupId') ? overrides.groupId! : 'c454717e-a849-41a4-84bb-bcdcdb77da0e', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '90910e46-79cc-4f97-a2b9-ab8e83743ec4', - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'rem', - priceDelta: overrides && overrides.hasOwnProperty('priceDelta') ? overrides.priceDelta! : 'porro', - }; -}; - -export const aCartAvailableBookableItemOptionGroup = (overrides?: Partial): CartAvailableBookableItemOptionGroup => { - return { - description: overrides && overrides.hasOwnProperty('description') ? overrides.description! : 'et', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '460f24eb-9c5a-4d90-b55d-f0bf9c3c0828', - maxLimit: overrides && overrides.hasOwnProperty('maxLimit') ? overrides.maxLimit! : 8470, - minLimit: overrides && overrides.hasOwnProperty('minLimit') ? overrides.minLimit! : 6055, - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'ut', - options: overrides && overrides.hasOwnProperty('options') ? overrides.options! : [aCartAvailableBookableItemOption()], - }; -}; - -export const aCartAvailableBookableItemStaffVariant = (overrides?: Partial): CartAvailableBookableItemStaffVariant => { - return { - duration: overrides && overrides.hasOwnProperty('duration') ? overrides.duration! : 2800, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'ad723bea-e9f9-479f-b39c-682a5215c446', - price: overrides && overrides.hasOwnProperty('price') ? overrides.price! : 'dicta', - staff: overrides && overrides.hasOwnProperty('staff') ? overrides.staff! : aStaff(), - }; -}; - -export const aCartAvailableCategory = (overrides?: Partial): CartAvailableCategory => { - return { - availableItems: overrides && overrides.hasOwnProperty('availableItems') ? overrides.availableItems! : [aCartAvailableItem()], - description: overrides && overrides.hasOwnProperty('description') ? overrides.description! : 'perspiciatis', - disabled: overrides && overrides.hasOwnProperty('disabled') ? overrides.disabled! : true, - disabledDescription: overrides && overrides.hasOwnProperty('disabledDescription') ? overrides.disabledDescription! : 'sit', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '8a2c88f9-f92c-418d-8841-ed90383d6e7b', - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'minima', - }; -}; - -export const aCartAvailableGiftCardItem = (overrides?: Partial): CartAvailableGiftCardItem => { - return { - allowCustomAmounts: overrides && overrides.hasOwnProperty('allowCustomAmounts') ? overrides.allowCustomAmounts! : true, - description: overrides && overrides.hasOwnProperty('description') ? overrides.description! : 'voluptas', - disabled: overrides && overrides.hasOwnProperty('disabled') ? overrides.disabled! : false, - disabledDescription: overrides && overrides.hasOwnProperty('disabledDescription') ? overrides.disabledDescription! : 'et', - giftCardMax: overrides && overrides.hasOwnProperty('giftCardMax') ? overrides.giftCardMax! : 'numquam', - giftCardMin: overrides && overrides.hasOwnProperty('giftCardMin') ? overrides.giftCardMin! : 'laborum', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '5fac2110-f408-4b35-8bb5-0e064f22863f', - listPrice: overrides && overrides.hasOwnProperty('listPrice') ? overrides.listPrice! : 'qui', - listPriceRange: overrides && overrides.hasOwnProperty('listPriceRange') ? overrides.listPriceRange! : aCartPriceRange(), - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'explicabo', - pricePresets: overrides && overrides.hasOwnProperty('pricePresets') ? overrides.pricePresets! : ['animi'], - }; -}; - -export const aCartAvailableItem = (overrides?: Partial): CartAvailableItem => { - return { - description: overrides && overrides.hasOwnProperty('description') ? overrides.description! : 'architecto', - disabled: overrides && overrides.hasOwnProperty('disabled') ? overrides.disabled! : true, - disabledDescription: overrides && overrides.hasOwnProperty('disabledDescription') ? overrides.disabledDescription! : 'assumenda', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '6ff19028-4742-4516-b396-5789d977ca86', - listPrice: overrides && overrides.hasOwnProperty('listPrice') ? overrides.listPrice! : 'sint', - listPriceRange: overrides && overrides.hasOwnProperty('listPriceRange') ? overrides.listPriceRange! : aCartPriceRange(), - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'assumenda', - }; -}; - -export const aCartAvailablePurchasableItem = (overrides?: Partial): CartAvailablePurchasableItem => { - return { - description: overrides && overrides.hasOwnProperty('description') ? overrides.description! : 'harum', - disabled: overrides && overrides.hasOwnProperty('disabled') ? overrides.disabled! : false, - disabledDescription: overrides && overrides.hasOwnProperty('disabledDescription') ? overrides.disabledDescription! : 'sit', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'fb3e5138-2a5b-4eb3-94ba-7dcc04649423', - listPrice: overrides && overrides.hasOwnProperty('listPrice') ? overrides.listPrice! : 'est', - listPriceRange: overrides && overrides.hasOwnProperty('listPriceRange') ? overrides.listPriceRange! : aCartPriceRange(), - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'deserunt', - }; -}; - -export const aCartBookableDate = (overrides?: Partial): CartBookableDate => { - return { - date: overrides && overrides.hasOwnProperty('date') ? overrides.date! : '1976-12-25', - }; -}; - -export const aCartBookableItem = (overrides?: Partial): CartBookableItem => { - return { - addons: overrides && overrides.hasOwnProperty('addons') ? overrides.addons! : [aCartAvailableItem()], - availablePaymentMethods: overrides && overrides.hasOwnProperty('availablePaymentMethods') ? overrides.availablePaymentMethods! : [aCartItemPaymentMethod()], - baseBookableItem: overrides && overrides.hasOwnProperty('baseBookableItem') ? overrides.baseBookableItem! : aBaseBookableItem(), - discountAmount: overrides && overrides.hasOwnProperty('discountAmount') ? overrides.discountAmount! : 'nulla', - discountCode: overrides && overrides.hasOwnProperty('discountCode') ? overrides.discountCode! : 'nam', - errors: overrides && overrides.hasOwnProperty('errors') ? overrides.errors! : [aCartItemError()], - guest: overrides && overrides.hasOwnProperty('guest') ? overrides.guest! : aCartGuest(), - guestId: overrides && overrides.hasOwnProperty('guestId') ? overrides.guestId! : '0d728340-acb2-4e08-922f-85bf1f47343a', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'e9658e65-ef71-4cd0-88bf-9f693da66f61', - item: overrides && overrides.hasOwnProperty('item') ? overrides.item! : aCartAvailableBookableItem(), - lineTotal: overrides && overrides.hasOwnProperty('lineTotal') ? overrides.lineTotal! : 'suscipit', - price: overrides && overrides.hasOwnProperty('price') ? overrides.price! : 'repudiandae', - selectedOptions: overrides && overrides.hasOwnProperty('selectedOptions') ? overrides.selectedOptions! : [aCartAvailableBookableItemOption()], - selectedPaymentMethod: overrides && overrides.hasOwnProperty('selectedPaymentMethod') ? overrides.selectedPaymentMethod! : aCartItemPaymentMethod(), - selectedStaffVariant: overrides && overrides.hasOwnProperty('selectedStaffVariant') ? overrides.selectedStaffVariant! : aCartAvailableBookableItemStaffVariant(), - startTime: overrides && overrides.hasOwnProperty('startTime') ? overrides.startTime! : 'animi', - taxAmount: overrides && overrides.hasOwnProperty('taxAmount') ? overrides.taxAmount! : 'aliquam', - }; -}; - -export const aCartBookableTime = (overrides?: Partial): CartBookableTime => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'fbe82808-aa98-4c7f-b7e1-3d123d4f7b2a', - score: overrides && overrides.hasOwnProperty('score') ? overrides.score! : 6.24, - startTime: overrides && overrides.hasOwnProperty('startTime') ? overrides.startTime! : 'ut', - }; -}; - -export const aCartBookingQuestion = (overrides?: Partial): CartBookingQuestion => { - return { - answer: overrides && overrides.hasOwnProperty('answer') ? overrides.answer! : aCartBookingQuestionBooleanAnswer(), - displayType: overrides && overrides.hasOwnProperty('displayType') ? overrides.displayType! : CartBookingQuestionDisplayType.Boolean, - errors: overrides && overrides.hasOwnProperty('errors') ? overrides.errors! : ['facilis'], - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '82d3901e-c9f8-42fb-a054-0da101143cd9', - key: overrides && overrides.hasOwnProperty('key') ? overrides.key! : 'aut', - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'ratione', - options: overrides && overrides.hasOwnProperty('options') ? overrides.options! : [aCartBookingQuestionOption()], - required: overrides && overrides.hasOwnProperty('required') ? overrides.required! : false, - schema: overrides && overrides.hasOwnProperty('schema') ? overrides.schema! : CartBookingQuestionSchema.Appointment, - valueType: overrides && overrides.hasOwnProperty('valueType') ? overrides.valueType! : CartBookingQuestionValueType.Boolean, - }; -}; - -export const aCartBookingQuestionAddAnswerInput = (overrides?: Partial): CartBookingQuestionAddAnswerInput => { - return { - answer: overrides && overrides.hasOwnProperty('answer') ? overrides.answer! : aCartBookingQuestionAnswerInput(), - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'ee6ef44e-87a8-4e77-805f-07895920f80f', - questionId: overrides && overrides.hasOwnProperty('questionId') ? overrides.questionId! : '36c7a0ad-eb38-4af5-9a90-c8a0fe9810e4', - }; -}; - -export const aCartBookingQuestionAddAnswerPayload = (overrides?: Partial): CartBookingQuestionAddAnswerPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; -}; - -export const aCartBookingQuestionAnswerInput = (overrides?: Partial): CartBookingQuestionAnswerInput => { - return { - booleanValue: overrides && overrides.hasOwnProperty('booleanValue') ? overrides.booleanValue! : false, - datetimeValue: overrides && overrides.hasOwnProperty('datetimeValue') ? overrides.datetimeValue! : 'unde', - floatValue: overrides && overrides.hasOwnProperty('floatValue') ? overrides.floatValue! : 3.91, - integerValue: overrides && overrides.hasOwnProperty('integerValue') ? overrides.integerValue! : 3002, - optionValue: overrides && overrides.hasOwnProperty('optionValue') ? overrides.optionValue! : aBookingQuestionOptionAnswerInput(), - optionValues: overrides && overrides.hasOwnProperty('optionValues') ? overrides.optionValues! : [aBookingQuestionOptionAnswerInput()], - textValue: overrides && overrides.hasOwnProperty('textValue') ? overrides.textValue! : 'nulla', - }; -}; - -export const aCartBookingQuestionBooleanAnswer = (overrides?: Partial): CartBookingQuestionBooleanAnswer => { - return { - booleanValue: overrides && overrides.hasOwnProperty('booleanValue') ? overrides.booleanValue! : true, - }; -}; - -export const aCartBookingQuestionClearAnswerInput = (overrides?: Partial): CartBookingQuestionClearAnswerInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '9e678885-374f-40e6-ac6a-96c027ab5480', - questionId: overrides && overrides.hasOwnProperty('questionId') ? overrides.questionId! : '617b57a1-9351-4580-bcb1-7b66589f1e3f', - }; -}; - -export const aCartBookingQuestionClearAnswerPayload = (overrides?: Partial): CartBookingQuestionClearAnswerPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; +export const anAppointmentRescheduleAvailableDatesPayload = ( + overrides?: Partial +): AppointmentRescheduleAvailableDatesPayload => { + return { + availableDates: + overrides && overrides.hasOwnProperty("availableDates") + ? overrides.availableDates! + : [anAvailableRescheduleDate()] + }; }; -export const aCartBookingQuestionDatetimeAnswer = (overrides?: Partial): CartBookingQuestionDatetimeAnswer => { - return { - datetimeValue: overrides && overrides.hasOwnProperty('datetimeValue') ? overrides.datetimeValue! : 'eveniet', - }; +export const anAppointmentRescheduleAvailableTimesInput = ( + overrides?: Partial +): AppointmentRescheduleAvailableTimesInput => { + return { + appointmentId: + overrides && overrides.hasOwnProperty("appointmentId") + ? overrides.appointmentId! + : "b1a785fd-9210-4d37-9f24-fcd69eb00c0b", + date: + overrides && overrides.hasOwnProperty("date") + ? overrides.date! + : "2005-12-15", + tz: overrides && overrides.hasOwnProperty("tz") ? overrides.tz! : "odit" + }; }; -export const aCartBookingQuestionFloatAnswer = (overrides?: Partial): CartBookingQuestionFloatAnswer => { - return { - floatValue: overrides && overrides.hasOwnProperty('floatValue') ? overrides.floatValue! : 2.74, - }; -}; - -export const aCartBookingQuestionIntegerAnswer = (overrides?: Partial): CartBookingQuestionIntegerAnswer => { - return { - integerValue: overrides && overrides.hasOwnProperty('integerValue') ? overrides.integerValue! : 5568, - }; +export const anAppointmentRescheduleAvailableTimesPayload = ( + overrides?: Partial +): AppointmentRescheduleAvailableTimesPayload => { + return { + availableTimes: + overrides && overrides.hasOwnProperty("availableTimes") + ? overrides.availableTimes! + : [anAvailableRescheduleTime()] + }; }; -export const aCartBookingQuestionMultiSelectAnswer = (overrides?: Partial): CartBookingQuestionMultiSelectAnswer => { - return { - options: overrides && overrides.hasOwnProperty('options') ? overrides.options! : [aCartBookingQuestionOption()], - }; +export const anAppointmentRescheduleInput = ( + overrides?: Partial +): AppointmentRescheduleInput => { + return { + appointmentId: + overrides && overrides.hasOwnProperty("appointmentId") + ? overrides.appointmentId! + : "2e4e843f-1673-467d-a3aa-a36ecc385516", + bookableTimeId: + overrides && overrides.hasOwnProperty("bookableTimeId") + ? overrides.bookableTimeId! + : "28e2b239-d297-464a-9667-98a63923bcaa", + sendNotification: + overrides && overrides.hasOwnProperty("sendNotification") + ? overrides.sendNotification! + : false + }; }; -export const aCartBookingQuestionOption = (overrides?: Partial): CartBookingQuestionOption => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'cd9f7dc2-16cd-4a30-815a-b7b2c9ed7d48', - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'eius', - }; +export const anAppointmentReschedulePayload = ( + overrides?: Partial +): AppointmentReschedulePayload => { + return { + appointment: + overrides && overrides.hasOwnProperty("appointment") + ? overrides.appointment! + : anAppointment() + }; }; -export const aCartBookingQuestionSelectAnswer = (overrides?: Partial): CartBookingQuestionSelectAnswer => { - return { - option: overrides && overrides.hasOwnProperty('option') ? overrides.option! : aCartBookingQuestionOption(), - }; +export const anAppointmentService = ( + overrides?: Partial +): AppointmentService => { + return { + duration: + overrides && overrides.hasOwnProperty("duration") + ? overrides.duration! + : 7365, + endAt: + overrides && overrides.hasOwnProperty("endAt") ? overrides.endAt! : "sit", + price: + overrides && overrides.hasOwnProperty("price") + ? overrides.price! + : "rerum", + service: + overrides && overrides.hasOwnProperty("service") + ? overrides.service! + : aService(), + serviceId: + overrides && overrides.hasOwnProperty("serviceId") + ? overrides.serviceId! + : "f7ecb84d-fbe0-4c4f-9d36-9b724982eb85", + staff: + overrides && overrides.hasOwnProperty("staff") + ? overrides.staff! + : aStaff(), + staffId: + overrides && overrides.hasOwnProperty("staffId") + ? overrides.staffId! + : "b404d686-3ce5-4255-8382-6c7b6e35da22", + staffRequested: + overrides && overrides.hasOwnProperty("staffRequested") + ? overrides.staffRequested! + : true, + startAt: + overrides && overrides.hasOwnProperty("startAt") + ? overrides.startAt! + : "magni", + startTimeOffset: + overrides && overrides.hasOwnProperty("startTimeOffset") + ? overrides.startTimeOffset! + : 2448, + totalDuration: + overrides && overrides.hasOwnProperty("totalDuration") + ? overrides.totalDuration! + : 7950 + }; }; -export const aCartBookingQuestionTextAnswer = (overrides?: Partial): CartBookingQuestionTextAnswer => { - return { - textValue: overrides && overrides.hasOwnProperty('textValue') ? overrides.textValue! : 'eius', - }; +export const anAppointmentServiceOption = ( + overrides?: Partial +): AppointmentServiceOption => { + return { + appointmentServiceId: + overrides && overrides.hasOwnProperty("appointmentServiceId") + ? overrides.appointmentServiceId! + : "d5320ef6-6e9f-49f5-9c58-5cfbb0239f6a", + durationDelta: + overrides && overrides.hasOwnProperty("durationDelta") + ? overrides.durationDelta! + : 9240, + finishDurationDelta: + overrides && overrides.hasOwnProperty("finishDurationDelta") + ? overrides.finishDurationDelta! + : 231, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "2c298b23-9b8d-44b9-bee7-1fadb8638f66", + postClientDurationDelta: + overrides && overrides.hasOwnProperty("postClientDurationDelta") + ? overrides.postClientDurationDelta! + : 4994, + postStaffDurationDelta: + overrides && overrides.hasOwnProperty("postStaffDurationDelta") + ? overrides.postStaffDurationDelta! + : 5931, + priceDelta: + overrides && overrides.hasOwnProperty("priceDelta") + ? overrides.priceDelta! + : 6007, + serviceOptionId: + overrides && overrides.hasOwnProperty("serviceOptionId") + ? overrides.serviceOptionId! + : "00a015e9-d6e4-4398-976a-36224e1ac6cd" + }; }; -export const aCartClearInput = (overrides?: Partial): CartClearInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '6a3a071e-ac4a-402d-bc3e-172db90282c2', - }; +export const anAppointmentSort = ( + overrides?: Partial +): AppointmentSort => { + return { + direction: + overrides && overrides.hasOwnProperty("direction") + ? overrides.direction! + : AppointmentSortDirection.Asc, + field: + overrides && overrides.hasOwnProperty("field") + ? overrides.field! + : AppointmentSortField.StartAt + }; }; -export const aCartClearPayload = (overrides?: Partial): CartClearPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; +export const anAuthMethod = (overrides?: Partial): AuthMethod => { + return { + id: overrides && overrides.hasOwnProperty("id") ? overrides.id! : "quia", + label: + overrides && overrides.hasOwnProperty("label") ? overrides.label! : "ea", + value: + overrides && overrides.hasOwnProperty("value") + ? overrides.value! + : "temporibus" + }; }; -export const aCartClientInformation = (overrides?: Partial): CartClientInformation => { - return { - email: overrides && overrides.hasOwnProperty('email') ? overrides.email! : 'alias', - externalId: overrides && overrides.hasOwnProperty('externalId') ? overrides.externalId! : 'cupiditate', - firstName: overrides && overrides.hasOwnProperty('firstName') ? overrides.firstName! : 'quis', - lastName: overrides && overrides.hasOwnProperty('lastName') ? overrides.lastName! : 'sit', - phoneNumber: overrides && overrides.hasOwnProperty('phoneNumber') ? overrides.phoneNumber! : 'unde', - }; +export const anAvailableRescheduleDate = ( + overrides?: Partial +): AvailableRescheduleDate => { + return { + date: + overrides && overrides.hasOwnProperty("date") + ? overrides.date! + : "1973-06-11" + }; }; -export const aCartClientInformationInput = (overrides?: Partial): CartClientInformationInput => { - return { - email: overrides && overrides.hasOwnProperty('email') ? overrides.email! : 'porro', - externalId: overrides && overrides.hasOwnProperty('externalId') ? overrides.externalId! : 'ut', - firstName: overrides && overrides.hasOwnProperty('firstName') ? overrides.firstName! : 'temporibus', - lastName: overrides && overrides.hasOwnProperty('lastName') ? overrides.lastName! : 'in', - phoneNumber: overrides && overrides.hasOwnProperty('phoneNumber') ? overrides.phoneNumber! : 'labore', - }; +export const anAvailableRescheduleTime = ( + overrides?: Partial +): AvailableRescheduleTime => { + return { + bookableTimeId: + overrides && overrides.hasOwnProperty("bookableTimeId") + ? overrides.bookableTimeId! + : "61d361f7-0cff-48a4-9a45-0b51b581adb7", + startTime: + overrides && overrides.hasOwnProperty("startTime") + ? overrides.startTime! + : "animi" + }; }; -export const aCartDurationRange = (overrides?: Partial): CartDurationRange => { - return { - max: overrides && overrides.hasOwnProperty('max') ? overrides.max! : 2453, - min: overrides && overrides.hasOwnProperty('min') ? overrides.min! : 6965, - variable: overrides && overrides.hasOwnProperty('variable') ? overrides.variable! : false, - }; +export const aBaseBookableItem = ( + overrides?: Partial +): BaseBookableItem => { + return { + itemId: + overrides && overrides.hasOwnProperty("itemId") + ? overrides.itemId! + : "c7553a7c-a94d-4cbe-aa9b-f4f9df43c485", + sameStaffVariantRequired: + overrides && overrides.hasOwnProperty("sameStaffVariantRequired") + ? overrides.sameStaffVariantRequired! + : false + }; }; -export const aCartError = (overrides?: Partial): CartError => { - return { - code: overrides && overrides.hasOwnProperty('code') ? overrides.code! : CartErrorCode.CartBookingQuestionAnswerMissing, - description: overrides && overrides.hasOwnProperty('description') ? overrides.description! : 'omnis', - message: overrides && overrides.hasOwnProperty('message') ? overrides.message! : 'est', - }; -}; - -export const aCartFeatures = (overrides?: Partial): CartFeatures => { - return { - bookingQuestionsEnabled: overrides && overrides.hasOwnProperty('bookingQuestionsEnabled') ? overrides.bookingQuestionsEnabled! : true, - giftCardPurchaseEnabled: overrides && overrides.hasOwnProperty('giftCardPurchaseEnabled') ? overrides.giftCardPurchaseEnabled! : true, - paymentInfoRequired: overrides && overrides.hasOwnProperty('paymentInfoRequired') ? overrides.paymentInfoRequired! : false, - serviceAddonsEnabled: overrides && overrides.hasOwnProperty('serviceAddonsEnabled') ? overrides.serviceAddonsEnabled! : false, - }; -}; - -export const aCartGiftCardItem = (overrides?: Partial): CartGiftCardItem => { - return { - addons: overrides && overrides.hasOwnProperty('addons') ? overrides.addons! : [aCartAvailableItem()], - availablePaymentMethods: overrides && overrides.hasOwnProperty('availablePaymentMethods') ? overrides.availablePaymentMethods! : [aCartItemPaymentMethod()], - discountAmount: overrides && overrides.hasOwnProperty('discountAmount') ? overrides.discountAmount! : 'excepturi', - discountCode: overrides && overrides.hasOwnProperty('discountCode') ? overrides.discountCode! : 'nemo', - emailFulfillment: overrides && overrides.hasOwnProperty('emailFulfillment') ? overrides.emailFulfillment! : aCartItemEmailFulfillment(), - errors: overrides && overrides.hasOwnProperty('errors') ? overrides.errors! : [aCartItemError()], - giftCardDesign: overrides && overrides.hasOwnProperty('giftCardDesign') ? overrides.giftCardDesign! : aCartItemGiftCardDesign(), - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'fd6c0653-c6b9-46b5-8261-f041c0e65446', - item: overrides && overrides.hasOwnProperty('item') ? overrides.item! : aCartAvailableGiftCardItem(), - lineTotal: overrides && overrides.hasOwnProperty('lineTotal') ? overrides.lineTotal! : 'et', - price: overrides && overrides.hasOwnProperty('price') ? overrides.price! : 'impedit', - selectedPaymentMethod: overrides && overrides.hasOwnProperty('selectedPaymentMethod') ? overrides.selectedPaymentMethod! : aCartItemPaymentMethod(), - taxAmount: overrides && overrides.hasOwnProperty('taxAmount') ? overrides.taxAmount! : 'dignissimos', - }; +export const aBookingQuestionOptionAnswerInput = ( + overrides?: Partial +): BookingQuestionOptionAnswerInput => { + return { + optionId: + overrides && overrides.hasOwnProperty("optionId") + ? overrides.optionId! + : "84ecae13-053c-40f8-99a1-182e51a11954" + }; }; -export const aCartGuest = (overrides?: Partial): CartGuest => { - return { - email: overrides && overrides.hasOwnProperty('email') ? overrides.email! : 'excepturi', - firstName: overrides && overrides.hasOwnProperty('firstName') ? overrides.firstName! : 'aut', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'e99ad070-8cef-41ce-b0d5-9829b8cf9a84', - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'atque', - lastName: overrides && overrides.hasOwnProperty('lastName') ? overrides.lastName! : 'illo', - number: overrides && overrides.hasOwnProperty('number') ? overrides.number! : 2555, - phoneNumber: overrides && overrides.hasOwnProperty('phoneNumber') ? overrides.phoneNumber! : 'consequatur', - }; +export const aBusiness = (overrides?: Partial): Business => { + return { + allowLoginWithMultipleClients: + overrides && overrides.hasOwnProperty("allowLoginWithMultipleClients") + ? overrides.allowLoginWithMultipleClients! + : false, + avatar: + overrides && overrides.hasOwnProperty("avatar") + ? overrides.avatar! + : "quod", + customBookingUrl: + overrides && overrides.hasOwnProperty("customBookingUrl") + ? overrides.customBookingUrl! + : "ut", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "a2f7ba36-84f2-49e7-a518-ec0b59b44903", + insertedAt: + overrides && overrides.hasOwnProperty("insertedAt") + ? overrides.insertedAt! + : "qui", + locations: + overrides && overrides.hasOwnProperty("locations") + ? overrides.locations! + : aLocationConnection(), + manageReferralSourcesByLocation: + overrides && overrides.hasOwnProperty("manageReferralSourcesByLocation") + ? overrides.manageReferralSourcesByLocation! + : true, + name: + overrides && overrides.hasOwnProperty("name") + ? overrides.name! + : "cumque", + onlineGiftCardSettings: + overrides && overrides.hasOwnProperty("onlineGiftCardSettings") + ? overrides.onlineGiftCardSettings! + : anOnlineGiftCardSettings(), + phoneNumber: + overrides && overrides.hasOwnProperty("phoneNumber") + ? overrides.phoneNumber! + : "qui", + referralSources: + overrides && overrides.hasOwnProperty("referralSources") + ? overrides.referralSources! + : [aReferralSource()], + tz: overrides && overrides.hasOwnProperty("tz") ? overrides.tz! : "nisi", + updatedAt: + overrides && overrides.hasOwnProperty("updatedAt") + ? overrides.updatedAt! + : "ducimus", + website: + overrides && overrides.hasOwnProperty("website") + ? overrides.website! + : "molestias" + }; }; -export const aCartItem = (overrides?: Partial): CartItem => { - return { - addons: overrides && overrides.hasOwnProperty('addons') ? overrides.addons! : [aCartAvailableItem()], - availablePaymentMethods: overrides && overrides.hasOwnProperty('availablePaymentMethods') ? overrides.availablePaymentMethods! : [aCartItemPaymentMethod()], - discountAmount: overrides && overrides.hasOwnProperty('discountAmount') ? overrides.discountAmount! : 'adipisci', - discountCode: overrides && overrides.hasOwnProperty('discountCode') ? overrides.discountCode! : 'ea', - errors: overrides && overrides.hasOwnProperty('errors') ? overrides.errors! : [aCartItemError()], - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'c0a6e20d-ac48-4d0f-b244-16be13b393de', - item: overrides && overrides.hasOwnProperty('item') ? overrides.item! : aCartAvailableItem(), - lineTotal: overrides && overrides.hasOwnProperty('lineTotal') ? overrides.lineTotal! : 'quasi', - price: overrides && overrides.hasOwnProperty('price') ? overrides.price! : 'molestiae', - selectedPaymentMethod: overrides && overrides.hasOwnProperty('selectedPaymentMethod') ? overrides.selectedPaymentMethod! : aCartItemPaymentMethod(), - taxAmount: overrides && overrides.hasOwnProperty('taxAmount') ? overrides.taxAmount! : 'est', - }; -}; - -export const aCartItemCardPaymentMethod = (overrides?: Partial): CartItemCardPaymentMethod => { - return { - cardBrand: overrides && overrides.hasOwnProperty('cardBrand') ? overrides.cardBrand! : 'voluptas', - cardExpMonth: overrides && overrides.hasOwnProperty('cardExpMonth') ? overrides.cardExpMonth! : 9251, - cardExpYear: overrides && overrides.hasOwnProperty('cardExpYear') ? overrides.cardExpYear! : 1037, - cardHolder: overrides && overrides.hasOwnProperty('cardHolder') ? overrides.cardHolder! : 'quos', - cardIsDefault: overrides && overrides.hasOwnProperty('cardIsDefault') ? overrides.cardIsDefault! : false, - cardLast4: overrides && overrides.hasOwnProperty('cardLast4') ? overrides.cardLast4! : 'corrupti', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '012384a6-5e8b-4116-8656-60f062983a79', - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'fugit', - }; -}; - -export const aCartItemEmailFulfillment = (overrides?: Partial): CartItemEmailFulfillment => { - return { - deliveryDate: overrides && overrides.hasOwnProperty('deliveryDate') ? overrides.deliveryDate! : '1991-05-14', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '485d1fc1-e2eb-4708-a3b5-db85cb8c61ff', - messageFromSender: overrides && overrides.hasOwnProperty('messageFromSender') ? overrides.messageFromSender! : 'perspiciatis', - recipientEmail: overrides && overrides.hasOwnProperty('recipientEmail') ? overrides.recipientEmail! : 'vel', - recipientName: overrides && overrides.hasOwnProperty('recipientName') ? overrides.recipientName! : 'quis', - senderName: overrides && overrides.hasOwnProperty('senderName') ? overrides.senderName! : 'totam', - }; -}; - -export const aCartItemError = (overrides?: Partial): CartItemError => { - return { - code: overrides && overrides.hasOwnProperty('code') ? overrides.code! : CartItemErrorCode.CartMissingItemPaymentMethod, - description: overrides && overrides.hasOwnProperty('description') ? overrides.description! : 'veritatis', - message: overrides && overrides.hasOwnProperty('message') ? overrides.message! : 'sit', - }; -}; - -export const aCartItemGiftCardDesign = (overrides?: Partial): CartItemGiftCardDesign => { - return { - backgroundColor: overrides && overrides.hasOwnProperty('backgroundColor') ? overrides.backgroundColor! : 'ut', - foregroundText: overrides && overrides.hasOwnProperty('foregroundText') ? overrides.foregroundText! : 'aut', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'c3487924-d5ed-42ef-858f-2dd3d200719a', - image: overrides && overrides.hasOwnProperty('image') ? overrides.image! : 'cum', - }; -}; - -export const aCartItemPaymentMethod = (overrides?: Partial): CartItemPaymentMethod => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'ad35f645-97e1-48cf-9e6c-3770fa05c9ed', - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'ut', - }; -}; - -export const aCartItemVoucherPaymentMethod = (overrides?: Partial): CartItemVoucherPaymentMethod => { - return { - availableCount: overrides && overrides.hasOwnProperty('availableCount') ? overrides.availableCount! : 9164, - availableVoucherIds: overrides && overrides.hasOwnProperty('availableVoucherIds') ? overrides.availableVoucherIds! : ['a237ac53-0dfd-4134-9796-b552f9d54002'], - expiresOn: overrides && overrides.hasOwnProperty('expiresOn') ? overrides.expiresOn! : '2014-04-13', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '0db55573-7ecd-4d87-9b88-5ac430da015a', - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'qui', - }; +export const aBusinessGiftCardDesign = ( + overrides?: Partial +): BusinessGiftCardDesign => { + return { + design: + overrides && overrides.hasOwnProperty("design") + ? overrides.design! + : aGiftCardDesign(), + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "752cd2fa-ae1a-459e-ae72-6a3b125a1b95", + selected: + overrides && overrides.hasOwnProperty("selected") + ? overrides.selected! + : true + }; }; -export const aCartOffer = (overrides?: Partial): CartOffer => { - return { - applied: overrides && overrides.hasOwnProperty('applied') ? overrides.applied! : false, - code: overrides && overrides.hasOwnProperty('code') ? overrides.code! : 'qui', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '4981842e-0768-4e79-8f14-b58322dc971a', - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'temporibus', - }; -}; - -export const aCartPriceRange = (overrides?: Partial): CartPriceRange => { - return { - max: overrides && overrides.hasOwnProperty('max') ? overrides.max! : 'et', - min: overrides && overrides.hasOwnProperty('min') ? overrides.min! : 'ipsa', - variable: overrides && overrides.hasOwnProperty('variable') ? overrides.variable! : false, - }; -}; - -export const aCartPurchasableItem = (overrides?: Partial): CartPurchasableItem => { - return { - addons: overrides && overrides.hasOwnProperty('addons') ? overrides.addons! : [aCartAvailableItem()], - availablePaymentMethods: overrides && overrides.hasOwnProperty('availablePaymentMethods') ? overrides.availablePaymentMethods! : [aCartItemPaymentMethod()], - discountAmount: overrides && overrides.hasOwnProperty('discountAmount') ? overrides.discountAmount! : 'id', - discountCode: overrides && overrides.hasOwnProperty('discountCode') ? overrides.discountCode! : 'odio', - errors: overrides && overrides.hasOwnProperty('errors') ? overrides.errors! : [aCartItemError()], - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '3df93967-ad48-408f-b92e-a66c42d471a6', - item: overrides && overrides.hasOwnProperty('item') ? overrides.item! : aCartAvailablePurchasableItem(), - lineTotal: overrides && overrides.hasOwnProperty('lineTotal') ? overrides.lineTotal! : 'eum', - price: overrides && overrides.hasOwnProperty('price') ? overrides.price! : 'eveniet', - selectedPaymentMethod: overrides && overrides.hasOwnProperty('selectedPaymentMethod') ? overrides.selectedPaymentMethod! : aCartItemPaymentMethod(), - taxAmount: overrides && overrides.hasOwnProperty('taxAmount') ? overrides.taxAmount! : 'qui', - }; -}; - -export const aCartSetLocationInput = (overrides?: Partial): CartSetLocationInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '5e4ba3c6-d1e6-463e-89e3-72781101dcbc', - locationId: overrides && overrides.hasOwnProperty('locationId') ? overrides.locationId! : 'a8157f74-51ab-4e9a-bff5-2a8fcab7513c', - }; -}; - -export const aCartSetLocationPayload = (overrides?: Partial): CartSetLocationPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; +export const aCalendarLinks = ( + overrides?: Partial +): CalendarLinks => { + return { + googleCalendar: + overrides && overrides.hasOwnProperty("googleCalendar") + ? overrides.googleCalendar! + : "beatae", + icsDownload: + overrides && overrides.hasOwnProperty("icsDownload") + ? overrides.icsDownload! + : "totam", + microsoftOffice: + overrides && overrides.hasOwnProperty("microsoftOffice") + ? overrides.microsoftOffice! + : "autem", + microsoftOutlook: + overrides && overrides.hasOwnProperty("microsoftOutlook") + ? overrides.microsoftOutlook! + : "occaecati", + yahooCalendar: + overrides && overrides.hasOwnProperty("yahooCalendar") + ? overrides.yahooCalendar! + : "nobis" + }; }; -export const aCartSummary = (overrides?: Partial): CartSummary => { - return { - deposit: overrides && overrides.hasOwnProperty('deposit') ? overrides.deposit! : DepositType.FullDeposit, - depositAmount: overrides && overrides.hasOwnProperty('depositAmount') ? overrides.depositAmount! : 'blanditiis', - discountAmount: overrides && overrides.hasOwnProperty('discountAmount') ? overrides.discountAmount! : 'sed', - gratuityAmount: overrides && overrides.hasOwnProperty('gratuityAmount') ? overrides.gratuityAmount! : 'quia', - paymentMethodRequired: overrides && overrides.hasOwnProperty('paymentMethodRequired') ? overrides.paymentMethodRequired! : false, - roundingAmount: overrides && overrides.hasOwnProperty('roundingAmount') ? overrides.roundingAmount! : 'et', - subtotal: overrides && overrides.hasOwnProperty('subtotal') ? overrides.subtotal! : 'quis', - taxAmount: overrides && overrides.hasOwnProperty('taxAmount') ? overrides.taxAmount! : 'a', - total: overrides && overrides.hasOwnProperty('total') ? overrides.total! : 'ducimus', - }; +export const aCancelAppointmentInput = ( + overrides?: Partial +): CancelAppointmentInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "1e219241-a60f-411e-af71-63f2f6b2a81c", + notes: + overrides && overrides.hasOwnProperty("notes") + ? overrides.notes! + : "earum" + }; }; -export const aCheckoutCartInput = (overrides?: Partial): CheckoutCartInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '6e9ccdf8-a952-454c-817e-c88cdfc53f80', - }; +export const aCancelAppointmentPayload = ( + overrides?: Partial +): CancelAppointmentPayload => { + return { + appointment: + overrides && overrides.hasOwnProperty("appointment") + ? overrides.appointment! + : anAppointment() + }; }; -export const aCheckoutCartPayload = (overrides?: Partial): CheckoutCartPayload => { - return { - appointments: overrides && overrides.hasOwnProperty('appointments') ? overrides.appointments! : [aCartAppointment()], - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; +export const aCart = (overrides?: Partial): Cart => { + return { + advanceGratuity: + overrides && overrides.hasOwnProperty("advanceGratuity") + ? overrides.advanceGratuity! + : aCartAdvanceGratuity(), + availableCategories: + overrides && overrides.hasOwnProperty("availableCategories") + ? overrides.availableCategories! + : [aCartAvailableCategory()], + availableItem: + overrides && overrides.hasOwnProperty("availableItem") + ? overrides.availableItem! + : aCartAvailableItem(), + availablePaymentMethods: + overrides && overrides.hasOwnProperty("availablePaymentMethods") + ? overrides.availablePaymentMethods! + : [aCartItemPaymentMethod()], + bookingQuestions: + overrides && overrides.hasOwnProperty("bookingQuestions") + ? overrides.bookingQuestions! + : [aCartBookingQuestion()], + clientInformation: + overrides && overrides.hasOwnProperty("clientInformation") + ? overrides.clientInformation! + : aCartClientInformation(), + clientMessage: + overrides && overrides.hasOwnProperty("clientMessage") + ? overrides.clientMessage! + : "ea", + completedAt: + overrides && overrides.hasOwnProperty("completedAt") + ? overrides.completedAt! + : "voluptas", + endTime: + overrides && overrides.hasOwnProperty("endTime") + ? overrides.endTime! + : "maiores", + errors: + overrides && overrides.hasOwnProperty("errors") + ? overrides.errors! + : [aCartError()], + expiresAt: + overrides && overrides.hasOwnProperty("expiresAt") + ? overrides.expiresAt! + : "aut", + features: + overrides && overrides.hasOwnProperty("features") + ? overrides.features! + : aCartFeatures(), + guests: + overrides && overrides.hasOwnProperty("guests") + ? overrides.guests! + : [aCartGuest()], + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "92ecd5c5-8738-44c0-808e-4fd12b86c7c2", + insertedAt: + overrides && overrides.hasOwnProperty("insertedAt") + ? overrides.insertedAt! + : "quisquam", + location: + overrides && overrides.hasOwnProperty("location") + ? overrides.location! + : aLocation(), + offers: + overrides && overrides.hasOwnProperty("offers") + ? overrides.offers! + : [aCartOffer()], + selectedItem: + overrides && overrides.hasOwnProperty("selectedItem") + ? overrides.selectedItem! + : aCartItem(), + selectedItems: + overrides && overrides.hasOwnProperty("selectedItems") + ? overrides.selectedItems! + : [aCartItem()], + startTime: + overrides && overrides.hasOwnProperty("startTime") + ? overrides.startTime! + : "magni", + startTimeId: + overrides && overrides.hasOwnProperty("startTimeId") + ? overrides.startTimeId! + : "9f173804-87b8-47ec-9ff3-5ab6e9da9fc3", + summary: + overrides && overrides.hasOwnProperty("summary") + ? overrides.summary! + : aCartSummary(), + updatedAt: + overrides && overrides.hasOwnProperty("updatedAt") + ? overrides.updatedAt! + : "qui" + }; }; -export const aClient = (overrides?: Partial): Client => { - return { - communicationSubscriptions: overrides && overrides.hasOwnProperty('communicationSubscriptions') ? overrides.communicationSubscriptions! : [aCommunicationSubscription()], - email: overrides && overrides.hasOwnProperty('email') ? overrides.email! : 'molestias', - firstName: overrides && overrides.hasOwnProperty('firstName') ? overrides.firstName! : 'eaque', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'c884717e-580f-4651-a68e-705d18cd7f0e', - insertedAt: overrides && overrides.hasOwnProperty('insertedAt') ? overrides.insertedAt! : 'officia', - lastName: overrides && overrides.hasOwnProperty('lastName') ? overrides.lastName! : 'perspiciatis', - mobilePhone: overrides && overrides.hasOwnProperty('mobilePhone') ? overrides.mobilePhone! : 'rerum', - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'nihil', - pronoun: overrides && overrides.hasOwnProperty('pronoun') ? overrides.pronoun! : 'sit', - updatedAt: overrides && overrides.hasOwnProperty('updatedAt') ? overrides.updatedAt! : 'ut', - }; +export const aCartAddToWaitlistInput = ( + overrides?: Partial +): CartAddToWaitlistInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "09ce8d80-da71-4fea-a812-f6cc18db62df", + preferredTimeLower: + overrides && overrides.hasOwnProperty("preferredTimeLower") + ? overrides.preferredTimeLower! + : "aut", + preferredTimeUpper: + overrides && overrides.hasOwnProperty("preferredTimeUpper") + ? overrides.preferredTimeUpper! + : "maxime", + tz: overrides && overrides.hasOwnProperty("tz") ? overrides.tz! : "animi" + }; }; -export const aClientNote = (overrides?: Partial): ClientNote => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'd45fa612-40b6-40fd-ab8f-40576cc7ede1', - insertedAt: overrides && overrides.hasOwnProperty('insertedAt') ? overrides.insertedAt! : 'natus', - text: overrides && overrides.hasOwnProperty('text') ? overrides.text! : 'incidunt', - type: overrides && overrides.hasOwnProperty('type') ? overrides.type! : NoteType.Allergy, - updatedAt: overrides && overrides.hasOwnProperty('updatedAt') ? overrides.updatedAt! : 'doloribus', - }; -}; - -export const aCommunicationChannelPreference = (overrides?: Partial): CommunicationChannelPreference => { - return { - communicationChannel: overrides && overrides.hasOwnProperty('communicationChannel') ? overrides.communicationChannel! : CommunicationChannel.Email, - enabled: overrides && overrides.hasOwnProperty('enabled') ? overrides.enabled! : true, - }; -}; - -export const aCommunicationSubscription = (overrides?: Partial): CommunicationSubscription => { - return { - communicationChannelPreferences: overrides && overrides.hasOwnProperty('communicationChannelPreferences') ? overrides.communicationChannelPreferences! : [aCommunicationChannelPreference()], - description: overrides && overrides.hasOwnProperty('description') ? overrides.description! : 'dolorum', - key: overrides && overrides.hasOwnProperty('key') ? overrides.key! : CommunicationKey.AppointmentReminder, - title: overrides && overrides.hasOwnProperty('title') ? overrides.title! : 'dolores', - }; +export const aCartAddToWaitlistPayload = ( + overrides?: Partial +): CartAddToWaitlistPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; }; -export const aCommunicationSubscriptionInput = (overrides?: Partial): CommunicationSubscriptionInput => { - return { - channel: overrides && overrides.hasOwnProperty('channel') ? overrides.channel! : CommunicationChannel.Email, - enabled: overrides && overrides.hasOwnProperty('enabled') ? overrides.enabled! : false, - key: overrides && overrides.hasOwnProperty('key') ? overrides.key! : CommunicationKey.AppointmentReminder, - }; -}; - -export const aConfirmAppointmentInput = (overrides?: Partial): ConfirmAppointmentInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '384c3c41-c7aa-424b-8a45-6fa9a8d6923f', - }; +export const aCartAdvanceGratuity = ( + overrides?: Partial +): CartAdvanceGratuity => { + return { + fixed: + overrides && overrides.hasOwnProperty("fixed") + ? overrides.fixed! + : "veniam", + percentage: + overrides && overrides.hasOwnProperty("percentage") + ? overrides.percentage! + : 4.21 + }; }; -export const aConfirmAppointmentPayload = (overrides?: Partial): ConfirmAppointmentPayload => { - return { - appointment: overrides && overrides.hasOwnProperty('appointment') ? overrides.appointment! : anAppointment(), - }; +export const aCartAdvanceGratuityInput = ( + overrides?: Partial +): CartAdvanceGratuityInput => { + return { + fixed: + overrides && overrides.hasOwnProperty("fixed") + ? overrides.fixed! + : "incidunt", + percentage: + overrides && overrides.hasOwnProperty("percentage") + ? overrides.percentage! + : 9.63 + }; }; -export const aCreateCartGiftCardItemEmailFulfillmentInput = (overrides?: Partial): CreateCartGiftCardItemEmailFulfillmentInput => { - return { - deliveryDate: overrides && overrides.hasOwnProperty('deliveryDate') ? overrides.deliveryDate! : '2001-04-25', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'a42f1a85-0f55-48a7-95cd-918a7d0ce82e', - itemId: overrides && overrides.hasOwnProperty('itemId') ? overrides.itemId! : '6df8c5a0-66ae-472d-95d3-fd5dee41d9e6', - messageFromSender: overrides && overrides.hasOwnProperty('messageFromSender') ? overrides.messageFromSender! : 'molestiae', - recipientEmail: overrides && overrides.hasOwnProperty('recipientEmail') ? overrides.recipientEmail! : 'harum', - recipientName: overrides && overrides.hasOwnProperty('recipientName') ? overrides.recipientName! : 'maiores', - senderName: overrides && overrides.hasOwnProperty('senderName') ? overrides.senderName! : 'doloribus', - }; +export const aCartAppointment = ( + overrides?: Partial +): CartAppointment => { + return { + appointmentId: + overrides && overrides.hasOwnProperty("appointmentId") + ? overrides.appointmentId! + : "d2416b4e-4af9-4dee-909f-e7be31e1fb34", + clientId: + overrides && overrides.hasOwnProperty("clientId") + ? overrides.clientId! + : "0f384a23-d72a-4cbe-80f5-e926c2ecbd10", + forCartOwner: + overrides && overrides.hasOwnProperty("forCartOwner") + ? overrides.forCartOwner! + : false + }; }; -export const aCreateCartGiftCardItemEmailFulfillmentPayload = (overrides?: Partial): CreateCartGiftCardItemEmailFulfillmentPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - emailFulfillment: overrides && overrides.hasOwnProperty('emailFulfillment') ? overrides.emailFulfillment! : aCartItemEmailFulfillment(), - }; +export const aCartAvailableBookableItem = ( + overrides?: Partial +): CartAvailableBookableItem => { + return { + description: + overrides && overrides.hasOwnProperty("description") + ? overrides.description! + : "a", + disabled: + overrides && overrides.hasOwnProperty("disabled") + ? overrides.disabled! + : true, + disabledDescription: + overrides && overrides.hasOwnProperty("disabledDescription") + ? overrides.disabledDescription! + : "quia", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "79531cd2-de03-4ac4-bdcc-ea3b8d4d6451", + listDuration: + overrides && overrides.hasOwnProperty("listDuration") + ? overrides.listDuration! + : 7765, + listDurationRange: + overrides && overrides.hasOwnProperty("listDurationRange") + ? overrides.listDurationRange! + : aCartDurationRange(), + listPrice: + overrides && overrides.hasOwnProperty("listPrice") + ? overrides.listPrice! + : "non", + listPriceRange: + overrides && overrides.hasOwnProperty("listPriceRange") + ? overrides.listPriceRange! + : aCartPriceRange(), + locationVariants: + overrides && overrides.hasOwnProperty("locationVariants") + ? overrides.locationVariants! + : [aCartAvailableBookableItemLocationVariant()], + name: + overrides && overrides.hasOwnProperty("name") + ? overrides.name! + : "magnam", + optionGroups: + overrides && overrides.hasOwnProperty("optionGroups") + ? overrides.optionGroups! + : [aCartAvailableBookableItemOptionGroup()], + staffVariants: + overrides && overrides.hasOwnProperty("staffVariants") + ? overrides.staffVariants! + : [aCartAvailableBookableItemStaffVariant()], + variableDuration: + overrides && overrides.hasOwnProperty("variableDuration") + ? overrides.variableDuration! + : false, + variablePrice: + overrides && overrides.hasOwnProperty("variablePrice") + ? overrides.variablePrice! + : false + }; }; -export const aCreateCartGuestInput = (overrides?: Partial): CreateCartGuestInput => { - return { - email: overrides && overrides.hasOwnProperty('email') ? overrides.email! : 'illum', - firstName: overrides && overrides.hasOwnProperty('firstName') ? overrides.firstName! : 'ratione', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '7d2a124b-ca45-42ce-b3e8-59fbf3793f6c', - lastName: overrides && overrides.hasOwnProperty('lastName') ? overrides.lastName! : 'sapiente', - phoneNumber: overrides && overrides.hasOwnProperty('phoneNumber') ? overrides.phoneNumber! : 'quod', - }; +export const aCartAvailableBookableItemLocationVariant = ( + overrides?: Partial +): CartAvailableBookableItemLocationVariant => { + return { + location: + overrides && overrides.hasOwnProperty("location") + ? overrides.location! + : aLocation() + }; }; -export const aCreateCartGuestPayload = (overrides?: Partial): CreateCartGuestPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - guest: overrides && overrides.hasOwnProperty('guest') ? overrides.guest! : aCartGuest(), - }; +export const aCartAvailableBookableItemOption = ( + overrides?: Partial +): CartAvailableBookableItemOption => { + return { + description: + overrides && overrides.hasOwnProperty("description") + ? overrides.description! + : "deleniti", + durationDelta: + overrides && overrides.hasOwnProperty("durationDelta") + ? overrides.durationDelta! + : 9113, + groupId: + overrides && overrides.hasOwnProperty("groupId") + ? overrides.groupId! + : "c454717e-a849-41a4-84bb-bcdcdb77da0e", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "90910e46-79cc-4f97-a2b9-ab8e83743ec4", + name: + overrides && overrides.hasOwnProperty("name") ? overrides.name! : "rem", + priceDelta: + overrides && overrides.hasOwnProperty("priceDelta") + ? overrides.priceDelta! + : "porro" + }; }; -export const aCreateCartInput = (overrides?: Partial): CreateCartInput => { - return { - advanceGratuity: overrides && overrides.hasOwnProperty('advanceGratuity') ? overrides.advanceGratuity! : aCartAdvanceGratuityInput(), - clientInformation: overrides && overrides.hasOwnProperty('clientInformation') ? overrides.clientInformation! : aCartClientInformationInput(), - clientMessage: overrides && overrides.hasOwnProperty('clientMessage') ? overrides.clientMessage! : 'consequatur', - discountCode: overrides && overrides.hasOwnProperty('discountCode') ? overrides.discountCode! : 'cumque', - locationId: overrides && overrides.hasOwnProperty('locationId') ? overrides.locationId! : '72d57caf-a053-423a-884f-644b8bbfec80', - referralSource: overrides && overrides.hasOwnProperty('referralSource') ? overrides.referralSource! : 'omnis', - }; +export const aCartAvailableBookableItemOptionGroup = ( + overrides?: Partial +): CartAvailableBookableItemOptionGroup => { + return { + description: + overrides && overrides.hasOwnProperty("description") + ? overrides.description! + : "et", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "460f24eb-9c5a-4d90-b55d-f0bf9c3c0828", + maxLimit: + overrides && overrides.hasOwnProperty("maxLimit") + ? overrides.maxLimit! + : 8470, + minLimit: + overrides && overrides.hasOwnProperty("minLimit") + ? overrides.minLimit! + : 6055, + name: + overrides && overrides.hasOwnProperty("name") ? overrides.name! : "ut", + options: + overrides && overrides.hasOwnProperty("options") + ? overrides.options! + : [aCartAvailableBookableItemOption()] + }; }; -export const aCreateCartPayload = (overrides?: Partial): CreateCartPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; +export const aCartAvailableBookableItemStaffVariant = ( + overrides?: Partial +): CartAvailableBookableItemStaffVariant => { + return { + duration: + overrides && overrides.hasOwnProperty("duration") + ? overrides.duration! + : 2800, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "ad723bea-e9f9-479f-b39c-682a5215c446", + price: + overrides && overrides.hasOwnProperty("price") + ? overrides.price! + : "dicta", + staff: + overrides && overrides.hasOwnProperty("staff") + ? overrides.staff! + : aStaff() + }; }; -export const aCreateClientNoteInput = (overrides?: Partial): CreateClientNoteInput => { - return { - text: overrides && overrides.hasOwnProperty('text') ? overrides.text! : 'ut', - type: overrides && overrides.hasOwnProperty('type') ? overrides.type! : NoteType.Allergy, - }; +export const aCartAvailableCategory = ( + overrides?: Partial +): CartAvailableCategory => { + return { + availableItems: + overrides && overrides.hasOwnProperty("availableItems") + ? overrides.availableItems! + : [aCartAvailableItem()], + description: + overrides && overrides.hasOwnProperty("description") + ? overrides.description! + : "perspiciatis", + disabled: + overrides && overrides.hasOwnProperty("disabled") + ? overrides.disabled! + : true, + disabledDescription: + overrides && overrides.hasOwnProperty("disabledDescription") + ? overrides.disabledDescription! + : "sit", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "8a2c88f9-f92c-418d-8841-ed90383d6e7b", + name: + overrides && overrides.hasOwnProperty("name") ? overrides.name! : "minima" + }; }; -export const aCreateClientNotePayload = (overrides?: Partial): CreateClientNotePayload => { - return { - clientNote: overrides && overrides.hasOwnProperty('clientNote') ? overrides.clientNote! : aClientNote(), - }; +export const aCartAvailableGiftCardItem = ( + overrides?: Partial +): CartAvailableGiftCardItem => { + return { + allowCustomAmounts: + overrides && overrides.hasOwnProperty("allowCustomAmounts") + ? overrides.allowCustomAmounts! + : true, + description: + overrides && overrides.hasOwnProperty("description") + ? overrides.description! + : "voluptas", + disabled: + overrides && overrides.hasOwnProperty("disabled") + ? overrides.disabled! + : false, + disabledDescription: + overrides && overrides.hasOwnProperty("disabledDescription") + ? overrides.disabledDescription! + : "et", + giftCardMax: + overrides && overrides.hasOwnProperty("giftCardMax") + ? overrides.giftCardMax! + : "numquam", + giftCardMin: + overrides && overrides.hasOwnProperty("giftCardMin") + ? overrides.giftCardMin! + : "laborum", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "5fac2110-f408-4b35-8bb5-0e064f22863f", + listPrice: + overrides && overrides.hasOwnProperty("listPrice") + ? overrides.listPrice! + : "qui", + listPriceRange: + overrides && overrides.hasOwnProperty("listPriceRange") + ? overrides.listPriceRange! + : aCartPriceRange(), + name: + overrides && overrides.hasOwnProperty("name") + ? overrides.name! + : "explicabo", + pricePresets: + overrides && overrides.hasOwnProperty("pricePresets") + ? overrides.pricePresets! + : ["animi"] + }; }; -export const aCreateCreditCardInput = (overrides?: Partial): CreateCreditCardInput => { - return { - nickname: overrides && overrides.hasOwnProperty('nickname') ? overrides.nickname! : 'saepe', - vaultToken: overrides && overrides.hasOwnProperty('vaultToken') ? overrides.vaultToken! : 'enim', - }; +export const aCartAvailableItem = ( + overrides?: Partial +): CartAvailableItem => { + return { + description: + overrides && overrides.hasOwnProperty("description") + ? overrides.description! + : "architecto", + disabled: + overrides && overrides.hasOwnProperty("disabled") + ? overrides.disabled! + : true, + disabledDescription: + overrides && overrides.hasOwnProperty("disabledDescription") + ? overrides.disabledDescription! + : "assumenda", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "6ff19028-4742-4516-b396-5789d977ca86", + listPrice: + overrides && overrides.hasOwnProperty("listPrice") + ? overrides.listPrice! + : "sint", + listPriceRange: + overrides && overrides.hasOwnProperty("listPriceRange") + ? overrides.listPriceRange! + : aCartPriceRange(), + name: + overrides && overrides.hasOwnProperty("name") + ? overrides.name! + : "assumenda" + }; }; -export const aCreateCreditCardResult = (overrides?: Partial): CreateCreditCardResult => { - return { - creditCard: overrides && overrides.hasOwnProperty('creditCard') ? overrides.creditCard! : aCreditCard(), - }; +export const aCartAvailablePurchasableItem = ( + overrides?: Partial +): CartAvailablePurchasableItem => { + return { + description: + overrides && overrides.hasOwnProperty("description") + ? overrides.description! + : "harum", + disabled: + overrides && overrides.hasOwnProperty("disabled") + ? overrides.disabled! + : false, + disabledDescription: + overrides && overrides.hasOwnProperty("disabledDescription") + ? overrides.disabledDescription! + : "sit", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "fb3e5138-2a5b-4eb3-94ba-7dcc04649423", + listPrice: + overrides && overrides.hasOwnProperty("listPrice") + ? overrides.listPrice! + : "est", + listPriceRange: + overrides && overrides.hasOwnProperty("listPriceRange") + ? overrides.listPriceRange! + : aCartPriceRange(), + name: + overrides && overrides.hasOwnProperty("name") + ? overrides.name! + : "deserunt" + }; }; -export const aCreateCustomFormInput = (overrides?: Partial): CreateCustomFormInput => { - return { - answers: overrides && overrides.hasOwnProperty('answers') ? overrides.answers! : [aCustomFormAnswer()], - appointmentId: overrides && overrides.hasOwnProperty('appointmentId') ? overrides.appointmentId! : 'ce074b34-4542-479e-a282-9349074546b7', - offline: overrides && overrides.hasOwnProperty('offline') ? overrides.offline! : false, - submit: overrides && overrides.hasOwnProperty('submit') ? overrides.submit! : false, - submittedAt: overrides && overrides.hasOwnProperty('submittedAt') ? overrides.submittedAt! : 'voluptatibus', - versionId: overrides && overrides.hasOwnProperty('versionId') ? overrides.versionId! : '2f93a17f-e77c-45cd-8bee-83c8de19ebb0', - }; +export const aCartBookableDate = ( + overrides?: Partial +): CartBookableDate => { + return { + date: + overrides && overrides.hasOwnProperty("date") + ? overrides.date! + : "1976-12-25" + }; }; -export const aCreditCard = (overrides?: Partial): CreditCard => { - return { - brand: overrides && overrides.hasOwnProperty('brand') ? overrides.brand! : CardBrand.Amex, - expMonth: overrides && overrides.hasOwnProperty('expMonth') ? overrides.expMonth! : 4649, - expYear: overrides && overrides.hasOwnProperty('expYear') ? overrides.expYear! : 6696, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'a760a67f-55cf-493e-b870-36139c4bfbf6', - isExpired: overrides && overrides.hasOwnProperty('isExpired') ? overrides.isExpired! : false, - last4: overrides && overrides.hasOwnProperty('last4') ? overrides.last4! : 'illo', - }; +export const aCartBookableItem = ( + overrides?: Partial +): CartBookableItem => { + return { + addons: + overrides && overrides.hasOwnProperty("addons") + ? overrides.addons! + : [aCartAvailableItem()], + availablePaymentMethods: + overrides && overrides.hasOwnProperty("availablePaymentMethods") + ? overrides.availablePaymentMethods! + : [aCartItemPaymentMethod()], + baseBookableItem: + overrides && overrides.hasOwnProperty("baseBookableItem") + ? overrides.baseBookableItem! + : aBaseBookableItem(), + discountAmount: + overrides && overrides.hasOwnProperty("discountAmount") + ? overrides.discountAmount! + : "nulla", + discountCode: + overrides && overrides.hasOwnProperty("discountCode") + ? overrides.discountCode! + : "nam", + errors: + overrides && overrides.hasOwnProperty("errors") + ? overrides.errors! + : [aCartItemError()], + guest: + overrides && overrides.hasOwnProperty("guest") + ? overrides.guest! + : aCartGuest(), + guestId: + overrides && overrides.hasOwnProperty("guestId") + ? overrides.guestId! + : "0d728340-acb2-4e08-922f-85bf1f47343a", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "e9658e65-ef71-4cd0-88bf-9f693da66f61", + item: + overrides && overrides.hasOwnProperty("item") + ? overrides.item! + : aCartAvailableBookableItem(), + lineTotal: + overrides && overrides.hasOwnProperty("lineTotal") + ? overrides.lineTotal! + : "suscipit", + price: + overrides && overrides.hasOwnProperty("price") + ? overrides.price! + : "repudiandae", + selectedOptions: + overrides && overrides.hasOwnProperty("selectedOptions") + ? overrides.selectedOptions! + : [aCartAvailableBookableItemOption()], + selectedPaymentMethod: + overrides && overrides.hasOwnProperty("selectedPaymentMethod") + ? overrides.selectedPaymentMethod! + : aCartItemPaymentMethod(), + selectedStaffVariant: + overrides && overrides.hasOwnProperty("selectedStaffVariant") + ? overrides.selectedStaffVariant! + : aCartAvailableBookableItemStaffVariant(), + startTime: + overrides && overrides.hasOwnProperty("startTime") + ? overrides.startTime! + : "animi", + taxAmount: + overrides && overrides.hasOwnProperty("taxAmount") + ? overrides.taxAmount! + : "aliquam" + }; }; -export const aCreditCardConnection = (overrides?: Partial): CreditCardConnection => { - return { - edges: overrides && overrides.hasOwnProperty('edges') ? overrides.edges! : [aCreditCardEdge()], - pageInfo: overrides && overrides.hasOwnProperty('pageInfo') ? overrides.pageInfo! : aPageInfo(), - }; +export const aCartBookableTime = ( + overrides?: Partial +): CartBookableTime => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "fbe82808-aa98-4c7f-b7e1-3d123d4f7b2a", + score: + overrides && overrides.hasOwnProperty("score") ? overrides.score! : 6.24, + startTime: + overrides && overrides.hasOwnProperty("startTime") + ? overrides.startTime! + : "ut" + }; }; -export const aCreditCardEdge = (overrides?: Partial): CreditCardEdge => { - return { - cursor: overrides && overrides.hasOwnProperty('cursor') ? overrides.cursor! : 'sapiente', - node: overrides && overrides.hasOwnProperty('node') ? overrides.node! : aCreditCard(), - }; +export const aCartBookingQuestion = ( + overrides?: Partial +): CartBookingQuestion => { + return { + answer: + overrides && overrides.hasOwnProperty("answer") + ? overrides.answer! + : aCartBookingQuestionBooleanAnswer(), + displayType: + overrides && overrides.hasOwnProperty("displayType") + ? overrides.displayType! + : CartBookingQuestionDisplayType.Boolean, + errors: + overrides && overrides.hasOwnProperty("errors") + ? overrides.errors! + : ["facilis"], + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "82d3901e-c9f8-42fb-a054-0da101143cd9", + key: overrides && overrides.hasOwnProperty("key") ? overrides.key! : "aut", + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "ratione", + options: + overrides && overrides.hasOwnProperty("options") + ? overrides.options! + : [aCartBookingQuestionOption()], + required: + overrides && overrides.hasOwnProperty("required") + ? overrides.required! + : false, + schema: + overrides && overrides.hasOwnProperty("schema") + ? overrides.schema! + : CartBookingQuestionSchema.Appointment, + valueType: + overrides && overrides.hasOwnProperty("valueType") + ? overrides.valueType! + : CartBookingQuestionValueType.Boolean + }; }; -export const aCustomForm = (overrides?: Partial): CustomForm => { - return { - appointmentId: overrides && overrides.hasOwnProperty('appointmentId') ? overrides.appointmentId! : 'c470891b-6dd5-4d45-a480-a1d455776ab0', - clientId: overrides && overrides.hasOwnProperty('clientId') ? overrides.clientId! : '76f2e697-7dc2-4cde-aa1f-2c7d9f144b2a', - components: overrides && overrides.hasOwnProperty('components') ? overrides.components! : [aCustomFormComponent()], - formTemplate: overrides && overrides.hasOwnProperty('formTemplate') ? overrides.formTemplate! : aFormTemplate(), - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '329cf99e-2a1f-45d1-9960-ebb1fd5d85f2', - insertedAt: overrides && overrides.hasOwnProperty('insertedAt') ? overrides.insertedAt! : 'accusantium', - notStarted: overrides && overrides.hasOwnProperty('notStarted') ? overrides.notStarted! : false, - submittedAt: overrides && overrides.hasOwnProperty('submittedAt') ? overrides.submittedAt! : 'sed', - version: overrides && overrides.hasOwnProperty('version') ? overrides.version! : aCustomFormVersion(), - }; -}; - -export const aCustomFormAnswer = (overrides?: Partial): CustomFormAnswer => { - return { - checkboxAnswer: overrides && overrides.hasOwnProperty('checkboxAnswer') ? overrides.checkboxAnswer! : ['04c3d97d-8cb0-4f2e-8424-c324878f2dbb'], - dateAnswer: overrides && overrides.hasOwnProperty('dateAnswer') ? overrides.dateAnswer! : 'et', - dropdownAnswer: overrides && overrides.hasOwnProperty('dropdownAnswer') ? overrides.dropdownAnswer! : ['a8e1a8af-24e7-448f-bf9f-17fb4bfa252b'], - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '5bf42edc-2ab3-4d31-bf46-cb693c8f157f', - imageAnswer: overrides && overrides.hasOwnProperty('imageAnswer') ? overrides.imageAnswer! : aCustomFormImageAnswer(), - otherAnswer: overrides && overrides.hasOwnProperty('otherAnswer') ? overrides.otherAnswer! : 'quia', - radioAnswer: overrides && overrides.hasOwnProperty('radioAnswer') ? overrides.radioAnswer! : '02781678-1b8b-446b-aae2-0eee94cb948e', - selectAnswer: overrides && overrides.hasOwnProperty('selectAnswer') ? overrides.selectAnswer! : ['002623a1-6adc-48f5-8c93-88cced4228ac'], - signatureAnswer: overrides && overrides.hasOwnProperty('signatureAnswer') ? overrides.signatureAnswer! : aCustomFormSignatureAnswer(), - textAnswer: overrides && overrides.hasOwnProperty('textAnswer') ? overrides.textAnswer! : 'voluptates', - textareaAnswer: overrides && overrides.hasOwnProperty('textareaAnswer') ? overrides.textareaAnswer! : 'reprehenderit', - }; -}; - -export const aCustomFormComponent = (overrides?: Partial): CustomFormComponent => { - return { - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 4290, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '03f34f15-43b6-403d-9c52-e87be5c45a12', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 9848, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 1554, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 4104, - }; -}; - -export const aCustomFormComponentCheckbox = (overrides?: Partial): CustomFormComponentCheckbox => { - return { - checkboxAnswer: overrides && overrides.hasOwnProperty('checkboxAnswer') ? overrides.checkboxAnswer! : ['6e144661-e646-4ca9-8480-bf3371cb3907'], - floatWidth: overrides && overrides.hasOwnProperty('floatWidth') ? overrides.floatWidth! : 'quia', - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 4286, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '65d8e03c-acd0-44b2-ba9a-d3d57c1f17a0', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'quo', - required: overrides && overrides.hasOwnProperty('required') ? overrides.required! : true, - values: overrides && overrides.hasOwnProperty('values') ? overrides.values! : [aFormComponentCheckboxValue()], - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 3823, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 5870, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 9645, - }; -}; - -export const aCustomFormComponentCheckboxV2 = (overrides?: Partial): CustomFormComponentCheckboxV2 => { - return { - checkboxAnswer: overrides && overrides.hasOwnProperty('checkboxAnswer') ? overrides.checkboxAnswer! : ['168e03b2-6e1e-4c2a-a40a-3b9654fab969'], - enableOther: overrides && overrides.hasOwnProperty('enableOther') ? overrides.enableOther! : false, - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 9752, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'efda677f-01cd-4fc1-94eb-13a56a742aa8', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'debitis', - otherAnswer: overrides && overrides.hasOwnProperty('otherAnswer') ? overrides.otherAnswer! : 'nam', - required: overrides && overrides.hasOwnProperty('required') ? overrides.required! : true, - values: overrides && overrides.hasOwnProperty('values') ? overrides.values! : [aFormComponentV2CheckboxValue()], - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 7096, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 6208, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 9663, - }; -}; - -export const aCustomFormComponentDate = (overrides?: Partial): CustomFormComponentDate => { - return { - dateAnswer: overrides && overrides.hasOwnProperty('dateAnswer') ? overrides.dateAnswer! : 'facere', - floatWidth: overrides && overrides.hasOwnProperty('floatWidth') ? overrides.floatWidth! : 'consequatur', - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 3150, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '8e304ba9-55b4-41f4-8006-d617ef8832fc', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'sunt', - required: overrides && overrides.hasOwnProperty('required') ? overrides.required! : false, - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 7133, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 1838, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 4109, - }; -}; - -export const aCustomFormComponentDateV2 = (overrides?: Partial): CustomFormComponentDateV2 => { - return { - autoPopulate: overrides && overrides.hasOwnProperty('autoPopulate') ? overrides.autoPopulate! : false, - connectedField: overrides && overrides.hasOwnProperty('connectedField') ? overrides.connectedField! : 'dolor', - connectedSource: overrides && overrides.hasOwnProperty('connectedSource') ? overrides.connectedSource! : 'cum', - dateAnswer: overrides && overrides.hasOwnProperty('dateAnswer') ? overrides.dateAnswer! : 'illo', - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 8248, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '58c6819e-e4a9-434d-8878-cb394bc65fbb', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'doloremque', - required: overrides && overrides.hasOwnProperty('required') ? overrides.required! : true, - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 3810, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 5624, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 9486, - }; -}; - -export const aCustomFormComponentDividerV2 = (overrides?: Partial): CustomFormComponentDividerV2 => { - return { - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 545, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '4b5cd4ca-3e21-4ff3-b3c6-b9f8053372d3', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 7908, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 2170, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 7159, - }; -}; - -export const aCustomFormComponentDropdownV2 = (overrides?: Partial): CustomFormComponentDropdownV2 => { - return { - autoPopulate: overrides && overrides.hasOwnProperty('autoPopulate') ? overrides.autoPopulate! : true, - connectedField: overrides && overrides.hasOwnProperty('connectedField') ? overrides.connectedField! : 'maiores', - connectedSource: overrides && overrides.hasOwnProperty('connectedSource') ? overrides.connectedSource! : 'dolorum', - dropdownAnswer: overrides && overrides.hasOwnProperty('dropdownAnswer') ? overrides.dropdownAnswer! : ['848214cf-2921-4c9a-b043-6e986edc93fb'], - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 5751, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '9fc56df1-bbae-41f6-b28f-c1dcd64b2518', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'blanditiis', - manageReferralSourcesByLocation: overrides && overrides.hasOwnProperty('manageReferralSourcesByLocation') ? overrides.manageReferralSourcesByLocation! : false, - multiple: overrides && overrides.hasOwnProperty('multiple') ? overrides.multiple! : true, - required: overrides && overrides.hasOwnProperty('required') ? overrides.required! : true, - values: overrides && overrides.hasOwnProperty('values') ? overrides.values! : [aFormComponentCheckboxValue()], - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 560, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 3888, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 1027, - }; -}; - -export const aCustomFormComponentH1 = (overrides?: Partial): CustomFormComponentH1 => { - return { - floatWidth: overrides && overrides.hasOwnProperty('floatWidth') ? overrides.floatWidth! : 'expedita', - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 6410, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'e922b85f-0cd6-47d2-8295-e65628360413', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'consequatur', - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 6817, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 6546, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 3525, - }; -}; - -export const aCustomFormComponentH2 = (overrides?: Partial): CustomFormComponentH2 => { - return { - floatWidth: overrides && overrides.hasOwnProperty('floatWidth') ? overrides.floatWidth! : 'deleniti', - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 9697, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '6fbebef8-9306-4bfd-b380-03f79f879b00', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'officiis', - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 2957, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 817, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 6115, - }; -}; - -export const aCustomFormComponentImageAnswer = (overrides?: Partial): CustomFormComponentImageAnswer => { - return { - annotatedImageUrl: overrides && overrides.hasOwnProperty('annotatedImageUrl') ? overrides.annotatedImageUrl! : 'unde', - canvasDataUrl: overrides && overrides.hasOwnProperty('canvasDataUrl') ? overrides.canvasDataUrl! : 'adipisci', - customFormImageId: overrides && overrides.hasOwnProperty('customFormImageId') ? overrides.customFormImageId! : '5aff1281-8e69-4f6d-b704-198069e86ee4', - sourceImageUrl: overrides && overrides.hasOwnProperty('sourceImageUrl') ? overrides.sourceImageUrl! : 'sint', - }; -}; - -export const aCustomFormComponentImageUploaderV2 = (overrides?: Partial): CustomFormComponentImageUploaderV2 => { - return { - enableImageMarkup: overrides && overrides.hasOwnProperty('enableImageMarkup') ? overrides.enableImageMarkup! : false, - fileUpload: overrides && overrides.hasOwnProperty('fileUpload') ? overrides.fileUpload! : aCustomFormComponentSignatureUpload(), - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 3519, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '4c392cba-46bf-4894-b9ee-fe123d13cc57', - imageAnswer: overrides && overrides.hasOwnProperty('imageAnswer') ? overrides.imageAnswer! : aCustomFormComponentImageAnswer(), - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'et', - required: overrides && overrides.hasOwnProperty('required') ? overrides.required! : true, - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 7318, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 3810, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 9545, - }; -}; - -export const aCustomFormComponentImageV2 = (overrides?: Partial): CustomFormComponentImageV2 => { - return { - enableImageMarkup: overrides && overrides.hasOwnProperty('enableImageMarkup') ? overrides.enableImageMarkup! : false, - fileUploadId: overrides && overrides.hasOwnProperty('fileUploadId') ? overrides.fileUploadId! : 'tenetur', - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 6055, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '47245256-45dd-4610-aac7-a6c2dffaba65', - imageAnswer: overrides && overrides.hasOwnProperty('imageAnswer') ? overrides.imageAnswer! : aCustomFormComponentImageAnswer(), - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'dolorem', - src: overrides && overrides.hasOwnProperty('src') ? overrides.src! : 'quidem', - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 8508, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 5389, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 6179, - }; -}; - -export const aCustomFormComponentLogo = (overrides?: Partial): CustomFormComponentLogo => { - return { - floatWidth: overrides && overrides.hasOwnProperty('floatWidth') ? overrides.floatWidth! : 'nesciunt', - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 6571, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '3191facc-5461-4b9f-84f9-9bc23dac2a39', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - markdownContent: overrides && overrides.hasOwnProperty('markdownContent') ? overrides.markdownContent! : 'ea', - markdownHtml: overrides && overrides.hasOwnProperty('markdownHtml') ? overrides.markdownHtml! : 'consequatur', - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 6825, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 5065, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 7744, - }; -}; - -export const aCustomFormComponentLogoV2 = (overrides?: Partial): CustomFormComponentLogoV2 => { - return { - fileUploadId: overrides && overrides.hasOwnProperty('fileUploadId') ? overrides.fileUploadId! : 'nobis', - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 4140, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '87b4d798-0b7a-4816-8960-c6871c1a8b10', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - src: overrides && overrides.hasOwnProperty('src') ? overrides.src! : 'incidunt', - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 7931, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 3512, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 7369, - }; -}; - -export const aCustomFormComponentMarkdown = (overrides?: Partial): CustomFormComponentMarkdown => { - return { - floatWidth: overrides && overrides.hasOwnProperty('floatWidth') ? overrides.floatWidth! : 'et', - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 8600, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'fcd0b3e9-7f91-4254-af7e-e3118b4aabcc', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - markdownContent: overrides && overrides.hasOwnProperty('markdownContent') ? overrides.markdownContent! : 'sit', - markdownHtml: overrides && overrides.hasOwnProperty('markdownHtml') ? overrides.markdownHtml! : 'quibusdam', - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 8024, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 767, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 6321, - }; -}; - -export const aCustomFormComponentMultipleChoiceV2 = (overrides?: Partial): CustomFormComponentMultipleChoiceV2 => { - return { - autoPopulate: overrides && overrides.hasOwnProperty('autoPopulate') ? overrides.autoPopulate! : false, - connectedField: overrides && overrides.hasOwnProperty('connectedField') ? overrides.connectedField! : 'totam', - connectedSource: overrides && overrides.hasOwnProperty('connectedSource') ? overrides.connectedSource! : 'recusandae', - enableOther: overrides && overrides.hasOwnProperty('enableOther') ? overrides.enableOther! : false, - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 8661, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'cdc851f3-1af4-4c86-b8a8-b9fd87cd5a35', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'est', - otherAnswer: overrides && overrides.hasOwnProperty('otherAnswer') ? overrides.otherAnswer! : 'quibusdam', - radioAnswer: overrides && overrides.hasOwnProperty('radioAnswer') ? overrides.radioAnswer! : 'inventore', - required: overrides && overrides.hasOwnProperty('required') ? overrides.required! : false, - values: overrides && overrides.hasOwnProperty('values') ? overrides.values! : [aFormComponentV2CheckboxValue()], - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 5570, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 5712, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 3741, - }; -}; - -export const aCustomFormComponentRadio = (overrides?: Partial): CustomFormComponentRadio => { - return { - floatWidth: overrides && overrides.hasOwnProperty('floatWidth') ? overrides.floatWidth! : 'est', - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 2747, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '9ec19d31-9bbb-4450-b1c6-da9b4fef0d24', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'sapiente', - radioAnswer: overrides && overrides.hasOwnProperty('radioAnswer') ? overrides.radioAnswer! : 'veniam', - required: overrides && overrides.hasOwnProperty('required') ? overrides.required! : false, - values: overrides && overrides.hasOwnProperty('values') ? overrides.values! : [aCustomFormComponentRadioValue()], - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 288, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 8306, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 6539, - }; -}; - -export const aCustomFormComponentRadioValue = (overrides?: Partial): CustomFormComponentRadioValue => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'cumque', - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'fugit', - }; -}; - -export const aCustomFormComponentSelect = (overrides?: Partial): CustomFormComponentSelect => { - return { - floatWidth: overrides && overrides.hasOwnProperty('floatWidth') ? overrides.floatWidth! : 'voluptatem', - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 2418, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'f5d0aa7f-288f-4947-9b00-87554be14a3e', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'enim', - required: overrides && overrides.hasOwnProperty('required') ? overrides.required! : false, - selectAnswer: overrides && overrides.hasOwnProperty('selectAnswer') ? overrides.selectAnswer! : ['porro'], - selectMultiple: overrides && overrides.hasOwnProperty('selectMultiple') ? overrides.selectMultiple! : true, - values: overrides && overrides.hasOwnProperty('values') ? overrides.values! : [aCustomFormComponentSelectValue()], - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 1412, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 5014, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 8963, - }; -}; - -export const aCustomFormComponentSelectValue = (overrides?: Partial): CustomFormComponentSelectValue => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'qui', - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'similique', - }; -}; - -export const aCustomFormComponentSignature = (overrides?: Partial): CustomFormComponentSignature => { - return { - enableWet: overrides && overrides.hasOwnProperty('enableWet') ? overrides.enableWet! : false, - fileUpload: overrides && overrides.hasOwnProperty('fileUpload') ? overrides.fileUpload! : aCustomFormComponentSignatureUpload(), - floatWidth: overrides && overrides.hasOwnProperty('floatWidth') ? overrides.floatWidth! : 'et', - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 341, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '8b7f765d-a0ac-4069-af45-04dc447aadfc', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'labore', - required: overrides && overrides.hasOwnProperty('required') ? overrides.required! : true, - signatureAnswer: overrides && overrides.hasOwnProperty('signatureAnswer') ? overrides.signatureAnswer! : aCustomFormComponentSignatureAnswer(), - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 1435, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 2057, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 9001, - }; -}; - -export const aCustomFormComponentSignatureAnswer = (overrides?: Partial): CustomFormComponentSignatureAnswer => { - return { - fileUploadId: overrides && overrides.hasOwnProperty('fileUploadId') ? overrides.fileUploadId! : '75d7e9d9-2dbb-4efc-922d-12cc3bf98c29', - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'assumenda', - url: overrides && overrides.hasOwnProperty('url') ? overrides.url! : 'eius', - }; -}; - -export const aCustomFormComponentSignatureUpload = (overrides?: Partial): CustomFormComponentSignatureUpload => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '9ef0b671-68a4-4fd3-8e96-529b47d9127a', - signedPutUrl: overrides && overrides.hasOwnProperty('signedPutUrl') ? overrides.signedPutUrl! : 'ut', - }; -}; - -export const aCustomFormComponentSignatureV2 = (overrides?: Partial): CustomFormComponentSignatureV2 => { - return { - enableWetV2: overrides && overrides.hasOwnProperty('enableWetV2') ? overrides.enableWetV2! : true, - fileUpload: overrides && overrides.hasOwnProperty('fileUpload') ? overrides.fileUpload! : aCustomFormComponentSignatureUpload(), - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 3418, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '8fefa92b-0ff0-4efe-9b92-0ef3add9a078', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'nulla', - required: overrides && overrides.hasOwnProperty('required') ? overrides.required! : false, - signatureAnswer: overrides && overrides.hasOwnProperty('signatureAnswer') ? overrides.signatureAnswer! : aCustomFormComponentSignatureAnswer(), - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 9695, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 2151, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 6352, - }; -}; - -export const aCustomFormComponentText = (overrides?: Partial): CustomFormComponentText => { - return { - floatWidth: overrides && overrides.hasOwnProperty('floatWidth') ? overrides.floatWidth! : 'repudiandae', - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 2348, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '9b6989a5-dd91-4322-a852-68e5dc0e4c56', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'illo', - placeholder: overrides && overrides.hasOwnProperty('placeholder') ? overrides.placeholder! : 'magni', - required: overrides && overrides.hasOwnProperty('required') ? overrides.required! : false, - textAnswer: overrides && overrides.hasOwnProperty('textAnswer') ? overrides.textAnswer! : 'consectetur', - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 7109, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 6817, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 9850, - }; -}; - -export const aCustomFormComponentTextInputV2 = (overrides?: Partial): CustomFormComponentTextInputV2 => { - return { - autoPopulate: overrides && overrides.hasOwnProperty('autoPopulate') ? overrides.autoPopulate! : true, - connectedField: overrides && overrides.hasOwnProperty('connectedField') ? overrides.connectedField! : 'voluptatem', - connectedSource: overrides && overrides.hasOwnProperty('connectedSource') ? overrides.connectedSource! : 'debitis', - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 8868, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'fb0ded07-1b48-4e0c-9970-ead30be16e3e', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'quis', - longResponse: overrides && overrides.hasOwnProperty('longResponse') ? overrides.longResponse! : true, - placeholder: overrides && overrides.hasOwnProperty('placeholder') ? overrides.placeholder! : 'qui', - required: overrides && overrides.hasOwnProperty('required') ? overrides.required! : true, - textAnswer: overrides && overrides.hasOwnProperty('textAnswer') ? overrides.textAnswer! : 'consequuntur', - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 590, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 7612, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 2300, - }; -}; - -export const aCustomFormComponentTextV2 = (overrides?: Partial): CustomFormComponentTextV2 => { - return { - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 9525, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '8994fa92-f6c9-4d93-8634-57548479a655', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - value: overrides && overrides.hasOwnProperty('value') ? overrides.value! : 'cupiditate', - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 7090, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 1499, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 9548, - }; -}; - -export const aCustomFormComponentTextarea = (overrides?: Partial): CustomFormComponentTextarea => { - return { - h: overrides && overrides.hasOwnProperty('h') ? overrides.h! : 7625, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'ec292a84-2609-42d6-89a1-58e6e6a598f6', - kind: overrides && overrides.hasOwnProperty('kind') ? overrides.kind! : FormComponentKind.Checkbox, - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'aut', - placeholder: overrides && overrides.hasOwnProperty('placeholder') ? overrides.placeholder! : 'sint', - required: overrides && overrides.hasOwnProperty('required') ? overrides.required! : false, - textAnswer: overrides && overrides.hasOwnProperty('textAnswer') ? overrides.textAnswer! : 'enim', - textareaAnswer: overrides && overrides.hasOwnProperty('textareaAnswer') ? overrides.textareaAnswer! : 'aut', - w: overrides && overrides.hasOwnProperty('w') ? overrides.w! : 8570, - x: overrides && overrides.hasOwnProperty('x') ? overrides.x! : 8433, - y: overrides && overrides.hasOwnProperty('y') ? overrides.y! : 6361, - }; -}; - -export const aCustomFormImageAnswer = (overrides?: Partial): CustomFormImageAnswer => { - return { - customFormImageId: overrides && overrides.hasOwnProperty('customFormImageId') ? overrides.customFormImageId! : '51e71e0e-8b8e-4c72-8520-885bd7c6b549', - }; -}; - -export const aCustomFormSignatureAnswer = (overrides?: Partial): CustomFormSignatureAnswer => { - return { - fileUploadId: overrides && overrides.hasOwnProperty('fileUploadId') ? overrides.fileUploadId! : '27b21f4a-eb6f-40f9-97a9-cc43895db38b', - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'est', - }; -}; - -export const aCustomFormTemplate = (overrides?: Partial): CustomFormTemplate => { - return { - active: overrides && overrides.hasOwnProperty('active') ? overrides.active! : true, - components: overrides && overrides.hasOwnProperty('components') ? overrides.components! : [aCustomFormComponent()], - createdByStaff: overrides && overrides.hasOwnProperty('createdByStaff') ? overrides.createdByStaff! : aStaff(), - currentVersion: overrides && overrides.hasOwnProperty('currentVersion') ? overrides.currentVersion! : aCustomFormVersion(), - description: overrides && overrides.hasOwnProperty('description') ? overrides.description! : 'error', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '787caa0d-2a92-4417-b32e-fe56462b5621', - insertedAt: overrides && overrides.hasOwnProperty('insertedAt') ? overrides.insertedAt! : 'quisquam', - internal: overrides && overrides.hasOwnProperty('internal') ? overrides.internal! : true, - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'a', - requestDuringBooking: overrides && overrides.hasOwnProperty('requestDuringBooking') ? overrides.requestDuringBooking! : true, - requestDuringCheckin: overrides && overrides.hasOwnProperty('requestDuringCheckin') ? overrides.requestDuringCheckin! : true, - requestDuringReminder: overrides && overrides.hasOwnProperty('requestDuringReminder') ? overrides.requestDuringReminder! : true, - requestSameDay: overrides && overrides.hasOwnProperty('requestSameDay') ? overrides.requestSameDay! : false, - resource: overrides && overrides.hasOwnProperty('resource') ? overrides.resource! : FormResourceType.Appointment, - sortOrder: overrides && overrides.hasOwnProperty('sortOrder') ? overrides.sortOrder! : 0.11, - status: overrides && overrides.hasOwnProperty('status') ? overrides.status! : 'sed', - templateLocations: overrides && overrides.hasOwnProperty('templateLocations') ? overrides.templateLocations! : [aCustomFormTemplateLocation()], - templateServices: overrides && overrides.hasOwnProperty('templateServices') ? overrides.templateServices! : [aCustomFormTemplateService()], - updatedAt: overrides && overrides.hasOwnProperty('updatedAt') ? overrides.updatedAt! : 'temporibus', - }; -}; - -export const aCustomFormTemplateLocation = (overrides?: Partial): CustomFormTemplateLocation => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '0774308d-ffd8-4e2a-acef-784cf6323bbc', - location: overrides && overrides.hasOwnProperty('location') ? overrides.location! : aLocation(), - template: overrides && overrides.hasOwnProperty('template') ? overrides.template! : aCustomFormTemplate(), - }; -}; - -export const aCustomFormTemplateService = (overrides?: Partial): CustomFormTemplateService => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '59ed2d68-5aa7-41b4-b177-8c7d56fe135d', - service: overrides && overrides.hasOwnProperty('service') ? overrides.service! : aService(), - template: overrides && overrides.hasOwnProperty('template') ? overrides.template! : aCustomFormTemplate(), - }; -}; - -export const aCustomFormVersion = (overrides?: Partial): CustomFormVersion => { - return { - components: overrides && overrides.hasOwnProperty('components') ? overrides.components! : [aCustomFormComponent()], - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '333ccd5d-150d-45fd-8c67-52f9ba789225', - template: overrides && overrides.hasOwnProperty('template') ? overrides.template! : aCustomFormTemplate(), - templatingVersion: overrides && overrides.hasOwnProperty('templatingVersion') ? overrides.templatingVersion! : 4607, - }; -}; - -export const aDeleteCartGiftCardItemEmailFulfillmentInput = (overrides?: Partial): DeleteCartGiftCardItemEmailFulfillmentInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'efff04a9-263c-4776-ab02-e54d829b7913', - itemId: overrides && overrides.hasOwnProperty('itemId') ? overrides.itemId! : 'c8047555-e600-4f4d-86cd-303dfb80edab', - }; -}; - -export const aDeleteCartGiftCardItemEmailFulfillmentPayload = (overrides?: Partial): DeleteCartGiftCardItemEmailFulfillmentPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; -}; - -export const aDeleteCartGuestInput = (overrides?: Partial): DeleteCartGuestInput => { - return { - guestId: overrides && overrides.hasOwnProperty('guestId') ? overrides.guestId! : '059a9393-1d00-4710-8353-9709308ac23a', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'c93b9cd1-a36b-4892-8065-02f0fd45f50b', - }; -}; - -export const aDeleteCartGuestPayload = (overrides?: Partial): DeleteCartGuestPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; -}; - -export const aFormComponentCheckboxValue = (overrides?: Partial): FormComponentCheckboxValue => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'ba5b7301-81bc-4fe3-a8d7-6d16001a4268', - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'dolores', - }; -}; - -export const aFormComponentV2CheckboxValue = (overrides?: Partial): FormComponentV2CheckboxValue => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'd03dddd9-2de7-416d-ae1c-00d653172a2b', - label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'quisquam', - }; -}; - -export const aFormTemplate = (overrides?: Partial): FormTemplate => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '5b41abee-e480-4954-8b23-bf9879ad7eef', - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'animi', - }; -}; - -export const aGiftCardDesign = (overrides?: Partial): GiftCardDesign => { - return { - backgroundColor: overrides && overrides.hasOwnProperty('backgroundColor') ? overrides.backgroundColor! : 'quasi', - foregroundText: overrides && overrides.hasOwnProperty('foregroundText') ? overrides.foregroundText! : 'est', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'f216822a-9565-403c-a951-481344cfba48', - image: overrides && overrides.hasOwnProperty('image') ? overrides.image! : 'itaque', - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'enim', - preset: overrides && overrides.hasOwnProperty('preset') ? overrides.preset! : false, - }; +export const aCartBookingQuestionAddAnswerInput = ( + overrides?: Partial +): CartBookingQuestionAddAnswerInput => { + return { + answer: + overrides && overrides.hasOwnProperty("answer") + ? overrides.answer! + : aCartBookingQuestionAnswerInput(), + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "ee6ef44e-87a8-4e77-805f-07895920f80f", + questionId: + overrides && overrides.hasOwnProperty("questionId") + ? overrides.questionId! + : "36c7a0ad-eb38-4af5-9a90-c8a0fe9810e4" + }; }; -export const aLocation = (overrides?: Partial): Location => { - return { - address: overrides && overrides.hasOwnProperty('address') ? overrides.address! : anAddress(), - allowOnlineBooking: overrides && overrides.hasOwnProperty('allowOnlineBooking') ? overrides.allowOnlineBooking! : false, - allowOnlineRescheduling: overrides && overrides.hasOwnProperty('allowOnlineRescheduling') ? overrides.allowOnlineRescheduling! : true, - arrivalInstructions: overrides && overrides.hasOwnProperty('arrivalInstructions') ? overrides.arrivalInstructions! : 'iste', - avatar: overrides && overrides.hasOwnProperty('avatar') ? overrides.avatar! : 'aut', - businessName: overrides && overrides.hasOwnProperty('businessName') ? overrides.businessName! : 'dolores', - contactEmail: overrides && overrides.hasOwnProperty('contactEmail') ? overrides.contactEmail! : 'at', - coordinates: overrides && overrides.hasOwnProperty('coordinates') ? overrides.coordinates! : 'velit', - externalId: overrides && overrides.hasOwnProperty('externalId') ? overrides.externalId! : 'ratione', - hours: overrides && overrides.hasOwnProperty('hours') ? overrides.hours! : [aLocationDays()], - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'bfe52c08-bd42-41df-a3d4-364c80b41fe8', - insertedAt: overrides && overrides.hasOwnProperty('insertedAt') ? overrides.insertedAt! : 'vitae', - isRemote: overrides && overrides.hasOwnProperty('isRemote') ? overrides.isRemote! : true, - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'optio', - phoneNumber: overrides && overrides.hasOwnProperty('phoneNumber') ? overrides.phoneNumber! : 'et', - social: overrides && overrides.hasOwnProperty('social') ? overrides.social! : aLocationSocialAccounts(), - tz: overrides && overrides.hasOwnProperty('tz') ? overrides.tz! : 'consectetur', - updatedAt: overrides && overrides.hasOwnProperty('updatedAt') ? overrides.updatedAt! : 'culpa', - website: overrides && overrides.hasOwnProperty('website') ? overrides.website! : 'id', - }; -}; - -export const aLocationConnection = (overrides?: Partial): LocationConnection => { - return { - edges: overrides && overrides.hasOwnProperty('edges') ? overrides.edges! : [aLocationEdge()], - pageInfo: overrides && overrides.hasOwnProperty('pageInfo') ? overrides.pageInfo! : aPageInfo(), - }; -}; - -export const aLocationDays = (overrides?: Partial): LocationDays => { - return { - finish: overrides && overrides.hasOwnProperty('finish') ? overrides.finish! : aLocationHours(), - open: overrides && overrides.hasOwnProperty('open') ? overrides.open! : false, - start: overrides && overrides.hasOwnProperty('start') ? overrides.start! : aLocationHours(), - }; -}; - -export const aLocationEdge = (overrides?: Partial): LocationEdge => { - return { - cursor: overrides && overrides.hasOwnProperty('cursor') ? overrides.cursor! : 'illum', - node: overrides && overrides.hasOwnProperty('node') ? overrides.node! : aLocation(), - }; -}; - -export const aLocationHours = (overrides?: Partial): LocationHours => { - return { - hour: overrides && overrides.hasOwnProperty('hour') ? overrides.hour! : 6283, - minute: overrides && overrides.hasOwnProperty('minute') ? overrides.minute! : 1255, - }; -}; - -export const aLocationSocialAccounts = (overrides?: Partial): LocationSocialAccounts => { - return { - facebook: overrides && overrides.hasOwnProperty('facebook') ? overrides.facebook! : 'laudantium', - google: overrides && overrides.hasOwnProperty('google') ? overrides.google! : 'aut', - instagram: overrides && overrides.hasOwnProperty('instagram') ? overrides.instagram! : 'eveniet', - pinterest: overrides && overrides.hasOwnProperty('pinterest') ? overrides.pinterest! : 'omnis', - twitter: overrides && overrides.hasOwnProperty('twitter') ? overrides.twitter! : 'aut', - yelp: overrides && overrides.hasOwnProperty('yelp') ? overrides.yelp! : 'recusandae', - youtube: overrides && overrides.hasOwnProperty('youtube') ? overrides.youtube! : 'soluta', - }; +export const aCartBookingQuestionAddAnswerPayload = ( + overrides?: Partial +): CartBookingQuestionAddAnswerPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; }; -export const aMembership = (overrides?: Partial): Membership => { - return { - client: overrides && overrides.hasOwnProperty('client') ? overrides.client! : aClient(), - clientId: overrides && overrides.hasOwnProperty('clientId') ? overrides.clientId! : '4a0aac29-d66f-41b4-a7dc-ca42db940921', - creditCard: overrides && overrides.hasOwnProperty('creditCard') ? overrides.creditCard! : aCreditCard(), - currentBillingError: overrides && overrides.hasOwnProperty('currentBillingError') ? overrides.currentBillingError! : false, - endOn: overrides && overrides.hasOwnProperty('endOn') ? overrides.endOn! : '2003-03-23', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'cf18c1f2-8e7d-4a3d-a70d-a877d24df604', - interval: overrides && overrides.hasOwnProperty('interval') ? overrides.interval! : 'laboriosam', - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'ut', - startOn: overrides && overrides.hasOwnProperty('startOn') ? overrides.startOn! : '1999-01-30', - status: overrides && overrides.hasOwnProperty('status') ? overrides.status! : SubscriptionStatus.Active, - termNumber: overrides && overrides.hasOwnProperty('termNumber') ? overrides.termNumber! : 5333, - unitPrice: overrides && overrides.hasOwnProperty('unitPrice') ? overrides.unitPrice! : 'facilis', - vouchers: overrides && overrides.hasOwnProperty('vouchers') ? overrides.vouchers! : [aMembershipVoucher()], - }; +export const aCartBookingQuestionAnswerInput = ( + overrides?: Partial +): CartBookingQuestionAnswerInput => { + return { + booleanValue: + overrides && overrides.hasOwnProperty("booleanValue") + ? overrides.booleanValue! + : false, + datetimeValue: + overrides && overrides.hasOwnProperty("datetimeValue") + ? overrides.datetimeValue! + : "unde", + floatValue: + overrides && overrides.hasOwnProperty("floatValue") + ? overrides.floatValue! + : 3.91, + integerValue: + overrides && overrides.hasOwnProperty("integerValue") + ? overrides.integerValue! + : 3002, + optionValue: + overrides && overrides.hasOwnProperty("optionValue") + ? overrides.optionValue! + : aBookingQuestionOptionAnswerInput(), + optionValues: + overrides && overrides.hasOwnProperty("optionValues") + ? overrides.optionValues! + : [aBookingQuestionOptionAnswerInput()], + textValue: + overrides && overrides.hasOwnProperty("textValue") + ? overrides.textValue! + : "nulla" + }; }; -export const aMembershipConnection = (overrides?: Partial): MembershipConnection => { - return { - edges: overrides && overrides.hasOwnProperty('edges') ? overrides.edges! : [aMembershipEdge()], - pageInfo: overrides && overrides.hasOwnProperty('pageInfo') ? overrides.pageInfo! : aPageInfo(), - }; +export const aCartBookingQuestionBooleanAnswer = ( + overrides?: Partial +): CartBookingQuestionBooleanAnswer => { + return { + booleanValue: + overrides && overrides.hasOwnProperty("booleanValue") + ? overrides.booleanValue! + : true + }; }; -export const aMembershipEdge = (overrides?: Partial): MembershipEdge => { - return { - cursor: overrides && overrides.hasOwnProperty('cursor') ? overrides.cursor! : 'voluptatum', - node: overrides && overrides.hasOwnProperty('node') ? overrides.node! : aMembership(), - }; +export const aCartBookingQuestionClearAnswerInput = ( + overrides?: Partial +): CartBookingQuestionClearAnswerInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "9e678885-374f-40e6-ac6a-96c027ab5480", + questionId: + overrides && overrides.hasOwnProperty("questionId") + ? overrides.questionId! + : "617b57a1-9351-4580-bcb1-7b66589f1e3f" + }; }; -export const aMembershipPaymentMethodUpdateAndRenewInput = (overrides?: Partial): MembershipPaymentMethodUpdateAndRenewInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'a1fe8d15-4331-497f-b0fe-7b450acb2485', - paymentMethodId: overrides && overrides.hasOwnProperty('paymentMethodId') ? overrides.paymentMethodId! : '4e1eb3a3-84d5-42d7-82d6-be5b6f039b8b', - }; +export const aCartBookingQuestionClearAnswerPayload = ( + overrides?: Partial +): CartBookingQuestionClearAnswerPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; }; -export const aMembershipPaymentMethodUpdateAndRenewPayload = (overrides?: Partial): MembershipPaymentMethodUpdateAndRenewPayload => { - return { - membership: overrides && overrides.hasOwnProperty('membership') ? overrides.membership! : aMembership(), - newCardWasChargedForRenewal: overrides && overrides.hasOwnProperty('newCardWasChargedForRenewal') ? overrides.newCardWasChargedForRenewal! : true, - }; +export const aCartBookingQuestionDatetimeAnswer = ( + overrides?: Partial +): CartBookingQuestionDatetimeAnswer => { + return { + datetimeValue: + overrides && overrides.hasOwnProperty("datetimeValue") + ? overrides.datetimeValue! + : "eveniet" + }; }; -export const aMembershipPaymentMethodUpdateInput = (overrides?: Partial): MembershipPaymentMethodUpdateInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '8aca7170-dffb-4af0-b26e-e01d1f916d0c', - paymentMethodId: overrides && overrides.hasOwnProperty('paymentMethodId') ? overrides.paymentMethodId! : 'b5650405-a414-4d6d-9a1a-aa9b2722228e', - }; +export const aCartBookingQuestionFloatAnswer = ( + overrides?: Partial +): CartBookingQuestionFloatAnswer => { + return { + floatValue: + overrides && overrides.hasOwnProperty("floatValue") + ? overrides.floatValue! + : 2.74 + }; }; -export const aMembershipPaymentMethodUpdatePayload = (overrides?: Partial): MembershipPaymentMethodUpdatePayload => { - return { - membership: overrides && overrides.hasOwnProperty('membership') ? overrides.membership! : aMembership(), - }; +export const aCartBookingQuestionIntegerAnswer = ( + overrides?: Partial +): CartBookingQuestionIntegerAnswer => { + return { + integerValue: + overrides && overrides.hasOwnProperty("integerValue") + ? overrides.integerValue! + : 5568 + }; }; -export const aMembershipVoucher = (overrides?: Partial): MembershipVoucher => { - return { - quantity: overrides && overrides.hasOwnProperty('quantity') ? overrides.quantity! : 2981, - service: overrides && overrides.hasOwnProperty('service') ? overrides.service! : aService(), - services: overrides && overrides.hasOwnProperty('services') ? overrides.services! : [aService()], - }; +export const aCartBookingQuestionMultiSelectAnswer = ( + overrides?: Partial +): CartBookingQuestionMultiSelectAnswer => { + return { + options: + overrides && overrides.hasOwnProperty("options") + ? overrides.options! + : [aCartBookingQuestionOption()] + }; }; -export const aNode = (overrides?: Partial): Node => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '95bb2f34-6c86-495f-bfdc-f25b025cdba5', - }; +export const aCartBookingQuestionOption = ( + overrides?: Partial +): CartBookingQuestionOption => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "cd9f7dc2-16cd-4a30-815a-b7b2c9ed7d48", + label: + overrides && overrides.hasOwnProperty("label") ? overrides.label! : "eius" + }; }; -export const anOnlineGiftCardSettings = (overrides?: Partial): OnlineGiftCardSettings => { - return { - giftCardDesigns: overrides && overrides.hasOwnProperty('giftCardDesigns') ? overrides.giftCardDesigns! : [aBusinessGiftCardDesign()], - designatedLocationId: overrides && overrides.hasOwnProperty('designatedLocationId') ? overrides.designatedLocationId! : '696ad8e2-21ba-4718-aea9-263e362c84d5', - websiteMessage: overrides && overrides.hasOwnProperty('websiteMessage') ? overrides.websiteMessage! : 'beatae', - }; +export const aCartBookingQuestionSelectAnswer = ( + overrides?: Partial +): CartBookingQuestionSelectAnswer => { + return { + option: + overrides && overrides.hasOwnProperty("option") + ? overrides.option! + : aCartBookingQuestionOption() + }; +}; + +export const aCartBookingQuestionTextAnswer = ( + overrides?: Partial +): CartBookingQuestionTextAnswer => { + return { + textValue: + overrides && overrides.hasOwnProperty("textValue") + ? overrides.textValue! + : "eius" + }; +}; + +export const aCartClearInput = ( + overrides?: Partial +): CartClearInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "6a3a071e-ac4a-402d-bc3e-172db90282c2" + }; +}; + +export const aCartClearPayload = ( + overrides?: Partial +): CartClearPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; +}; + +export const aCartClientInformation = ( + overrides?: Partial +): CartClientInformation => { + return { + email: + overrides && overrides.hasOwnProperty("email") + ? overrides.email! + : "alias", + externalId: + overrides && overrides.hasOwnProperty("externalId") + ? overrides.externalId! + : "cupiditate", + firstName: + overrides && overrides.hasOwnProperty("firstName") + ? overrides.firstName! + : "quis", + lastName: + overrides && overrides.hasOwnProperty("lastName") + ? overrides.lastName! + : "sit", + phoneNumber: + overrides && overrides.hasOwnProperty("phoneNumber") + ? overrides.phoneNumber! + : "unde" + }; +}; + +export const aCartClientInformationInput = ( + overrides?: Partial +): CartClientInformationInput => { + return { + email: + overrides && overrides.hasOwnProperty("email") + ? overrides.email! + : "porro", + externalId: + overrides && overrides.hasOwnProperty("externalId") + ? overrides.externalId! + : "ut", + firstName: + overrides && overrides.hasOwnProperty("firstName") + ? overrides.firstName! + : "temporibus", + lastName: + overrides && overrides.hasOwnProperty("lastName") + ? overrides.lastName! + : "in", + phoneNumber: + overrides && overrides.hasOwnProperty("phoneNumber") + ? overrides.phoneNumber! + : "labore" + }; +}; + +export const aCartDurationRange = ( + overrides?: Partial +): CartDurationRange => { + return { + max: overrides && overrides.hasOwnProperty("max") ? overrides.max! : 2453, + min: overrides && overrides.hasOwnProperty("min") ? overrides.min! : 6965, + variable: + overrides && overrides.hasOwnProperty("variable") + ? overrides.variable! + : false + }; +}; + +export const aCartError = (overrides?: Partial): CartError => { + return { + code: + overrides && overrides.hasOwnProperty("code") + ? overrides.code! + : CartErrorCode.CartBookingQuestionAnswerMissing, + description: + overrides && overrides.hasOwnProperty("description") + ? overrides.description! + : "omnis", + message: + overrides && overrides.hasOwnProperty("message") + ? overrides.message! + : "est" + }; +}; + +export const aCartFeatures = ( + overrides?: Partial +): CartFeatures => { + return { + bookingQuestionsEnabled: + overrides && overrides.hasOwnProperty("bookingQuestionsEnabled") + ? overrides.bookingQuestionsEnabled! + : true, + giftCardPurchaseEnabled: + overrides && overrides.hasOwnProperty("giftCardPurchaseEnabled") + ? overrides.giftCardPurchaseEnabled! + : true, + paymentInfoRequired: + overrides && overrides.hasOwnProperty("paymentInfoRequired") + ? overrides.paymentInfoRequired! + : false, + serviceAddonsEnabled: + overrides && overrides.hasOwnProperty("serviceAddonsEnabled") + ? overrides.serviceAddonsEnabled! + : false + }; +}; + +export const aCartGiftCardItem = ( + overrides?: Partial +): CartGiftCardItem => { + return { + addons: + overrides && overrides.hasOwnProperty("addons") + ? overrides.addons! + : [aCartAvailableItem()], + availablePaymentMethods: + overrides && overrides.hasOwnProperty("availablePaymentMethods") + ? overrides.availablePaymentMethods! + : [aCartItemPaymentMethod()], + discountAmount: + overrides && overrides.hasOwnProperty("discountAmount") + ? overrides.discountAmount! + : "excepturi", + discountCode: + overrides && overrides.hasOwnProperty("discountCode") + ? overrides.discountCode! + : "nemo", + emailFulfillment: + overrides && overrides.hasOwnProperty("emailFulfillment") + ? overrides.emailFulfillment! + : aCartItemEmailFulfillment(), + errors: + overrides && overrides.hasOwnProperty("errors") + ? overrides.errors! + : [aCartItemError()], + giftCardDesign: + overrides && overrides.hasOwnProperty("giftCardDesign") + ? overrides.giftCardDesign! + : aCartItemGiftCardDesign(), + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "fd6c0653-c6b9-46b5-8261-f041c0e65446", + item: + overrides && overrides.hasOwnProperty("item") + ? overrides.item! + : aCartAvailableGiftCardItem(), + lineTotal: + overrides && overrides.hasOwnProperty("lineTotal") + ? overrides.lineTotal! + : "et", + price: + overrides && overrides.hasOwnProperty("price") + ? overrides.price! + : "impedit", + selectedPaymentMethod: + overrides && overrides.hasOwnProperty("selectedPaymentMethod") + ? overrides.selectedPaymentMethod! + : aCartItemPaymentMethod(), + taxAmount: + overrides && overrides.hasOwnProperty("taxAmount") + ? overrides.taxAmount! + : "dignissimos" + }; +}; + +export const aCartGuest = (overrides?: Partial): CartGuest => { + return { + email: + overrides && overrides.hasOwnProperty("email") + ? overrides.email! + : "excepturi", + firstName: + overrides && overrides.hasOwnProperty("firstName") + ? overrides.firstName! + : "aut", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "e99ad070-8cef-41ce-b0d5-9829b8cf9a84", + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "atque", + lastName: + overrides && overrides.hasOwnProperty("lastName") + ? overrides.lastName! + : "illo", + number: + overrides && overrides.hasOwnProperty("number") + ? overrides.number! + : 2555, + phoneNumber: + overrides && overrides.hasOwnProperty("phoneNumber") + ? overrides.phoneNumber! + : "consequatur" + }; +}; + +export const aCartItem = (overrides?: Partial): CartItem => { + return { + addons: + overrides && overrides.hasOwnProperty("addons") + ? overrides.addons! + : [aCartAvailableItem()], + availablePaymentMethods: + overrides && overrides.hasOwnProperty("availablePaymentMethods") + ? overrides.availablePaymentMethods! + : [aCartItemPaymentMethod()], + discountAmount: + overrides && overrides.hasOwnProperty("discountAmount") + ? overrides.discountAmount! + : "adipisci", + discountCode: + overrides && overrides.hasOwnProperty("discountCode") + ? overrides.discountCode! + : "ea", + errors: + overrides && overrides.hasOwnProperty("errors") + ? overrides.errors! + : [aCartItemError()], + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "c0a6e20d-ac48-4d0f-b244-16be13b393de", + item: + overrides && overrides.hasOwnProperty("item") + ? overrides.item! + : aCartAvailableItem(), + lineTotal: + overrides && overrides.hasOwnProperty("lineTotal") + ? overrides.lineTotal! + : "quasi", + price: + overrides && overrides.hasOwnProperty("price") + ? overrides.price! + : "molestiae", + selectedPaymentMethod: + overrides && overrides.hasOwnProperty("selectedPaymentMethod") + ? overrides.selectedPaymentMethod! + : aCartItemPaymentMethod(), + taxAmount: + overrides && overrides.hasOwnProperty("taxAmount") + ? overrides.taxAmount! + : "est" + }; +}; + +export const aCartItemCardPaymentMethod = ( + overrides?: Partial +): CartItemCardPaymentMethod => { + return { + cardBrand: + overrides && overrides.hasOwnProperty("cardBrand") + ? overrides.cardBrand! + : "voluptas", + cardExpMonth: + overrides && overrides.hasOwnProperty("cardExpMonth") + ? overrides.cardExpMonth! + : 9251, + cardExpYear: + overrides && overrides.hasOwnProperty("cardExpYear") + ? overrides.cardExpYear! + : 1037, + cardHolder: + overrides && overrides.hasOwnProperty("cardHolder") + ? overrides.cardHolder! + : "quos", + cardIsDefault: + overrides && overrides.hasOwnProperty("cardIsDefault") + ? overrides.cardIsDefault! + : false, + cardLast4: + overrides && overrides.hasOwnProperty("cardLast4") + ? overrides.cardLast4! + : "corrupti", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "012384a6-5e8b-4116-8656-60f062983a79", + name: + overrides && overrides.hasOwnProperty("name") ? overrides.name! : "fugit" + }; +}; + +export const aCartItemEmailFulfillment = ( + overrides?: Partial +): CartItemEmailFulfillment => { + return { + deliveryDate: + overrides && overrides.hasOwnProperty("deliveryDate") + ? overrides.deliveryDate! + : "1991-05-14", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "485d1fc1-e2eb-4708-a3b5-db85cb8c61ff", + messageFromSender: + overrides && overrides.hasOwnProperty("messageFromSender") + ? overrides.messageFromSender! + : "perspiciatis", + recipientEmail: + overrides && overrides.hasOwnProperty("recipientEmail") + ? overrides.recipientEmail! + : "vel", + recipientName: + overrides && overrides.hasOwnProperty("recipientName") + ? overrides.recipientName! + : "quis", + senderName: + overrides && overrides.hasOwnProperty("senderName") + ? overrides.senderName! + : "totam" + }; +}; + +export const aCartItemError = ( + overrides?: Partial +): CartItemError => { + return { + code: + overrides && overrides.hasOwnProperty("code") + ? overrides.code! + : CartItemErrorCode.CartMissingItemPaymentMethod, + description: + overrides && overrides.hasOwnProperty("description") + ? overrides.description! + : "veritatis", + message: + overrides && overrides.hasOwnProperty("message") + ? overrides.message! + : "sit" + }; +}; + +export const aCartItemGiftCardDesign = ( + overrides?: Partial +): CartItemGiftCardDesign => { + return { + backgroundColor: + overrides && overrides.hasOwnProperty("backgroundColor") + ? overrides.backgroundColor! + : "ut", + foregroundText: + overrides && overrides.hasOwnProperty("foregroundText") + ? overrides.foregroundText! + : "aut", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "c3487924-d5ed-42ef-858f-2dd3d200719a", + image: + overrides && overrides.hasOwnProperty("image") ? overrides.image! : "cum" + }; +}; + +export const aCartItemPaymentMethod = ( + overrides?: Partial +): CartItemPaymentMethod => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "ad35f645-97e1-48cf-9e6c-3770fa05c9ed", + name: overrides && overrides.hasOwnProperty("name") ? overrides.name! : "ut" + }; +}; + +export const aCartItemVoucherPaymentMethod = ( + overrides?: Partial +): CartItemVoucherPaymentMethod => { + return { + availableCount: + overrides && overrides.hasOwnProperty("availableCount") + ? overrides.availableCount! + : 9164, + availableVoucherIds: + overrides && overrides.hasOwnProperty("availableVoucherIds") + ? overrides.availableVoucherIds! + : ["a237ac53-0dfd-4134-9796-b552f9d54002"], + expiresOn: + overrides && overrides.hasOwnProperty("expiresOn") + ? overrides.expiresOn! + : "2014-04-13", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "0db55573-7ecd-4d87-9b88-5ac430da015a", + name: + overrides && overrides.hasOwnProperty("name") ? overrides.name! : "qui" + }; +}; + +export const aCartOffer = (overrides?: Partial): CartOffer => { + return { + applied: + overrides && overrides.hasOwnProperty("applied") + ? overrides.applied! + : false, + code: + overrides && overrides.hasOwnProperty("code") ? overrides.code! : "qui", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "4981842e-0768-4e79-8f14-b58322dc971a", + name: + overrides && overrides.hasOwnProperty("name") + ? overrides.name! + : "temporibus" + }; +}; + +export const aCartPriceRange = ( + overrides?: Partial +): CartPriceRange => { + return { + max: overrides && overrides.hasOwnProperty("max") ? overrides.max! : "et", + min: overrides && overrides.hasOwnProperty("min") ? overrides.min! : "ipsa", + variable: + overrides && overrides.hasOwnProperty("variable") + ? overrides.variable! + : false + }; +}; + +export const aCartPurchasableItem = ( + overrides?: Partial +): CartPurchasableItem => { + return { + addons: + overrides && overrides.hasOwnProperty("addons") + ? overrides.addons! + : [aCartAvailableItem()], + availablePaymentMethods: + overrides && overrides.hasOwnProperty("availablePaymentMethods") + ? overrides.availablePaymentMethods! + : [aCartItemPaymentMethod()], + discountAmount: + overrides && overrides.hasOwnProperty("discountAmount") + ? overrides.discountAmount! + : "id", + discountCode: + overrides && overrides.hasOwnProperty("discountCode") + ? overrides.discountCode! + : "odio", + errors: + overrides && overrides.hasOwnProperty("errors") + ? overrides.errors! + : [aCartItemError()], + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "3df93967-ad48-408f-b92e-a66c42d471a6", + item: + overrides && overrides.hasOwnProperty("item") + ? overrides.item! + : aCartAvailablePurchasableItem(), + lineTotal: + overrides && overrides.hasOwnProperty("lineTotal") + ? overrides.lineTotal! + : "eum", + price: + overrides && overrides.hasOwnProperty("price") + ? overrides.price! + : "eveniet", + selectedPaymentMethod: + overrides && overrides.hasOwnProperty("selectedPaymentMethod") + ? overrides.selectedPaymentMethod! + : aCartItemPaymentMethod(), + taxAmount: + overrides && overrides.hasOwnProperty("taxAmount") + ? overrides.taxAmount! + : "qui" + }; +}; + +export const aCartSetLocationInput = ( + overrides?: Partial +): CartSetLocationInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "5e4ba3c6-d1e6-463e-89e3-72781101dcbc", + locationId: + overrides && overrides.hasOwnProperty("locationId") + ? overrides.locationId! + : "a8157f74-51ab-4e9a-bff5-2a8fcab7513c" + }; +}; + +export const aCartSetLocationPayload = ( + overrides?: Partial +): CartSetLocationPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; +}; + +export const aCartSummary = (overrides?: Partial): CartSummary => { + return { + deposit: + overrides && overrides.hasOwnProperty("deposit") + ? overrides.deposit! + : DepositType.FullDeposit, + depositAmount: + overrides && overrides.hasOwnProperty("depositAmount") + ? overrides.depositAmount! + : "blanditiis", + discountAmount: + overrides && overrides.hasOwnProperty("discountAmount") + ? overrides.discountAmount! + : "sed", + gratuityAmount: + overrides && overrides.hasOwnProperty("gratuityAmount") + ? overrides.gratuityAmount! + : "quia", + paymentMethodRequired: + overrides && overrides.hasOwnProperty("paymentMethodRequired") + ? overrides.paymentMethodRequired! + : false, + roundingAmount: + overrides && overrides.hasOwnProperty("roundingAmount") + ? overrides.roundingAmount! + : "et", + subtotal: + overrides && overrides.hasOwnProperty("subtotal") + ? overrides.subtotal! + : "quis", + taxAmount: + overrides && overrides.hasOwnProperty("taxAmount") + ? overrides.taxAmount! + : "a", + total: + overrides && overrides.hasOwnProperty("total") + ? overrides.total! + : "ducimus" + }; +}; + +export const aCheckoutCartInput = ( + overrides?: Partial +): CheckoutCartInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "6e9ccdf8-a952-454c-817e-c88cdfc53f80" + }; +}; + +export const aCheckoutCartPayload = ( + overrides?: Partial +): CheckoutCartPayload => { + return { + appointments: + overrides && overrides.hasOwnProperty("appointments") + ? overrides.appointments! + : [aCartAppointment()], + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; +}; + +export const aClient = (overrides?: Partial): Client => { + return { + communicationSubscriptions: + overrides && overrides.hasOwnProperty("communicationSubscriptions") + ? overrides.communicationSubscriptions! + : [aCommunicationSubscription()], + email: + overrides && overrides.hasOwnProperty("email") + ? overrides.email! + : "molestias", + firstName: + overrides && overrides.hasOwnProperty("firstName") + ? overrides.firstName! + : "eaque", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "c884717e-580f-4651-a68e-705d18cd7f0e", + insertedAt: + overrides && overrides.hasOwnProperty("insertedAt") + ? overrides.insertedAt! + : "officia", + lastName: + overrides && overrides.hasOwnProperty("lastName") + ? overrides.lastName! + : "perspiciatis", + mobilePhone: + overrides && overrides.hasOwnProperty("mobilePhone") + ? overrides.mobilePhone! + : "rerum", + name: + overrides && overrides.hasOwnProperty("name") ? overrides.name! : "nihil", + pronoun: + overrides && overrides.hasOwnProperty("pronoun") + ? overrides.pronoun! + : "sit", + updatedAt: + overrides && overrides.hasOwnProperty("updatedAt") + ? overrides.updatedAt! + : "ut" + }; +}; + +export const aClientNote = (overrides?: Partial): ClientNote => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "d45fa612-40b6-40fd-ab8f-40576cc7ede1", + insertedAt: + overrides && overrides.hasOwnProperty("insertedAt") + ? overrides.insertedAt! + : "natus", + text: + overrides && overrides.hasOwnProperty("text") + ? overrides.text! + : "incidunt", + type: + overrides && overrides.hasOwnProperty("type") + ? overrides.type! + : NoteType.Allergy, + updatedAt: + overrides && overrides.hasOwnProperty("updatedAt") + ? overrides.updatedAt! + : "doloribus" + }; +}; + +export const aCommunicationChannelPreference = ( + overrides?: Partial +): CommunicationChannelPreference => { + return { + communicationChannel: + overrides && overrides.hasOwnProperty("communicationChannel") + ? overrides.communicationChannel! + : CommunicationChannel.Email, + enabled: + overrides && overrides.hasOwnProperty("enabled") + ? overrides.enabled! + : true + }; +}; + +export const aCommunicationSubscription = ( + overrides?: Partial +): CommunicationSubscription => { + return { + communicationChannelPreferences: + overrides && overrides.hasOwnProperty("communicationChannelPreferences") + ? overrides.communicationChannelPreferences! + : [aCommunicationChannelPreference()], + description: + overrides && overrides.hasOwnProperty("description") + ? overrides.description! + : "dolorum", + key: + overrides && overrides.hasOwnProperty("key") + ? overrides.key! + : CommunicationKey.AppointmentReminder, + title: + overrides && overrides.hasOwnProperty("title") + ? overrides.title! + : "dolores" + }; +}; + +export const aCommunicationSubscriptionInput = ( + overrides?: Partial +): CommunicationSubscriptionInput => { + return { + channel: + overrides && overrides.hasOwnProperty("channel") + ? overrides.channel! + : CommunicationChannel.Email, + enabled: + overrides && overrides.hasOwnProperty("enabled") + ? overrides.enabled! + : false, + key: + overrides && overrides.hasOwnProperty("key") + ? overrides.key! + : CommunicationKey.AppointmentReminder + }; +}; + +export const aConfirmAppointmentInput = ( + overrides?: Partial +): ConfirmAppointmentInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "384c3c41-c7aa-424b-8a45-6fa9a8d6923f" + }; +}; + +export const aConfirmAppointmentPayload = ( + overrides?: Partial +): ConfirmAppointmentPayload => { + return { + appointment: + overrides && overrides.hasOwnProperty("appointment") + ? overrides.appointment! + : anAppointment() + }; +}; + +export const aCreateCartGiftCardItemEmailFulfillmentInput = ( + overrides?: Partial +): CreateCartGiftCardItemEmailFulfillmentInput => { + return { + deliveryDate: + overrides && overrides.hasOwnProperty("deliveryDate") + ? overrides.deliveryDate! + : "2001-04-25", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "a42f1a85-0f55-48a7-95cd-918a7d0ce82e", + itemId: + overrides && overrides.hasOwnProperty("itemId") + ? overrides.itemId! + : "6df8c5a0-66ae-472d-95d3-fd5dee41d9e6", + messageFromSender: + overrides && overrides.hasOwnProperty("messageFromSender") + ? overrides.messageFromSender! + : "molestiae", + recipientEmail: + overrides && overrides.hasOwnProperty("recipientEmail") + ? overrides.recipientEmail! + : "harum", + recipientName: + overrides && overrides.hasOwnProperty("recipientName") + ? overrides.recipientName! + : "maiores", + senderName: + overrides && overrides.hasOwnProperty("senderName") + ? overrides.senderName! + : "doloribus" + }; +}; + +export const aCreateCartGiftCardItemEmailFulfillmentPayload = ( + overrides?: Partial +): CreateCartGiftCardItemEmailFulfillmentPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart(), + emailFulfillment: + overrides && overrides.hasOwnProperty("emailFulfillment") + ? overrides.emailFulfillment! + : aCartItemEmailFulfillment() + }; +}; + +export const aCreateCartGuestInput = ( + overrides?: Partial +): CreateCartGuestInput => { + return { + email: + overrides && overrides.hasOwnProperty("email") + ? overrides.email! + : "illum", + firstName: + overrides && overrides.hasOwnProperty("firstName") + ? overrides.firstName! + : "ratione", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "7d2a124b-ca45-42ce-b3e8-59fbf3793f6c", + lastName: + overrides && overrides.hasOwnProperty("lastName") + ? overrides.lastName! + : "sapiente", + phoneNumber: + overrides && overrides.hasOwnProperty("phoneNumber") + ? overrides.phoneNumber! + : "quod" + }; +}; + +export const aCreateCartGuestPayload = ( + overrides?: Partial +): CreateCartGuestPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart(), + guest: + overrides && overrides.hasOwnProperty("guest") + ? overrides.guest! + : aCartGuest() + }; +}; + +export const aCreateCartInput = ( + overrides?: Partial +): CreateCartInput => { + return { + advanceGratuity: + overrides && overrides.hasOwnProperty("advanceGratuity") + ? overrides.advanceGratuity! + : aCartAdvanceGratuityInput(), + clientInformation: + overrides && overrides.hasOwnProperty("clientInformation") + ? overrides.clientInformation! + : aCartClientInformationInput(), + clientMessage: + overrides && overrides.hasOwnProperty("clientMessage") + ? overrides.clientMessage! + : "consequatur", + discountCode: + overrides && overrides.hasOwnProperty("discountCode") + ? overrides.discountCode! + : "cumque", + locationId: + overrides && overrides.hasOwnProperty("locationId") + ? overrides.locationId! + : "72d57caf-a053-423a-884f-644b8bbfec80", + referralSource: + overrides && overrides.hasOwnProperty("referralSource") + ? overrides.referralSource! + : "omnis" + }; +}; + +export const aCreateCartPayload = ( + overrides?: Partial +): CreateCartPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; +}; + +export const aCreateClientNoteInput = ( + overrides?: Partial +): CreateClientNoteInput => { + return { + text: + overrides && overrides.hasOwnProperty("text") ? overrides.text! : "ut", + type: + overrides && overrides.hasOwnProperty("type") + ? overrides.type! + : NoteType.Allergy + }; +}; + +export const aCreateClientNotePayload = ( + overrides?: Partial +): CreateClientNotePayload => { + return { + clientNote: + overrides && overrides.hasOwnProperty("clientNote") + ? overrides.clientNote! + : aClientNote() + }; +}; + +export const aCreateCreditCardInput = ( + overrides?: Partial +): CreateCreditCardInput => { + return { + nickname: + overrides && overrides.hasOwnProperty("nickname") + ? overrides.nickname! + : "saepe", + vaultToken: + overrides && overrides.hasOwnProperty("vaultToken") + ? overrides.vaultToken! + : "enim" + }; +}; + +export const aCreateCreditCardResult = ( + overrides?: Partial +): CreateCreditCardResult => { + return { + creditCard: + overrides && overrides.hasOwnProperty("creditCard") + ? overrides.creditCard! + : aCreditCard() + }; +}; + +export const aCreateCustomFormInput = ( + overrides?: Partial +): CreateCustomFormInput => { + return { + answers: + overrides && overrides.hasOwnProperty("answers") + ? overrides.answers! + : [aCustomFormAnswer()], + appointmentId: + overrides && overrides.hasOwnProperty("appointmentId") + ? overrides.appointmentId! + : "ce074b34-4542-479e-a282-9349074546b7", + offline: + overrides && overrides.hasOwnProperty("offline") + ? overrides.offline! + : false, + submit: + overrides && overrides.hasOwnProperty("submit") + ? overrides.submit! + : false, + submittedAt: + overrides && overrides.hasOwnProperty("submittedAt") + ? overrides.submittedAt! + : "voluptatibus", + versionId: + overrides && overrides.hasOwnProperty("versionId") + ? overrides.versionId! + : "2f93a17f-e77c-45cd-8bee-83c8de19ebb0" + }; +}; + +export const aCreditCard = (overrides?: Partial): CreditCard => { + return { + brand: + overrides && overrides.hasOwnProperty("brand") + ? overrides.brand! + : CardBrand.Amex, + expMonth: + overrides && overrides.hasOwnProperty("expMonth") + ? overrides.expMonth! + : 4649, + expYear: + overrides && overrides.hasOwnProperty("expYear") + ? overrides.expYear! + : 6696, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "a760a67f-55cf-493e-b870-36139c4bfbf6", + isExpired: + overrides && overrides.hasOwnProperty("isExpired") + ? overrides.isExpired! + : false, + last4: + overrides && overrides.hasOwnProperty("last4") ? overrides.last4! : "illo" + }; +}; + +export const aCreditCardConnection = ( + overrides?: Partial +): CreditCardConnection => { + return { + edges: + overrides && overrides.hasOwnProperty("edges") + ? overrides.edges! + : [aCreditCardEdge()], + pageInfo: + overrides && overrides.hasOwnProperty("pageInfo") + ? overrides.pageInfo! + : aPageInfo() + }; +}; + +export const aCreditCardEdge = ( + overrides?: Partial +): CreditCardEdge => { + return { + cursor: + overrides && overrides.hasOwnProperty("cursor") + ? overrides.cursor! + : "sapiente", + node: + overrides && overrides.hasOwnProperty("node") + ? overrides.node! + : aCreditCard() + }; +}; + +export const aCustomForm = (overrides?: Partial): CustomForm => { + return { + appointmentId: + overrides && overrides.hasOwnProperty("appointmentId") + ? overrides.appointmentId! + : "c470891b-6dd5-4d45-a480-a1d455776ab0", + clientId: + overrides && overrides.hasOwnProperty("clientId") + ? overrides.clientId! + : "76f2e697-7dc2-4cde-aa1f-2c7d9f144b2a", + components: + overrides && overrides.hasOwnProperty("components") + ? overrides.components! + : [aCustomFormComponent()], + formTemplate: + overrides && overrides.hasOwnProperty("formTemplate") + ? overrides.formTemplate! + : aFormTemplate(), + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "329cf99e-2a1f-45d1-9960-ebb1fd5d85f2", + insertedAt: + overrides && overrides.hasOwnProperty("insertedAt") + ? overrides.insertedAt! + : "accusantium", + notStarted: + overrides && overrides.hasOwnProperty("notStarted") + ? overrides.notStarted! + : false, + submittedAt: + overrides && overrides.hasOwnProperty("submittedAt") + ? overrides.submittedAt! + : "sed", + version: + overrides && overrides.hasOwnProperty("version") + ? overrides.version! + : aCustomFormVersion() + }; +}; + +export const aCustomFormAnswer = ( + overrides?: Partial +): CustomFormAnswer => { + return { + checkboxAnswer: + overrides && overrides.hasOwnProperty("checkboxAnswer") + ? overrides.checkboxAnswer! + : ["04c3d97d-8cb0-4f2e-8424-c324878f2dbb"], + dateAnswer: + overrides && overrides.hasOwnProperty("dateAnswer") + ? overrides.dateAnswer! + : "et", + dropdownAnswer: + overrides && overrides.hasOwnProperty("dropdownAnswer") + ? overrides.dropdownAnswer! + : ["a8e1a8af-24e7-448f-bf9f-17fb4bfa252b"], + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "5bf42edc-2ab3-4d31-bf46-cb693c8f157f", + imageAnswer: + overrides && overrides.hasOwnProperty("imageAnswer") + ? overrides.imageAnswer! + : aCustomFormImageAnswer(), + otherAnswer: + overrides && overrides.hasOwnProperty("otherAnswer") + ? overrides.otherAnswer! + : "quia", + radioAnswer: + overrides && overrides.hasOwnProperty("radioAnswer") + ? overrides.radioAnswer! + : "02781678-1b8b-446b-aae2-0eee94cb948e", + selectAnswer: + overrides && overrides.hasOwnProperty("selectAnswer") + ? overrides.selectAnswer! + : ["002623a1-6adc-48f5-8c93-88cced4228ac"], + signatureAnswer: + overrides && overrides.hasOwnProperty("signatureAnswer") + ? overrides.signatureAnswer! + : aCustomFormSignatureAnswer(), + textAnswer: + overrides && overrides.hasOwnProperty("textAnswer") + ? overrides.textAnswer! + : "voluptates", + textareaAnswer: + overrides && overrides.hasOwnProperty("textareaAnswer") + ? overrides.textareaAnswer! + : "reprehenderit" + }; +}; + +export const aCustomFormComponent = ( + overrides?: Partial +): CustomFormComponent => { + return { + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 4290, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "03f34f15-43b6-403d-9c52-e87be5c45a12", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 9848, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 1554, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 4104 + }; +}; + +export const aCustomFormComponentCheckbox = ( + overrides?: Partial +): CustomFormComponentCheckbox => { + return { + checkboxAnswer: + overrides && overrides.hasOwnProperty("checkboxAnswer") + ? overrides.checkboxAnswer! + : ["6e144661-e646-4ca9-8480-bf3371cb3907"], + floatWidth: + overrides && overrides.hasOwnProperty("floatWidth") + ? overrides.floatWidth! + : "quia", + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 4286, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "65d8e03c-acd0-44b2-ba9a-d3d57c1f17a0", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + label: + overrides && overrides.hasOwnProperty("label") ? overrides.label! : "quo", + required: + overrides && overrides.hasOwnProperty("required") + ? overrides.required! + : true, + values: + overrides && overrides.hasOwnProperty("values") + ? overrides.values! + : [aFormComponentCheckboxValue()], + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 3823, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 5870, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 9645 + }; +}; + +export const aCustomFormComponentCheckboxV2 = ( + overrides?: Partial +): CustomFormComponentCheckboxV2 => { + return { + checkboxAnswer: + overrides && overrides.hasOwnProperty("checkboxAnswer") + ? overrides.checkboxAnswer! + : ["168e03b2-6e1e-4c2a-a40a-3b9654fab969"], + enableOther: + overrides && overrides.hasOwnProperty("enableOther") + ? overrides.enableOther! + : false, + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 9752, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "efda677f-01cd-4fc1-94eb-13a56a742aa8", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "debitis", + otherAnswer: + overrides && overrides.hasOwnProperty("otherAnswer") + ? overrides.otherAnswer! + : "nam", + required: + overrides && overrides.hasOwnProperty("required") + ? overrides.required! + : true, + values: + overrides && overrides.hasOwnProperty("values") + ? overrides.values! + : [aFormComponentV2CheckboxValue()], + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 7096, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 6208, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 9663 + }; +}; + +export const aCustomFormComponentDate = ( + overrides?: Partial +): CustomFormComponentDate => { + return { + dateAnswer: + overrides && overrides.hasOwnProperty("dateAnswer") + ? overrides.dateAnswer! + : "facere", + floatWidth: + overrides && overrides.hasOwnProperty("floatWidth") + ? overrides.floatWidth! + : "consequatur", + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 3150, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "8e304ba9-55b4-41f4-8006-d617ef8832fc", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "sunt", + required: + overrides && overrides.hasOwnProperty("required") + ? overrides.required! + : false, + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 7133, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 1838, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 4109 + }; +}; + +export const aCustomFormComponentDateV2 = ( + overrides?: Partial +): CustomFormComponentDateV2 => { + return { + autoPopulate: + overrides && overrides.hasOwnProperty("autoPopulate") + ? overrides.autoPopulate! + : false, + connectedField: + overrides && overrides.hasOwnProperty("connectedField") + ? overrides.connectedField! + : "dolor", + connectedSource: + overrides && overrides.hasOwnProperty("connectedSource") + ? overrides.connectedSource! + : "cum", + dateAnswer: + overrides && overrides.hasOwnProperty("dateAnswer") + ? overrides.dateAnswer! + : "illo", + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 8248, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "58c6819e-e4a9-434d-8878-cb394bc65fbb", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "doloremque", + required: + overrides && overrides.hasOwnProperty("required") + ? overrides.required! + : true, + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 3810, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 5624, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 9486 + }; +}; + +export const aCustomFormComponentDividerV2 = ( + overrides?: Partial +): CustomFormComponentDividerV2 => { + return { + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 545, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "4b5cd4ca-3e21-4ff3-b3c6-b9f8053372d3", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 7908, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 2170, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 7159 + }; +}; + +export const aCustomFormComponentDropdownV2 = ( + overrides?: Partial +): CustomFormComponentDropdownV2 => { + return { + autoPopulate: + overrides && overrides.hasOwnProperty("autoPopulate") + ? overrides.autoPopulate! + : true, + connectedField: + overrides && overrides.hasOwnProperty("connectedField") + ? overrides.connectedField! + : "maiores", + connectedSource: + overrides && overrides.hasOwnProperty("connectedSource") + ? overrides.connectedSource! + : "dolorum", + dropdownAnswer: + overrides && overrides.hasOwnProperty("dropdownAnswer") + ? overrides.dropdownAnswer! + : ["848214cf-2921-4c9a-b043-6e986edc93fb"], + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 5751, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "9fc56df1-bbae-41f6-b28f-c1dcd64b2518", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "blanditiis", + manageReferralSourcesByLocation: + overrides && overrides.hasOwnProperty("manageReferralSourcesByLocation") + ? overrides.manageReferralSourcesByLocation! + : false, + multiple: + overrides && overrides.hasOwnProperty("multiple") + ? overrides.multiple! + : true, + required: + overrides && overrides.hasOwnProperty("required") + ? overrides.required! + : true, + values: + overrides && overrides.hasOwnProperty("values") + ? overrides.values! + : [aFormComponentCheckboxValue()], + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 560, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 3888, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 1027 + }; +}; + +export const aCustomFormComponentH1 = ( + overrides?: Partial +): CustomFormComponentH1 => { + return { + floatWidth: + overrides && overrides.hasOwnProperty("floatWidth") + ? overrides.floatWidth! + : "expedita", + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 6410, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "e922b85f-0cd6-47d2-8295-e65628360413", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "consequatur", + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 6817, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 6546, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 3525 + }; +}; + +export const aCustomFormComponentH2 = ( + overrides?: Partial +): CustomFormComponentH2 => { + return { + floatWidth: + overrides && overrides.hasOwnProperty("floatWidth") + ? overrides.floatWidth! + : "deleniti", + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 9697, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "6fbebef8-9306-4bfd-b380-03f79f879b00", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "officiis", + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 2957, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 817, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 6115 + }; +}; + +export const aCustomFormComponentImageAnswer = ( + overrides?: Partial +): CustomFormComponentImageAnswer => { + return { + annotatedImageUrl: + overrides && overrides.hasOwnProperty("annotatedImageUrl") + ? overrides.annotatedImageUrl! + : "unde", + canvasDataUrl: + overrides && overrides.hasOwnProperty("canvasDataUrl") + ? overrides.canvasDataUrl! + : "adipisci", + customFormImageId: + overrides && overrides.hasOwnProperty("customFormImageId") + ? overrides.customFormImageId! + : "5aff1281-8e69-4f6d-b704-198069e86ee4", + sourceImageUrl: + overrides && overrides.hasOwnProperty("sourceImageUrl") + ? overrides.sourceImageUrl! + : "sint" + }; +}; + +export const aCustomFormComponentImageUploaderV2 = ( + overrides?: Partial +): CustomFormComponentImageUploaderV2 => { + return { + enableImageMarkup: + overrides && overrides.hasOwnProperty("enableImageMarkup") + ? overrides.enableImageMarkup! + : false, + fileUpload: + overrides && overrides.hasOwnProperty("fileUpload") + ? overrides.fileUpload! + : aCustomFormComponentSignatureUpload(), + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 3519, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "4c392cba-46bf-4894-b9ee-fe123d13cc57", + imageAnswer: + overrides && overrides.hasOwnProperty("imageAnswer") + ? overrides.imageAnswer! + : aCustomFormComponentImageAnswer(), + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + label: + overrides && overrides.hasOwnProperty("label") ? overrides.label! : "et", + required: + overrides && overrides.hasOwnProperty("required") + ? overrides.required! + : true, + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 7318, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 3810, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 9545 + }; +}; + +export const aCustomFormComponentImageV2 = ( + overrides?: Partial +): CustomFormComponentImageV2 => { + return { + enableImageMarkup: + overrides && overrides.hasOwnProperty("enableImageMarkup") + ? overrides.enableImageMarkup! + : false, + fileUploadId: + overrides && overrides.hasOwnProperty("fileUploadId") + ? overrides.fileUploadId! + : "tenetur", + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 6055, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "47245256-45dd-4610-aac7-a6c2dffaba65", + imageAnswer: + overrides && overrides.hasOwnProperty("imageAnswer") + ? overrides.imageAnswer! + : aCustomFormComponentImageAnswer(), + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "dolorem", + src: + overrides && overrides.hasOwnProperty("src") ? overrides.src! : "quidem", + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 8508, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 5389, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 6179 + }; +}; + +export const aCustomFormComponentLogo = ( + overrides?: Partial +): CustomFormComponentLogo => { + return { + floatWidth: + overrides && overrides.hasOwnProperty("floatWidth") + ? overrides.floatWidth! + : "nesciunt", + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 6571, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "3191facc-5461-4b9f-84f9-9bc23dac2a39", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + markdownContent: + overrides && overrides.hasOwnProperty("markdownContent") + ? overrides.markdownContent! + : "ea", + markdownHtml: + overrides && overrides.hasOwnProperty("markdownHtml") + ? overrides.markdownHtml! + : "consequatur", + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 6825, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 5065, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 7744 + }; +}; + +export const aCustomFormComponentLogoV2 = ( + overrides?: Partial +): CustomFormComponentLogoV2 => { + return { + fileUploadId: + overrides && overrides.hasOwnProperty("fileUploadId") + ? overrides.fileUploadId! + : "nobis", + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 4140, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "87b4d798-0b7a-4816-8960-c6871c1a8b10", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + src: + overrides && overrides.hasOwnProperty("src") + ? overrides.src! + : "incidunt", + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 7931, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 3512, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 7369 + }; +}; + +export const aCustomFormComponentMarkdown = ( + overrides?: Partial +): CustomFormComponentMarkdown => { + return { + floatWidth: + overrides && overrides.hasOwnProperty("floatWidth") + ? overrides.floatWidth! + : "et", + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 8600, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "fcd0b3e9-7f91-4254-af7e-e3118b4aabcc", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + markdownContent: + overrides && overrides.hasOwnProperty("markdownContent") + ? overrides.markdownContent! + : "sit", + markdownHtml: + overrides && overrides.hasOwnProperty("markdownHtml") + ? overrides.markdownHtml! + : "quibusdam", + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 8024, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 767, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 6321 + }; +}; + +export const aCustomFormComponentMultipleChoiceV2 = ( + overrides?: Partial +): CustomFormComponentMultipleChoiceV2 => { + return { + autoPopulate: + overrides && overrides.hasOwnProperty("autoPopulate") + ? overrides.autoPopulate! + : false, + connectedField: + overrides && overrides.hasOwnProperty("connectedField") + ? overrides.connectedField! + : "totam", + connectedSource: + overrides && overrides.hasOwnProperty("connectedSource") + ? overrides.connectedSource! + : "recusandae", + enableOther: + overrides && overrides.hasOwnProperty("enableOther") + ? overrides.enableOther! + : false, + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 8661, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "cdc851f3-1af4-4c86-b8a8-b9fd87cd5a35", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + label: + overrides && overrides.hasOwnProperty("label") ? overrides.label! : "est", + otherAnswer: + overrides && overrides.hasOwnProperty("otherAnswer") + ? overrides.otherAnswer! + : "quibusdam", + radioAnswer: + overrides && overrides.hasOwnProperty("radioAnswer") + ? overrides.radioAnswer! + : "inventore", + required: + overrides && overrides.hasOwnProperty("required") + ? overrides.required! + : false, + values: + overrides && overrides.hasOwnProperty("values") + ? overrides.values! + : [aFormComponentV2CheckboxValue()], + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 5570, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 5712, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 3741 + }; +}; + +export const aCustomFormComponentRadio = ( + overrides?: Partial +): CustomFormComponentRadio => { + return { + floatWidth: + overrides && overrides.hasOwnProperty("floatWidth") + ? overrides.floatWidth! + : "est", + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 2747, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "9ec19d31-9bbb-4450-b1c6-da9b4fef0d24", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "sapiente", + radioAnswer: + overrides && overrides.hasOwnProperty("radioAnswer") + ? overrides.radioAnswer! + : "veniam", + required: + overrides && overrides.hasOwnProperty("required") + ? overrides.required! + : false, + values: + overrides && overrides.hasOwnProperty("values") + ? overrides.values! + : [aCustomFormComponentRadioValue()], + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 288, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 8306, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 6539 + }; +}; + +export const aCustomFormComponentRadioValue = ( + overrides?: Partial +): CustomFormComponentRadioValue => { + return { + id: overrides && overrides.hasOwnProperty("id") ? overrides.id! : "cumque", + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "fugit" + }; +}; + +export const aCustomFormComponentSelect = ( + overrides?: Partial +): CustomFormComponentSelect => { + return { + floatWidth: + overrides && overrides.hasOwnProperty("floatWidth") + ? overrides.floatWidth! + : "voluptatem", + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 2418, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "f5d0aa7f-288f-4947-9b00-87554be14a3e", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "enim", + required: + overrides && overrides.hasOwnProperty("required") + ? overrides.required! + : false, + selectAnswer: + overrides && overrides.hasOwnProperty("selectAnswer") + ? overrides.selectAnswer! + : ["porro"], + selectMultiple: + overrides && overrides.hasOwnProperty("selectMultiple") + ? overrides.selectMultiple! + : true, + values: + overrides && overrides.hasOwnProperty("values") + ? overrides.values! + : [aCustomFormComponentSelectValue()], + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 1412, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 5014, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 8963 + }; +}; + +export const aCustomFormComponentSelectValue = ( + overrides?: Partial +): CustomFormComponentSelectValue => { + return { + id: overrides && overrides.hasOwnProperty("id") ? overrides.id! : "qui", + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "similique" + }; +}; + +export const aCustomFormComponentSignature = ( + overrides?: Partial +): CustomFormComponentSignature => { + return { + enableWet: + overrides && overrides.hasOwnProperty("enableWet") + ? overrides.enableWet! + : false, + fileUpload: + overrides && overrides.hasOwnProperty("fileUpload") + ? overrides.fileUpload! + : aCustomFormComponentSignatureUpload(), + floatWidth: + overrides && overrides.hasOwnProperty("floatWidth") + ? overrides.floatWidth! + : "et", + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 341, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "8b7f765d-a0ac-4069-af45-04dc447aadfc", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "labore", + required: + overrides && overrides.hasOwnProperty("required") + ? overrides.required! + : true, + signatureAnswer: + overrides && overrides.hasOwnProperty("signatureAnswer") + ? overrides.signatureAnswer! + : aCustomFormComponentSignatureAnswer(), + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 1435, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 2057, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 9001 + }; +}; + +export const aCustomFormComponentSignatureAnswer = ( + overrides?: Partial +): CustomFormComponentSignatureAnswer => { + return { + fileUploadId: + overrides && overrides.hasOwnProperty("fileUploadId") + ? overrides.fileUploadId! + : "75d7e9d9-2dbb-4efc-922d-12cc3bf98c29", + name: + overrides && overrides.hasOwnProperty("name") + ? overrides.name! + : "assumenda", + url: overrides && overrides.hasOwnProperty("url") ? overrides.url! : "eius" + }; +}; + +export const aCustomFormComponentSignatureUpload = ( + overrides?: Partial +): CustomFormComponentSignatureUpload => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "9ef0b671-68a4-4fd3-8e96-529b47d9127a", + signedPutUrl: + overrides && overrides.hasOwnProperty("signedPutUrl") + ? overrides.signedPutUrl! + : "ut" + }; +}; + +export const aCustomFormComponentSignatureV2 = ( + overrides?: Partial +): CustomFormComponentSignatureV2 => { + return { + enableWetV2: + overrides && overrides.hasOwnProperty("enableWetV2") + ? overrides.enableWetV2! + : true, + fileUpload: + overrides && overrides.hasOwnProperty("fileUpload") + ? overrides.fileUpload! + : aCustomFormComponentSignatureUpload(), + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 3418, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "8fefa92b-0ff0-4efe-9b92-0ef3add9a078", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "nulla", + required: + overrides && overrides.hasOwnProperty("required") + ? overrides.required! + : false, + signatureAnswer: + overrides && overrides.hasOwnProperty("signatureAnswer") + ? overrides.signatureAnswer! + : aCustomFormComponentSignatureAnswer(), + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 9695, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 2151, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 6352 + }; +}; + +export const aCustomFormComponentText = ( + overrides?: Partial +): CustomFormComponentText => { + return { + floatWidth: + overrides && overrides.hasOwnProperty("floatWidth") + ? overrides.floatWidth! + : "repudiandae", + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 2348, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "9b6989a5-dd91-4322-a852-68e5dc0e4c56", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "illo", + placeholder: + overrides && overrides.hasOwnProperty("placeholder") + ? overrides.placeholder! + : "magni", + required: + overrides && overrides.hasOwnProperty("required") + ? overrides.required! + : false, + textAnswer: + overrides && overrides.hasOwnProperty("textAnswer") + ? overrides.textAnswer! + : "consectetur", + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 7109, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 6817, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 9850 + }; +}; + +export const aCustomFormComponentTextInputV2 = ( + overrides?: Partial +): CustomFormComponentTextInputV2 => { + return { + autoPopulate: + overrides && overrides.hasOwnProperty("autoPopulate") + ? overrides.autoPopulate! + : true, + connectedField: + overrides && overrides.hasOwnProperty("connectedField") + ? overrides.connectedField! + : "voluptatem", + connectedSource: + overrides && overrides.hasOwnProperty("connectedSource") + ? overrides.connectedSource! + : "debitis", + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 8868, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "fb0ded07-1b48-4e0c-9970-ead30be16e3e", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "quis", + longResponse: + overrides && overrides.hasOwnProperty("longResponse") + ? overrides.longResponse! + : true, + placeholder: + overrides && overrides.hasOwnProperty("placeholder") + ? overrides.placeholder! + : "qui", + required: + overrides && overrides.hasOwnProperty("required") + ? overrides.required! + : true, + textAnswer: + overrides && overrides.hasOwnProperty("textAnswer") + ? overrides.textAnswer! + : "consequuntur", + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 590, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 7612, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 2300 + }; +}; + +export const aCustomFormComponentTextV2 = ( + overrides?: Partial +): CustomFormComponentTextV2 => { + return { + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 9525, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "8994fa92-f6c9-4d93-8634-57548479a655", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + value: + overrides && overrides.hasOwnProperty("value") + ? overrides.value! + : "cupiditate", + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 7090, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 1499, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 9548 + }; +}; + +export const aCustomFormComponentTextarea = ( + overrides?: Partial +): CustomFormComponentTextarea => { + return { + h: overrides && overrides.hasOwnProperty("h") ? overrides.h! : 7625, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "ec292a84-2609-42d6-89a1-58e6e6a598f6", + kind: + overrides && overrides.hasOwnProperty("kind") + ? overrides.kind! + : FormComponentKind.Checkbox, + label: + overrides && overrides.hasOwnProperty("label") ? overrides.label! : "aut", + placeholder: + overrides && overrides.hasOwnProperty("placeholder") + ? overrides.placeholder! + : "sint", + required: + overrides && overrides.hasOwnProperty("required") + ? overrides.required! + : false, + textAnswer: + overrides && overrides.hasOwnProperty("textAnswer") + ? overrides.textAnswer! + : "enim", + textareaAnswer: + overrides && overrides.hasOwnProperty("textareaAnswer") + ? overrides.textareaAnswer! + : "aut", + w: overrides && overrides.hasOwnProperty("w") ? overrides.w! : 8570, + x: overrides && overrides.hasOwnProperty("x") ? overrides.x! : 8433, + y: overrides && overrides.hasOwnProperty("y") ? overrides.y! : 6361 + }; +}; + +export const aCustomFormImageAnswer = ( + overrides?: Partial +): CustomFormImageAnswer => { + return { + customFormImageId: + overrides && overrides.hasOwnProperty("customFormImageId") + ? overrides.customFormImageId! + : "51e71e0e-8b8e-4c72-8520-885bd7c6b549" + }; +}; + +export const aCustomFormSignatureAnswer = ( + overrides?: Partial +): CustomFormSignatureAnswer => { + return { + fileUploadId: + overrides && overrides.hasOwnProperty("fileUploadId") + ? overrides.fileUploadId! + : "27b21f4a-eb6f-40f9-97a9-cc43895db38b", + name: + overrides && overrides.hasOwnProperty("name") ? overrides.name! : "est" + }; +}; + +export const aCustomFormTemplate = ( + overrides?: Partial +): CustomFormTemplate => { + return { + active: + overrides && overrides.hasOwnProperty("active") + ? overrides.active! + : true, + components: + overrides && overrides.hasOwnProperty("components") + ? overrides.components! + : [aCustomFormComponent()], + createdByStaff: + overrides && overrides.hasOwnProperty("createdByStaff") + ? overrides.createdByStaff! + : aStaff(), + currentVersion: + overrides && overrides.hasOwnProperty("currentVersion") + ? overrides.currentVersion! + : aCustomFormVersion(), + description: + overrides && overrides.hasOwnProperty("description") + ? overrides.description! + : "error", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "787caa0d-2a92-4417-b32e-fe56462b5621", + insertedAt: + overrides && overrides.hasOwnProperty("insertedAt") + ? overrides.insertedAt! + : "quisquam", + internal: + overrides && overrides.hasOwnProperty("internal") + ? overrides.internal! + : true, + name: overrides && overrides.hasOwnProperty("name") ? overrides.name! : "a", + requestDuringBooking: + overrides && overrides.hasOwnProperty("requestDuringBooking") + ? overrides.requestDuringBooking! + : true, + requestDuringCheckin: + overrides && overrides.hasOwnProperty("requestDuringCheckin") + ? overrides.requestDuringCheckin! + : true, + requestDuringReminder: + overrides && overrides.hasOwnProperty("requestDuringReminder") + ? overrides.requestDuringReminder! + : true, + requestSameDay: + overrides && overrides.hasOwnProperty("requestSameDay") + ? overrides.requestSameDay! + : false, + resource: + overrides && overrides.hasOwnProperty("resource") + ? overrides.resource! + : FormResourceType.Appointment, + sortOrder: + overrides && overrides.hasOwnProperty("sortOrder") + ? overrides.sortOrder! + : 0.11, + status: + overrides && overrides.hasOwnProperty("status") + ? overrides.status! + : "sed", + templateLocations: + overrides && overrides.hasOwnProperty("templateLocations") + ? overrides.templateLocations! + : [aCustomFormTemplateLocation()], + templateServices: + overrides && overrides.hasOwnProperty("templateServices") + ? overrides.templateServices! + : [aCustomFormTemplateService()], + updatedAt: + overrides && overrides.hasOwnProperty("updatedAt") + ? overrides.updatedAt! + : "temporibus" + }; +}; + +export const aCustomFormTemplateLocation = ( + overrides?: Partial +): CustomFormTemplateLocation => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "0774308d-ffd8-4e2a-acef-784cf6323bbc", + location: + overrides && overrides.hasOwnProperty("location") + ? overrides.location! + : aLocation(), + template: + overrides && overrides.hasOwnProperty("template") + ? overrides.template! + : aCustomFormTemplate() + }; +}; + +export const aCustomFormTemplateService = ( + overrides?: Partial +): CustomFormTemplateService => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "59ed2d68-5aa7-41b4-b177-8c7d56fe135d", + service: + overrides && overrides.hasOwnProperty("service") + ? overrides.service! + : aService(), + template: + overrides && overrides.hasOwnProperty("template") + ? overrides.template! + : aCustomFormTemplate() + }; +}; + +export const aCustomFormVersion = ( + overrides?: Partial +): CustomFormVersion => { + return { + components: + overrides && overrides.hasOwnProperty("components") + ? overrides.components! + : [aCustomFormComponent()], + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "333ccd5d-150d-45fd-8c67-52f9ba789225", + template: + overrides && overrides.hasOwnProperty("template") + ? overrides.template! + : aCustomFormTemplate(), + templatingVersion: + overrides && overrides.hasOwnProperty("templatingVersion") + ? overrides.templatingVersion! + : 4607 + }; +}; + +export const aDeleteCartGiftCardItemEmailFulfillmentInput = ( + overrides?: Partial +): DeleteCartGiftCardItemEmailFulfillmentInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "efff04a9-263c-4776-ab02-e54d829b7913", + itemId: + overrides && overrides.hasOwnProperty("itemId") + ? overrides.itemId! + : "c8047555-e600-4f4d-86cd-303dfb80edab" + }; +}; + +export const aDeleteCartGiftCardItemEmailFulfillmentPayload = ( + overrides?: Partial +): DeleteCartGiftCardItemEmailFulfillmentPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; +}; + +export const aDeleteCartGuestInput = ( + overrides?: Partial +): DeleteCartGuestInput => { + return { + guestId: + overrides && overrides.hasOwnProperty("guestId") + ? overrides.guestId! + : "059a9393-1d00-4710-8353-9709308ac23a", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "c93b9cd1-a36b-4892-8065-02f0fd45f50b" + }; +}; + +export const aDeleteCartGuestPayload = ( + overrides?: Partial +): DeleteCartGuestPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; +}; + +export const aFormComponentCheckboxValue = ( + overrides?: Partial +): FormComponentCheckboxValue => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "ba5b7301-81bc-4fe3-a8d7-6d16001a4268", + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "dolores" + }; +}; + +export const aFormComponentV2CheckboxValue = ( + overrides?: Partial +): FormComponentV2CheckboxValue => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "d03dddd9-2de7-416d-ae1c-00d653172a2b", + label: + overrides && overrides.hasOwnProperty("label") + ? overrides.label! + : "quisquam" + }; +}; + +export const aFormTemplate = ( + overrides?: Partial +): FormTemplate => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "5b41abee-e480-4954-8b23-bf9879ad7eef", + name: + overrides && overrides.hasOwnProperty("name") ? overrides.name! : "animi" + }; +}; + +export const aGiftCardDesign = ( + overrides?: Partial +): GiftCardDesign => { + return { + backgroundColor: + overrides && overrides.hasOwnProperty("backgroundColor") + ? overrides.backgroundColor! + : "quasi", + foregroundText: + overrides && overrides.hasOwnProperty("foregroundText") + ? overrides.foregroundText! + : "est", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "f216822a-9565-403c-a951-481344cfba48", + image: + overrides && overrides.hasOwnProperty("image") + ? overrides.image! + : "itaque", + name: + overrides && overrides.hasOwnProperty("name") ? overrides.name! : "enim", + preset: + overrides && overrides.hasOwnProperty("preset") + ? overrides.preset! + : false + }; +}; + +export const aLocation = (overrides?: Partial): Location => { + return { + address: + overrides && overrides.hasOwnProperty("address") + ? overrides.address! + : anAddress(), + allowOnlineBooking: + overrides && overrides.hasOwnProperty("allowOnlineBooking") + ? overrides.allowOnlineBooking! + : false, + allowOnlineRescheduling: + overrides && overrides.hasOwnProperty("allowOnlineRescheduling") + ? overrides.allowOnlineRescheduling! + : true, + arrivalInstructions: + overrides && overrides.hasOwnProperty("arrivalInstructions") + ? overrides.arrivalInstructions! + : "iste", + avatar: + overrides && overrides.hasOwnProperty("avatar") + ? overrides.avatar! + : "aut", + businessName: + overrides && overrides.hasOwnProperty("businessName") + ? overrides.businessName! + : "dolores", + contactEmail: + overrides && overrides.hasOwnProperty("contactEmail") + ? overrides.contactEmail! + : "at", + coordinates: + overrides && overrides.hasOwnProperty("coordinates") + ? overrides.coordinates! + : "velit", + externalId: + overrides && overrides.hasOwnProperty("externalId") + ? overrides.externalId! + : "ratione", + hours: + overrides && overrides.hasOwnProperty("hours") + ? overrides.hours! + : [aLocationDays()], + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "bfe52c08-bd42-41df-a3d4-364c80b41fe8", + insertedAt: + overrides && overrides.hasOwnProperty("insertedAt") + ? overrides.insertedAt! + : "vitae", + isRemote: + overrides && overrides.hasOwnProperty("isRemote") + ? overrides.isRemote! + : true, + name: + overrides && overrides.hasOwnProperty("name") ? overrides.name! : "optio", + phoneNumber: + overrides && overrides.hasOwnProperty("phoneNumber") + ? overrides.phoneNumber! + : "et", + social: + overrides && overrides.hasOwnProperty("social") + ? overrides.social! + : aLocationSocialAccounts(), + tz: + overrides && overrides.hasOwnProperty("tz") + ? overrides.tz! + : "consectetur", + updatedAt: + overrides && overrides.hasOwnProperty("updatedAt") + ? overrides.updatedAt! + : "culpa", + website: + overrides && overrides.hasOwnProperty("website") + ? overrides.website! + : "id" + }; +}; + +export const aLocationConnection = ( + overrides?: Partial +): LocationConnection => { + return { + edges: + overrides && overrides.hasOwnProperty("edges") + ? overrides.edges! + : [aLocationEdge()], + pageInfo: + overrides && overrides.hasOwnProperty("pageInfo") + ? overrides.pageInfo! + : aPageInfo() + }; +}; + +export const aLocationDays = ( + overrides?: Partial +): LocationDays => { + return { + finish: + overrides && overrides.hasOwnProperty("finish") + ? overrides.finish! + : aLocationHours(), + open: + overrides && overrides.hasOwnProperty("open") ? overrides.open! : false, + start: + overrides && overrides.hasOwnProperty("start") + ? overrides.start! + : aLocationHours() + }; +}; + +export const aLocationEdge = ( + overrides?: Partial +): LocationEdge => { + return { + cursor: + overrides && overrides.hasOwnProperty("cursor") + ? overrides.cursor! + : "illum", + node: + overrides && overrides.hasOwnProperty("node") + ? overrides.node! + : aLocation() + }; +}; + +export const aLocationHours = ( + overrides?: Partial +): LocationHours => { + return { + hour: + overrides && overrides.hasOwnProperty("hour") ? overrides.hour! : 6283, + minute: + overrides && overrides.hasOwnProperty("minute") ? overrides.minute! : 1255 + }; +}; + +export const aLocationSocialAccounts = ( + overrides?: Partial +): LocationSocialAccounts => { + return { + facebook: + overrides && overrides.hasOwnProperty("facebook") + ? overrides.facebook! + : "laudantium", + google: + overrides && overrides.hasOwnProperty("google") + ? overrides.google! + : "aut", + instagram: + overrides && overrides.hasOwnProperty("instagram") + ? overrides.instagram! + : "eveniet", + pinterest: + overrides && overrides.hasOwnProperty("pinterest") + ? overrides.pinterest! + : "omnis", + twitter: + overrides && overrides.hasOwnProperty("twitter") + ? overrides.twitter! + : "aut", + yelp: + overrides && overrides.hasOwnProperty("yelp") + ? overrides.yelp! + : "recusandae", + youtube: + overrides && overrides.hasOwnProperty("youtube") + ? overrides.youtube! + : "soluta" + }; +}; + +export const aMembership = (overrides?: Partial): Membership => { + return { + client: + overrides && overrides.hasOwnProperty("client") + ? overrides.client! + : aClient(), + clientId: + overrides && overrides.hasOwnProperty("clientId") + ? overrides.clientId! + : "4a0aac29-d66f-41b4-a7dc-ca42db940921", + creditCard: + overrides && overrides.hasOwnProperty("creditCard") + ? overrides.creditCard! + : aCreditCard(), + currentBillingError: + overrides && overrides.hasOwnProperty("currentBillingError") + ? overrides.currentBillingError! + : false, + endOn: + overrides && overrides.hasOwnProperty("endOn") + ? overrides.endOn! + : "2003-03-23", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "cf18c1f2-8e7d-4a3d-a70d-a877d24df604", + interval: + overrides && overrides.hasOwnProperty("interval") + ? overrides.interval! + : "laboriosam", + name: + overrides && overrides.hasOwnProperty("name") ? overrides.name! : "ut", + startOn: + overrides && overrides.hasOwnProperty("startOn") + ? overrides.startOn! + : "1999-01-30", + status: + overrides && overrides.hasOwnProperty("status") + ? overrides.status! + : SubscriptionStatus.Active, + termNumber: + overrides && overrides.hasOwnProperty("termNumber") + ? overrides.termNumber! + : 5333, + unitPrice: + overrides && overrides.hasOwnProperty("unitPrice") + ? overrides.unitPrice! + : "facilis", + vouchers: + overrides && overrides.hasOwnProperty("vouchers") + ? overrides.vouchers! + : [aMembershipVoucher()] + }; +}; + +export const aMembershipConnection = ( + overrides?: Partial +): MembershipConnection => { + return { + edges: + overrides && overrides.hasOwnProperty("edges") + ? overrides.edges! + : [aMembershipEdge()], + pageInfo: + overrides && overrides.hasOwnProperty("pageInfo") + ? overrides.pageInfo! + : aPageInfo() + }; +}; + +export const aMembershipEdge = ( + overrides?: Partial +): MembershipEdge => { + return { + cursor: + overrides && overrides.hasOwnProperty("cursor") + ? overrides.cursor! + : "voluptatum", + node: + overrides && overrides.hasOwnProperty("node") + ? overrides.node! + : aMembership() + }; +}; + +export const aMembershipPaymentMethodUpdateAndRenewInput = ( + overrides?: Partial +): MembershipPaymentMethodUpdateAndRenewInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "a1fe8d15-4331-497f-b0fe-7b450acb2485", + paymentMethodId: + overrides && overrides.hasOwnProperty("paymentMethodId") + ? overrides.paymentMethodId! + : "4e1eb3a3-84d5-42d7-82d6-be5b6f039b8b" + }; +}; + +export const aMembershipPaymentMethodUpdateAndRenewPayload = ( + overrides?: Partial +): MembershipPaymentMethodUpdateAndRenewPayload => { + return { + membership: + overrides && overrides.hasOwnProperty("membership") + ? overrides.membership! + : aMembership(), + newCardWasChargedForRenewal: + overrides && overrides.hasOwnProperty("newCardWasChargedForRenewal") + ? overrides.newCardWasChargedForRenewal! + : true + }; +}; + +export const aMembershipPaymentMethodUpdateInput = ( + overrides?: Partial +): MembershipPaymentMethodUpdateInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "8aca7170-dffb-4af0-b26e-e01d1f916d0c", + paymentMethodId: + overrides && overrides.hasOwnProperty("paymentMethodId") + ? overrides.paymentMethodId! + : "b5650405-a414-4d6d-9a1a-aa9b2722228e" + }; +}; + +export const aMembershipPaymentMethodUpdatePayload = ( + overrides?: Partial +): MembershipPaymentMethodUpdatePayload => { + return { + membership: + overrides && overrides.hasOwnProperty("membership") + ? overrides.membership! + : aMembership() + }; +}; + +export const aMembershipVoucher = ( + overrides?: Partial +): MembershipVoucher => { + return { + quantity: + overrides && overrides.hasOwnProperty("quantity") + ? overrides.quantity! + : 2981, + service: + overrides && overrides.hasOwnProperty("service") + ? overrides.service! + : aService(), + services: + overrides && overrides.hasOwnProperty("services") + ? overrides.services! + : [aService()] + }; +}; + +export const aNode = (overrides?: Partial): Node => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "95bb2f34-6c86-495f-bfdc-f25b025cdba5" + }; +}; + +export const anOnlineGiftCardSettings = ( + overrides?: Partial +): OnlineGiftCardSettings => { + return { + giftCardDesigns: + overrides && overrides.hasOwnProperty("giftCardDesigns") + ? overrides.giftCardDesigns! + : [aBusinessGiftCardDesign()], + designatedLocationId: + overrides && overrides.hasOwnProperty("designatedLocationId") + ? overrides.designatedLocationId! + : "696ad8e2-21ba-4718-aea9-263e362c84d5", + websiteMessage: + overrides && overrides.hasOwnProperty("websiteMessage") + ? overrides.websiteMessage! + : "beatae" + }; }; export const aPageInfo = (overrides?: Partial): PageInfo => { - return { - endCursor: overrides && overrides.hasOwnProperty('endCursor') ? overrides.endCursor! : 'id', - hasNextPage: overrides && overrides.hasOwnProperty('hasNextPage') ? overrides.hasNextPage! : true, - hasPreviousPage: overrides && overrides.hasOwnProperty('hasPreviousPage') ? overrides.hasPreviousPage! : false, - startCursor: overrides && overrides.hasOwnProperty('startCursor') ? overrides.startCursor! : 'eum', - }; -}; - -export const aReferralInput = (overrides?: Partial): ReferralInput => { - return { - additionalInfo: overrides && overrides.hasOwnProperty('additionalInfo') ? overrides.additionalInfo! : 'sunt', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '1c1b11a6-7ea7-4bd5-9adc-adedc5f6eb17', - referralSourceId: overrides && overrides.hasOwnProperty('referralSourceId') ? overrides.referralSourceId! : '42dfadb4-7e61-4689-955e-bfbdb8f14409', - referrerClientId: overrides && overrides.hasOwnProperty('referrerClientId') ? overrides.referrerClientId! : 'df211b0e-130e-4ea7-9b93-2d370c9185d5', - }; -}; - -export const aReferralSource = (overrides?: Partial): ReferralSource => { - return { - active: overrides && overrides.hasOwnProperty('active') ? overrides.active! : false, - allLocations: overrides && overrides.hasOwnProperty('allLocations') ? overrides.allLocations! : true, - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'c29cd158-2b24-442f-8c2d-afdd3408ee81', - insertedAt: overrides && overrides.hasOwnProperty('insertedAt') ? overrides.insertedAt! : 'veniam', - locationId: overrides && overrides.hasOwnProperty('locationId') ? overrides.locationId! : 'f170a5e6-cf32-4bf0-9983-ccad336f135e', - locations: overrides && overrides.hasOwnProperty('locations') ? overrides.locations! : [aLocation()], - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'quae', - }; -}; - -export const aRemoveCartOfferInput = (overrides?: Partial): RemoveCartOfferInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '9a4d2ad1-1087-4111-9036-0a16fe84b8a6', - offerId: overrides && overrides.hasOwnProperty('offerId') ? overrides.offerId! : 'nesciunt', - }; -}; - -export const aRemoveCartOfferPayload = (overrides?: Partial): RemoveCartOfferPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; -}; - -export const aRemoveCartSelectedItemInput = (overrides?: Partial): RemoveCartSelectedItemInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'd34eb42f-4dac-4a57-8655-f6e21e922e91', - itemId: overrides && overrides.hasOwnProperty('itemId') ? overrides.itemId! : '3df818b1-8c01-4e3b-9f18-4dd7b9f15380', - }; -}; - -export const aRemoveCartSelectedItemPayload = (overrides?: Partial): RemoveCartSelectedItemPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; -}; - -export const aRemoveCustomFormImageResult = (overrides?: Partial): RemoveCustomFormImageResult => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '67063e94-922d-4176-8394-f5ed407d65fa', - }; -}; - -export const aRequestCodeInput = (overrides?: Partial): RequestCodeInput => { - return { - method: overrides && overrides.hasOwnProperty('method') ? overrides.method! : 'ducimus', - value: overrides && overrides.hasOwnProperty('value') ? overrides.value! : 'deleniti', - }; -}; - -export const aRequestCodePayload = (overrides?: Partial): RequestCodePayload => { - return { - requestId: overrides && overrides.hasOwnProperty('requestId') ? overrides.requestId! : 'quia', - }; -}; - -export const aReserveCartBookableItemsInput = (overrides?: Partial): ReserveCartBookableItemsInput => { - return { - bookableTimeId: overrides && overrides.hasOwnProperty('bookableTimeId') ? overrides.bookableTimeId! : 'b487e0e3-3bd3-4086-b742-d4dd05c07e58', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '711f5c8b-80ad-4f8f-9d2e-4e3e7264bcf9', - }; -}; - -export const aReserveCartBookableItemsPayload = (overrides?: Partial): ReserveCartBookableItemsPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; -}; - -export const aRootMutationType = (overrides?: Partial): RootMutationType => { - return { - addCartCardPaymentMethod: overrides && overrides.hasOwnProperty('addCartCardPaymentMethod') ? overrides.addCartCardPaymentMethod! : anAddCartCardPaymentMethodPayload(), - addCartOffer: overrides && overrides.hasOwnProperty('addCartOffer') ? overrides.addCartOffer! : anAddCartOfferPayload(), - addCartSelectedBookableItem: overrides && overrides.hasOwnProperty('addCartSelectedBookableItem') ? overrides.addCartSelectedBookableItem! : anAddCartSelectedBookableItemPayload(), - addCartSelectedGiftCardItem: overrides && overrides.hasOwnProperty('addCartSelectedGiftCardItem') ? overrides.addCartSelectedGiftCardItem! : anAddCartSelectedGiftCardItemPayload(), - addCartSelectedPurchasableItem: overrides && overrides.hasOwnProperty('addCartSelectedPurchasableItem') ? overrides.addCartSelectedPurchasableItem! : anAddCartSelectedPurchasableItemPayload(), - appointmentAddTags: overrides && overrides.hasOwnProperty('appointmentAddTags') ? overrides.appointmentAddTags! : anAppointmentAddTagsPayload(), - appointmentReschedule: overrides && overrides.hasOwnProperty('appointmentReschedule') ? overrides.appointmentReschedule! : anAppointmentReschedulePayload(), - appointmentRescheduleAvailableDates: overrides && overrides.hasOwnProperty('appointmentRescheduleAvailableDates') ? overrides.appointmentRescheduleAvailableDates! : anAppointmentRescheduleAvailableDatesPayload(), - appointmentRescheduleAvailableTimes: overrides && overrides.hasOwnProperty('appointmentRescheduleAvailableTimes') ? overrides.appointmentRescheduleAvailableTimes! : anAppointmentRescheduleAvailableTimesPayload(), - cancelAppointment: overrides && overrides.hasOwnProperty('cancelAppointment') ? overrides.cancelAppointment! : aCancelAppointmentPayload(), - cartAddToWaitlist: overrides && overrides.hasOwnProperty('cartAddToWaitlist') ? overrides.cartAddToWaitlist! : aCartAddToWaitlistPayload(), - cartBookingQuestionAddAnswer: overrides && overrides.hasOwnProperty('cartBookingQuestionAddAnswer') ? overrides.cartBookingQuestionAddAnswer! : aCartBookingQuestionAddAnswerPayload(), - cartBookingQuestionClearAnswer: overrides && overrides.hasOwnProperty('cartBookingQuestionClearAnswer') ? overrides.cartBookingQuestionClearAnswer! : aCartBookingQuestionClearAnswerPayload(), - cartClear: overrides && overrides.hasOwnProperty('cartClear') ? overrides.cartClear! : aCartClearPayload(), - cartSetLocation: overrides && overrides.hasOwnProperty('cartSetLocation') ? overrides.cartSetLocation! : aCartSetLocationPayload(), - checkoutCart: overrides && overrides.hasOwnProperty('checkoutCart') ? overrides.checkoutCart! : aCheckoutCartPayload(), - confirmAppointment: overrides && overrides.hasOwnProperty('confirmAppointment') ? overrides.confirmAppointment! : aConfirmAppointmentPayload(), - createCart: overrides && overrides.hasOwnProperty('createCart') ? overrides.createCart! : aCreateCartPayload(), - createCartGiftCardItemEmailFulfillment: overrides && overrides.hasOwnProperty('createCartGiftCardItemEmailFulfillment') ? overrides.createCartGiftCardItemEmailFulfillment! : aCreateCartGiftCardItemEmailFulfillmentPayload(), - createCartGuest: overrides && overrides.hasOwnProperty('createCartGuest') ? overrides.createCartGuest! : aCreateCartGuestPayload(), - createClientNote: overrides && overrides.hasOwnProperty('createClientNote') ? overrides.createClientNote! : aCreateClientNotePayload(), - createCreditCard: overrides && overrides.hasOwnProperty('createCreditCard') ? overrides.createCreditCard! : aCreateCreditCardResult(), - createCustomForm: overrides && overrides.hasOwnProperty('createCustomForm') ? overrides.createCustomForm! : aCustomForm(), - deleteCartGiftCardItemEmailFulfillment: overrides && overrides.hasOwnProperty('deleteCartGiftCardItemEmailFulfillment') ? overrides.deleteCartGiftCardItemEmailFulfillment! : aDeleteCartGiftCardItemEmailFulfillmentPayload(), - deleteCartGuest: overrides && overrides.hasOwnProperty('deleteCartGuest') ? overrides.deleteCartGuest! : aDeleteCartGuestPayload(), - membershipPaymentMethodUpdate: overrides && overrides.hasOwnProperty('membershipPaymentMethodUpdate') ? overrides.membershipPaymentMethodUpdate! : aMembershipPaymentMethodUpdatePayload(), - membershipPaymentMethodUpdateAndRenew: overrides && overrides.hasOwnProperty('membershipPaymentMethodUpdateAndRenew') ? overrides.membershipPaymentMethodUpdateAndRenew! : aMembershipPaymentMethodUpdateAndRenewPayload(), - removeCartOffer: overrides && overrides.hasOwnProperty('removeCartOffer') ? overrides.removeCartOffer! : aRemoveCartOfferPayload(), - removeCartSelectedItem: overrides && overrides.hasOwnProperty('removeCartSelectedItem') ? overrides.removeCartSelectedItem! : aRemoveCartSelectedItemPayload(), - removeCustomFormImage: overrides && overrides.hasOwnProperty('removeCustomFormImage') ? overrides.removeCustomFormImage! : aRemoveCustomFormImageResult(), - requestCode: overrides && overrides.hasOwnProperty('requestCode') ? overrides.requestCode! : aRequestCodePayload(), - reserveCartBookableItems: overrides && overrides.hasOwnProperty('reserveCartBookableItems') ? overrides.reserveCartBookableItems! : aReserveCartBookableItemsPayload(), - selectCartPaymentMethod: overrides && overrides.hasOwnProperty('selectCartPaymentMethod') ? overrides.selectCartPaymentMethod! : aSelectCartPaymentMethodPayload(), - sendCartOwnershipCodeByEmail: overrides && overrides.hasOwnProperty('sendCartOwnershipCodeByEmail') ? overrides.sendCartOwnershipCodeByEmail! : aSendCartOwnershipCodeByEmailPayload(), - sendCartOwnershipCodeBySms: overrides && overrides.hasOwnProperty('sendCartOwnershipCodeBySms') ? overrides.sendCartOwnershipCodeBySms! : aSendCartOwnershipCodeBySmsPayload(), - startCustomFormImageUpload: overrides && overrides.hasOwnProperty('startCustomFormImageUpload') ? overrides.startCustomFormImageUpload! : aStartCustomFormImageUploadResult(), - takeCartOwnership: overrides && overrides.hasOwnProperty('takeCartOwnership') ? overrides.takeCartOwnership! : aTakeCartOwnershipPayload(), - takeCartOwnershipByCode: overrides && overrides.hasOwnProperty('takeCartOwnershipByCode') ? overrides.takeCartOwnershipByCode! : aTakeCartOwnershipByCodePayload(), - unstableClientPasswordlessAuthRequestCode: overrides && overrides.hasOwnProperty('unstableClientPasswordlessAuthRequestCode') ? overrides.unstableClientPasswordlessAuthRequestCode! : anUnstableClientPasswordlessAuthRequestCodePayload(), - unstableClientPasswordlessAuthSignIn: overrides && overrides.hasOwnProperty('unstableClientPasswordlessAuthSignIn') ? overrides.unstableClientPasswordlessAuthSignIn! : anUnstableClientPasswordlessAuthSignInPayload(), - updateCart: overrides && overrides.hasOwnProperty('updateCart') ? overrides.updateCart! : anUpdateCartPayload(), - updateCartGiftCardItemEmailFulfillment: overrides && overrides.hasOwnProperty('updateCartGiftCardItemEmailFulfillment') ? overrides.updateCartGiftCardItemEmailFulfillment! : anUpdateCartGiftCardItemEmailFulfillmentPayload(), - updateCartGuest: overrides && overrides.hasOwnProperty('updateCartGuest') ? overrides.updateCartGuest! : anUpdateCartGuestPayload(), - updateCartSelectedBookableItem: overrides && overrides.hasOwnProperty('updateCartSelectedBookableItem') ? overrides.updateCartSelectedBookableItem! : anUpdateCartSelectedBookableItemPayload(), - updateCartSelectedGiftCardItem: overrides && overrides.hasOwnProperty('updateCartSelectedGiftCardItem') ? overrides.updateCartSelectedGiftCardItem! : anUpdateCartSelectedGiftCardItemPayload(), - updateCartSelectedPurchasableItem: overrides && overrides.hasOwnProperty('updateCartSelectedPurchasableItem') ? overrides.updateCartSelectedPurchasableItem! : anUpdateCartSelectedPurchasableItemPayload(), - updateClient: overrides && overrides.hasOwnProperty('updateClient') ? overrides.updateClient! : anUpdateClientPayload(), - updateClientInfo: overrides && overrides.hasOwnProperty('updateClientInfo') ? overrides.updateClientInfo! : anUpdateClientInfoPayload(), - updateCommunicationSubscriptions: overrides && overrides.hasOwnProperty('updateCommunicationSubscriptions') ? overrides.updateCommunicationSubscriptions! : anUpdateCommunicationSubscriptionsPayload(), - updateCustomForm: overrides && overrides.hasOwnProperty('updateCustomForm') ? overrides.updateCustomForm! : aCustomForm(), - }; -}; - -export const aRootQueryType = (overrides?: Partial): RootQueryType => { - return { - appointment: overrides && overrides.hasOwnProperty('appointment') ? overrides.appointment! : anAppointment(), - business: overrides && overrides.hasOwnProperty('business') ? overrides.business! : aBusiness(), - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - cartBookableDates: overrides && overrides.hasOwnProperty('cartBookableDates') ? overrides.cartBookableDates! : [aCartBookableDate()], - cartBookableStaffVariants: overrides && overrides.hasOwnProperty('cartBookableStaffVariants') ? overrides.cartBookableStaffVariants! : [aCartAvailableBookableItemStaffVariant()], - cartBookableTimes: overrides && overrides.hasOwnProperty('cartBookableTimes') ? overrides.cartBookableTimes! : [aCartBookableTime()], - client: overrides && overrides.hasOwnProperty('client') ? overrides.client! : aClient(), - customForm: overrides && overrides.hasOwnProperty('customForm') ? overrides.customForm! : aCustomForm(), - customFormTemplate: overrides && overrides.hasOwnProperty('customFormTemplate') ? overrides.customFormTemplate! : aCustomFormTemplate(), - locations: overrides && overrides.hasOwnProperty('locations') ? overrides.locations! : aLocationConnection(), - membership: overrides && overrides.hasOwnProperty('membership') ? overrides.membership! : aMembership(), - myAppointments: overrides && overrides.hasOwnProperty('myAppointments') ? overrides.myAppointments! : anAppointmentConnection(), - myCreditCards: overrides && overrides.hasOwnProperty('myCreditCards') ? overrides.myCreditCards! : aCreditCardConnection(), - myMemberships: overrides && overrides.hasOwnProperty('myMemberships') ? overrides.myMemberships! : aMembershipConnection(), - node: overrides && overrides.hasOwnProperty('node') ? overrides.node! : aNode(), - unstableClientPasswordlessAuthMethods: overrides && overrides.hasOwnProperty('unstableClientPasswordlessAuthMethods') ? overrides.unstableClientPasswordlessAuthMethods! : [anAuthMethod()], - }; -}; - -export const aSelectCartPaymentMethodInput = (overrides?: Partial): SelectCartPaymentMethodInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '0fab5fe7-3823-4b10-9609-8d1e7976eaa2', - paymentMethodId: overrides && overrides.hasOwnProperty('paymentMethodId') ? overrides.paymentMethodId! : '206eb754-4551-4447-8058-06166b2c6ad9', - }; -}; - -export const aSelectCartPaymentMethodPayload = (overrides?: Partial): SelectCartPaymentMethodPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; -}; - -export const aSendCartOwnershipCodeByEmailInput = (overrides?: Partial): SendCartOwnershipCodeByEmailInput => { - return { - email: overrides && overrides.hasOwnProperty('email') ? overrides.email! : 'et', - }; -}; - -export const aSendCartOwnershipCodeByEmailPayload = (overrides?: Partial): SendCartOwnershipCodeByEmailPayload => { - return { - cartOwnershipCodeId: overrides && overrides.hasOwnProperty('cartOwnershipCodeId') ? overrides.cartOwnershipCodeId! : 'ex', - }; -}; - -export const aSendCartOwnershipCodeBySmsInput = (overrides?: Partial): SendCartOwnershipCodeBySmsInput => { - return { - mobilePhone: overrides && overrides.hasOwnProperty('mobilePhone') ? overrides.mobilePhone! : 'eveniet', - }; -}; - -export const aSendCartOwnershipCodeBySmsPayload = (overrides?: Partial): SendCartOwnershipCodeBySmsPayload => { - return { - cartOwnershipCodeId: overrides && overrides.hasOwnProperty('cartOwnershipCodeId') ? overrides.cartOwnershipCodeId! : 'et', - }; + return { + endCursor: + overrides && overrides.hasOwnProperty("endCursor") + ? overrides.endCursor! + : "id", + hasNextPage: + overrides && overrides.hasOwnProperty("hasNextPage") + ? overrides.hasNextPage! + : true, + hasPreviousPage: + overrides && overrides.hasOwnProperty("hasPreviousPage") + ? overrides.hasPreviousPage! + : false, + startCursor: + overrides && overrides.hasOwnProperty("startCursor") + ? overrides.startCursor! + : "eum" + }; +}; + +export const aReferralInput = ( + overrides?: Partial +): ReferralInput => { + return { + additionalInfo: + overrides && overrides.hasOwnProperty("additionalInfo") + ? overrides.additionalInfo! + : "sunt", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "1c1b11a6-7ea7-4bd5-9adc-adedc5f6eb17", + referralSourceId: + overrides && overrides.hasOwnProperty("referralSourceId") + ? overrides.referralSourceId! + : "42dfadb4-7e61-4689-955e-bfbdb8f14409", + referrerClientId: + overrides && overrides.hasOwnProperty("referrerClientId") + ? overrides.referrerClientId! + : "df211b0e-130e-4ea7-9b93-2d370c9185d5" + }; +}; + +export const aReferralSource = ( + overrides?: Partial +): ReferralSource => { + return { + active: + overrides && overrides.hasOwnProperty("active") + ? overrides.active! + : false, + allLocations: + overrides && overrides.hasOwnProperty("allLocations") + ? overrides.allLocations! + : true, + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "c29cd158-2b24-442f-8c2d-afdd3408ee81", + insertedAt: + overrides && overrides.hasOwnProperty("insertedAt") + ? overrides.insertedAt! + : "veniam", + locationId: + overrides && overrides.hasOwnProperty("locationId") + ? overrides.locationId! + : "f170a5e6-cf32-4bf0-9983-ccad336f135e", + locations: + overrides && overrides.hasOwnProperty("locations") + ? overrides.locations! + : [aLocation()], + name: + overrides && overrides.hasOwnProperty("name") ? overrides.name! : "quae" + }; +}; + +export const aRemoveCartOfferInput = ( + overrides?: Partial +): RemoveCartOfferInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "9a4d2ad1-1087-4111-9036-0a16fe84b8a6", + offerId: + overrides && overrides.hasOwnProperty("offerId") + ? overrides.offerId! + : "nesciunt" + }; +}; + +export const aRemoveCartOfferPayload = ( + overrides?: Partial +): RemoveCartOfferPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; +}; + +export const aRemoveCartSelectedItemInput = ( + overrides?: Partial +): RemoveCartSelectedItemInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "d34eb42f-4dac-4a57-8655-f6e21e922e91", + itemId: + overrides && overrides.hasOwnProperty("itemId") + ? overrides.itemId! + : "3df818b1-8c01-4e3b-9f18-4dd7b9f15380" + }; +}; + +export const aRemoveCartSelectedItemPayload = ( + overrides?: Partial +): RemoveCartSelectedItemPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; +}; + +export const aRemoveCustomFormImageResult = ( + overrides?: Partial +): RemoveCustomFormImageResult => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "67063e94-922d-4176-8394-f5ed407d65fa" + }; +}; + +export const aRequestCodeInput = ( + overrides?: Partial +): RequestCodeInput => { + return { + method: + overrides && overrides.hasOwnProperty("method") + ? overrides.method! + : "ducimus", + value: + overrides && overrides.hasOwnProperty("value") + ? overrides.value! + : "deleniti" + }; +}; + +export const aRequestCodePayload = ( + overrides?: Partial +): RequestCodePayload => { + return { + requestId: + overrides && overrides.hasOwnProperty("requestId") + ? overrides.requestId! + : "quia" + }; +}; + +export const aReserveCartBookableItemsInput = ( + overrides?: Partial +): ReserveCartBookableItemsInput => { + return { + bookableTimeId: + overrides && overrides.hasOwnProperty("bookableTimeId") + ? overrides.bookableTimeId! + : "b487e0e3-3bd3-4086-b742-d4dd05c07e58", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "711f5c8b-80ad-4f8f-9d2e-4e3e7264bcf9" + }; +}; + +export const aReserveCartBookableItemsPayload = ( + overrides?: Partial +): ReserveCartBookableItemsPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; +}; + +export const aRootMutationType = ( + overrides?: Partial +): RootMutationType => { + return { + addCartCardPaymentMethod: + overrides && overrides.hasOwnProperty("addCartCardPaymentMethod") + ? overrides.addCartCardPaymentMethod! + : anAddCartCardPaymentMethodPayload(), + addCartOffer: + overrides && overrides.hasOwnProperty("addCartOffer") + ? overrides.addCartOffer! + : anAddCartOfferPayload(), + addCartSelectedBookableItem: + overrides && overrides.hasOwnProperty("addCartSelectedBookableItem") + ? overrides.addCartSelectedBookableItem! + : anAddCartSelectedBookableItemPayload(), + addCartSelectedGiftCardItem: + overrides && overrides.hasOwnProperty("addCartSelectedGiftCardItem") + ? overrides.addCartSelectedGiftCardItem! + : anAddCartSelectedGiftCardItemPayload(), + addCartSelectedPurchasableItem: + overrides && overrides.hasOwnProperty("addCartSelectedPurchasableItem") + ? overrides.addCartSelectedPurchasableItem! + : anAddCartSelectedPurchasableItemPayload(), + appointmentAddTags: + overrides && overrides.hasOwnProperty("appointmentAddTags") + ? overrides.appointmentAddTags! + : anAppointmentAddTagsPayload(), + appointmentReschedule: + overrides && overrides.hasOwnProperty("appointmentReschedule") + ? overrides.appointmentReschedule! + : anAppointmentReschedulePayload(), + appointmentRescheduleAvailableDates: + overrides && + overrides.hasOwnProperty("appointmentRescheduleAvailableDates") + ? overrides.appointmentRescheduleAvailableDates! + : anAppointmentRescheduleAvailableDatesPayload(), + appointmentRescheduleAvailableTimes: + overrides && + overrides.hasOwnProperty("appointmentRescheduleAvailableTimes") + ? overrides.appointmentRescheduleAvailableTimes! + : anAppointmentRescheduleAvailableTimesPayload(), + cancelAppointment: + overrides && overrides.hasOwnProperty("cancelAppointment") + ? overrides.cancelAppointment! + : aCancelAppointmentPayload(), + cartAddToWaitlist: + overrides && overrides.hasOwnProperty("cartAddToWaitlist") + ? overrides.cartAddToWaitlist! + : aCartAddToWaitlistPayload(), + cartBookingQuestionAddAnswer: + overrides && overrides.hasOwnProperty("cartBookingQuestionAddAnswer") + ? overrides.cartBookingQuestionAddAnswer! + : aCartBookingQuestionAddAnswerPayload(), + cartBookingQuestionClearAnswer: + overrides && overrides.hasOwnProperty("cartBookingQuestionClearAnswer") + ? overrides.cartBookingQuestionClearAnswer! + : aCartBookingQuestionClearAnswerPayload(), + cartClear: + overrides && overrides.hasOwnProperty("cartClear") + ? overrides.cartClear! + : aCartClearPayload(), + cartSetLocation: + overrides && overrides.hasOwnProperty("cartSetLocation") + ? overrides.cartSetLocation! + : aCartSetLocationPayload(), + checkoutCart: + overrides && overrides.hasOwnProperty("checkoutCart") + ? overrides.checkoutCart! + : aCheckoutCartPayload(), + confirmAppointment: + overrides && overrides.hasOwnProperty("confirmAppointment") + ? overrides.confirmAppointment! + : aConfirmAppointmentPayload(), + createCart: + overrides && overrides.hasOwnProperty("createCart") + ? overrides.createCart! + : aCreateCartPayload(), + createCartGiftCardItemEmailFulfillment: + overrides && + overrides.hasOwnProperty("createCartGiftCardItemEmailFulfillment") + ? overrides.createCartGiftCardItemEmailFulfillment! + : aCreateCartGiftCardItemEmailFulfillmentPayload(), + createCartGuest: + overrides && overrides.hasOwnProperty("createCartGuest") + ? overrides.createCartGuest! + : aCreateCartGuestPayload(), + createClientNote: + overrides && overrides.hasOwnProperty("createClientNote") + ? overrides.createClientNote! + : aCreateClientNotePayload(), + createCreditCard: + overrides && overrides.hasOwnProperty("createCreditCard") + ? overrides.createCreditCard! + : aCreateCreditCardResult(), + createCustomForm: + overrides && overrides.hasOwnProperty("createCustomForm") + ? overrides.createCustomForm! + : aCustomForm(), + deleteCartGiftCardItemEmailFulfillment: + overrides && + overrides.hasOwnProperty("deleteCartGiftCardItemEmailFulfillment") + ? overrides.deleteCartGiftCardItemEmailFulfillment! + : aDeleteCartGiftCardItemEmailFulfillmentPayload(), + deleteCartGuest: + overrides && overrides.hasOwnProperty("deleteCartGuest") + ? overrides.deleteCartGuest! + : aDeleteCartGuestPayload(), + membershipPaymentMethodUpdate: + overrides && overrides.hasOwnProperty("membershipPaymentMethodUpdate") + ? overrides.membershipPaymentMethodUpdate! + : aMembershipPaymentMethodUpdatePayload(), + membershipPaymentMethodUpdateAndRenew: + overrides && + overrides.hasOwnProperty("membershipPaymentMethodUpdateAndRenew") + ? overrides.membershipPaymentMethodUpdateAndRenew! + : aMembershipPaymentMethodUpdateAndRenewPayload(), + removeCartOffer: + overrides && overrides.hasOwnProperty("removeCartOffer") + ? overrides.removeCartOffer! + : aRemoveCartOfferPayload(), + removeCartSelectedItem: + overrides && overrides.hasOwnProperty("removeCartSelectedItem") + ? overrides.removeCartSelectedItem! + : aRemoveCartSelectedItemPayload(), + removeCustomFormImage: + overrides && overrides.hasOwnProperty("removeCustomFormImage") + ? overrides.removeCustomFormImage! + : aRemoveCustomFormImageResult(), + requestCode: + overrides && overrides.hasOwnProperty("requestCode") + ? overrides.requestCode! + : aRequestCodePayload(), + reserveCartBookableItems: + overrides && overrides.hasOwnProperty("reserveCartBookableItems") + ? overrides.reserveCartBookableItems! + : aReserveCartBookableItemsPayload(), + selectCartPaymentMethod: + overrides && overrides.hasOwnProperty("selectCartPaymentMethod") + ? overrides.selectCartPaymentMethod! + : aSelectCartPaymentMethodPayload(), + sendCartOwnershipCodeByEmail: + overrides && overrides.hasOwnProperty("sendCartOwnershipCodeByEmail") + ? overrides.sendCartOwnershipCodeByEmail! + : aSendCartOwnershipCodeByEmailPayload(), + sendCartOwnershipCodeBySms: + overrides && overrides.hasOwnProperty("sendCartOwnershipCodeBySms") + ? overrides.sendCartOwnershipCodeBySms! + : aSendCartOwnershipCodeBySmsPayload(), + startCustomFormImageUpload: + overrides && overrides.hasOwnProperty("startCustomFormImageUpload") + ? overrides.startCustomFormImageUpload! + : aStartCustomFormImageUploadResult(), + takeCartOwnership: + overrides && overrides.hasOwnProperty("takeCartOwnership") + ? overrides.takeCartOwnership! + : aTakeCartOwnershipPayload(), + takeCartOwnershipByCode: + overrides && overrides.hasOwnProperty("takeCartOwnershipByCode") + ? overrides.takeCartOwnershipByCode! + : aTakeCartOwnershipByCodePayload(), + unstableClientPasswordlessAuthRequestCode: + overrides && + overrides.hasOwnProperty("unstableClientPasswordlessAuthRequestCode") + ? overrides.unstableClientPasswordlessAuthRequestCode! + : anUnstableClientPasswordlessAuthRequestCodePayload(), + unstableClientPasswordlessAuthSignIn: + overrides && + overrides.hasOwnProperty("unstableClientPasswordlessAuthSignIn") + ? overrides.unstableClientPasswordlessAuthSignIn! + : anUnstableClientPasswordlessAuthSignInPayload(), + updateCart: + overrides && overrides.hasOwnProperty("updateCart") + ? overrides.updateCart! + : anUpdateCartPayload(), + updateCartGiftCardItemEmailFulfillment: + overrides && + overrides.hasOwnProperty("updateCartGiftCardItemEmailFulfillment") + ? overrides.updateCartGiftCardItemEmailFulfillment! + : anUpdateCartGiftCardItemEmailFulfillmentPayload(), + updateCartGuest: + overrides && overrides.hasOwnProperty("updateCartGuest") + ? overrides.updateCartGuest! + : anUpdateCartGuestPayload(), + updateCartSelectedBookableItem: + overrides && overrides.hasOwnProperty("updateCartSelectedBookableItem") + ? overrides.updateCartSelectedBookableItem! + : anUpdateCartSelectedBookableItemPayload(), + updateCartSelectedGiftCardItem: + overrides && overrides.hasOwnProperty("updateCartSelectedGiftCardItem") + ? overrides.updateCartSelectedGiftCardItem! + : anUpdateCartSelectedGiftCardItemPayload(), + updateCartSelectedPurchasableItem: + overrides && overrides.hasOwnProperty("updateCartSelectedPurchasableItem") + ? overrides.updateCartSelectedPurchasableItem! + : anUpdateCartSelectedPurchasableItemPayload(), + updateClient: + overrides && overrides.hasOwnProperty("updateClient") + ? overrides.updateClient! + : anUpdateClientPayload(), + updateClientInfo: + overrides && overrides.hasOwnProperty("updateClientInfo") + ? overrides.updateClientInfo! + : anUpdateClientInfoPayload(), + updateCommunicationSubscriptions: + overrides && overrides.hasOwnProperty("updateCommunicationSubscriptions") + ? overrides.updateCommunicationSubscriptions! + : anUpdateCommunicationSubscriptionsPayload(), + updateCustomForm: + overrides && overrides.hasOwnProperty("updateCustomForm") + ? overrides.updateCustomForm! + : aCustomForm() + }; +}; + +export const aRootQueryType = ( + overrides?: Partial +): RootQueryType => { + return { + appointment: + overrides && overrides.hasOwnProperty("appointment") + ? overrides.appointment! + : anAppointment(), + business: + overrides && overrides.hasOwnProperty("business") + ? overrides.business! + : aBusiness(), + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart(), + cartBookableDates: + overrides && overrides.hasOwnProperty("cartBookableDates") + ? overrides.cartBookableDates! + : [aCartBookableDate()], + cartBookableStaffVariants: + overrides && overrides.hasOwnProperty("cartBookableStaffVariants") + ? overrides.cartBookableStaffVariants! + : [aCartAvailableBookableItemStaffVariant()], + cartBookableTimes: + overrides && overrides.hasOwnProperty("cartBookableTimes") + ? overrides.cartBookableTimes! + : [aCartBookableTime()], + client: + overrides && overrides.hasOwnProperty("client") + ? overrides.client! + : aClient(), + customForm: + overrides && overrides.hasOwnProperty("customForm") + ? overrides.customForm! + : aCustomForm(), + customFormTemplate: + overrides && overrides.hasOwnProperty("customFormTemplate") + ? overrides.customFormTemplate! + : aCustomFormTemplate(), + locations: + overrides && overrides.hasOwnProperty("locations") + ? overrides.locations! + : aLocationConnection(), + membership: + overrides && overrides.hasOwnProperty("membership") + ? overrides.membership! + : aMembership(), + myAppointments: + overrides && overrides.hasOwnProperty("myAppointments") + ? overrides.myAppointments! + : anAppointmentConnection(), + myCreditCards: + overrides && overrides.hasOwnProperty("myCreditCards") + ? overrides.myCreditCards! + : aCreditCardConnection(), + myMemberships: + overrides && overrides.hasOwnProperty("myMemberships") + ? overrides.myMemberships! + : aMembershipConnection(), + node: + overrides && overrides.hasOwnProperty("node") ? overrides.node! : aNode(), + unstableClientPasswordlessAuthMethods: + overrides && + overrides.hasOwnProperty("unstableClientPasswordlessAuthMethods") + ? overrides.unstableClientPasswordlessAuthMethods! + : [anAuthMethod()] + }; +}; + +export const aSelectCartPaymentMethodInput = ( + overrides?: Partial +): SelectCartPaymentMethodInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "0fab5fe7-3823-4b10-9609-8d1e7976eaa2", + paymentMethodId: + overrides && overrides.hasOwnProperty("paymentMethodId") + ? overrides.paymentMethodId! + : "206eb754-4551-4447-8058-06166b2c6ad9" + }; +}; + +export const aSelectCartPaymentMethodPayload = ( + overrides?: Partial +): SelectCartPaymentMethodPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; +}; + +export const aSendCartOwnershipCodeByEmailInput = ( + overrides?: Partial +): SendCartOwnershipCodeByEmailInput => { + return { + email: + overrides && overrides.hasOwnProperty("email") ? overrides.email! : "et" + }; +}; + +export const aSendCartOwnershipCodeByEmailPayload = ( + overrides?: Partial +): SendCartOwnershipCodeByEmailPayload => { + return { + cartOwnershipCodeId: + overrides && overrides.hasOwnProperty("cartOwnershipCodeId") + ? overrides.cartOwnershipCodeId! + : "ex" + }; +}; + +export const aSendCartOwnershipCodeBySmsInput = ( + overrides?: Partial +): SendCartOwnershipCodeBySmsInput => { + return { + mobilePhone: + overrides && overrides.hasOwnProperty("mobilePhone") + ? overrides.mobilePhone! + : "eveniet" + }; +}; + +export const aSendCartOwnershipCodeBySmsPayload = ( + overrides?: Partial +): SendCartOwnershipCodeBySmsPayload => { + return { + cartOwnershipCodeId: + overrides && overrides.hasOwnProperty("cartOwnershipCodeId") + ? overrides.cartOwnershipCodeId! + : "et" + }; }; export const aService = (overrides?: Partial): Service => { - return { - category: overrides && overrides.hasOwnProperty('category') ? overrides.category! : aServiceCategory(), - categoryId: overrides && overrides.hasOwnProperty('categoryId') ? overrides.categoryId! : '62102480-3a97-4660-8b44-8524cfe48edb', - description: overrides && overrides.hasOwnProperty('description') ? overrides.description! : 'eos', - externalId: overrides && overrides.hasOwnProperty('externalId') ? overrides.externalId! : 'consequuntur', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '4da70d2c-0d44-4b8e-8e3c-80708e0d1d25', - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'cupiditate', - }; + return { + category: + overrides && overrides.hasOwnProperty("category") + ? overrides.category! + : aServiceCategory(), + categoryId: + overrides && overrides.hasOwnProperty("categoryId") + ? overrides.categoryId! + : "62102480-3a97-4660-8b44-8524cfe48edb", + description: + overrides && overrides.hasOwnProperty("description") + ? overrides.description! + : "eos", + externalId: + overrides && overrides.hasOwnProperty("externalId") + ? overrides.externalId! + : "consequuntur", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "4da70d2c-0d44-4b8e-8e3c-80708e0d1d25", + name: + overrides && overrides.hasOwnProperty("name") + ? overrides.name! + : "cupiditate" + }; }; -export const aServiceCategory = (overrides?: Partial): ServiceCategory => { - return { - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'praesentium', - }; +export const aServiceCategory = ( + overrides?: Partial +): ServiceCategory => { + return { + name: + overrides && overrides.hasOwnProperty("name") + ? overrides.name! + : "praesentium" + }; }; -export const aServiceOption = (overrides?: Partial): ServiceOption => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '9b954ffe-61d4-4141-9609-be016441d917', - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'perspiciatis', - }; +export const aServiceOption = ( + overrides?: Partial +): ServiceOption => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "9b954ffe-61d4-4141-9609-be016441d917", + name: + overrides && overrides.hasOwnProperty("name") + ? overrides.name! + : "perspiciatis" + }; }; export const aStaff = (overrides?: Partial): Staff => { - return { - avatar: overrides && overrides.hasOwnProperty('avatar') ? overrides.avatar! : 'aliquid', - bio: overrides && overrides.hasOwnProperty('bio') ? overrides.bio! : 'consectetur', - displayName: overrides && overrides.hasOwnProperty('displayName') ? overrides.displayName! : 'voluptatibus', - firstName: overrides && overrides.hasOwnProperty('firstName') ? overrides.firstName! : 'quas', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '24717f91-afa7-4612-84c0-a376de64660f', - insertedAt: overrides && overrides.hasOwnProperty('insertedAt') ? overrides.insertedAt! : 'et', - lastName: overrides && overrides.hasOwnProperty('lastName') ? overrides.lastName! : 'ea', - nickname: overrides && overrides.hasOwnProperty('nickname') ? overrides.nickname! : 'sunt', - role: overrides && overrides.hasOwnProperty('role') ? overrides.role! : aStaffRole(), - updatedAt: overrides && overrides.hasOwnProperty('updatedAt') ? overrides.updatedAt! : 'excepturi', - }; + return { + avatar: + overrides && overrides.hasOwnProperty("avatar") + ? overrides.avatar! + : "aliquid", + bio: + overrides && overrides.hasOwnProperty("bio") + ? overrides.bio! + : "consectetur", + displayName: + overrides && overrides.hasOwnProperty("displayName") + ? overrides.displayName! + : "voluptatibus", + firstName: + overrides && overrides.hasOwnProperty("firstName") + ? overrides.firstName! + : "quas", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "24717f91-afa7-4612-84c0-a376de64660f", + insertedAt: + overrides && overrides.hasOwnProperty("insertedAt") + ? overrides.insertedAt! + : "et", + lastName: + overrides && overrides.hasOwnProperty("lastName") + ? overrides.lastName! + : "ea", + nickname: + overrides && overrides.hasOwnProperty("nickname") + ? overrides.nickname! + : "sunt", + role: + overrides && overrides.hasOwnProperty("role") + ? overrides.role! + : aStaffRole(), + updatedAt: + overrides && overrides.hasOwnProperty("updatedAt") + ? overrides.updatedAt! + : "excepturi" + }; }; export const aStaffRole = (overrides?: Partial): StaffRole => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'c88906d2-2ada-4a17-a562-e32531579e4f', - name: overrides && overrides.hasOwnProperty('name') ? overrides.name! : 'nemo', - }; + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "c88906d2-2ada-4a17-a562-e32531579e4f", + name: + overrides && overrides.hasOwnProperty("name") ? overrides.name! : "nemo" + }; +}; + +export const aStartCustomFormImageUploadInput = ( + overrides?: Partial +): StartCustomFormImageUploadInput => { + return { + filename: + overrides && overrides.hasOwnProperty("filename") + ? overrides.filename! + : "laborum", + locationId: + overrides && overrides.hasOwnProperty("locationId") + ? overrides.locationId! + : "9477c76d-29fe-431c-ac7e-aff7eb47f4ba" + }; +}; + +export const aStartCustomFormImageUploadResult = ( + overrides?: Partial +): StartCustomFormImageUploadResult => { + return { + customFormImageId: + overrides && overrides.hasOwnProperty("customFormImageId") + ? overrides.customFormImageId! + : "f90d1d1f-6e3d-4ad6-acfc-f36d19913ca3", + signedPutUrl: + overrides && overrides.hasOwnProperty("signedPutUrl") + ? overrides.signedPutUrl! + : "sit" + }; }; -export const aStartCustomFormImageUploadInput = (overrides?: Partial): StartCustomFormImageUploadInput => { - return { - filename: overrides && overrides.hasOwnProperty('filename') ? overrides.filename! : 'laborum', - locationId: overrides && overrides.hasOwnProperty('locationId') ? overrides.locationId! : '9477c76d-29fe-431c-ac7e-aff7eb47f4ba', - }; +export const aTakeCartOwnershipByCodeInput = ( + overrides?: Partial +): TakeCartOwnershipByCodeInput => { + return { + cartId: + overrides && overrides.hasOwnProperty("cartId") + ? overrides.cartId! + : "est", + cartOwnershipCodeId: + overrides && overrides.hasOwnProperty("cartOwnershipCodeId") + ? overrides.cartOwnershipCodeId! + : "distinctio", + cartOwnershipCodeValue: + overrides && overrides.hasOwnProperty("cartOwnershipCodeValue") + ? overrides.cartOwnershipCodeValue! + : 8421 + }; +}; + +export const aTakeCartOwnershipByCodePayload = ( + overrides?: Partial +): TakeCartOwnershipByCodePayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; +}; + +export const aTakeCartOwnershipInput = ( + overrides?: Partial +): TakeCartOwnershipInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "19bbe242-ec7a-469b-bc42-ce0a8e6f7030" + }; +}; + +export const aTakeCartOwnershipPayload = ( + overrides?: Partial +): TakeCartOwnershipPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; }; -export const aStartCustomFormImageUploadResult = (overrides?: Partial): StartCustomFormImageUploadResult => { - return { - customFormImageId: overrides && overrides.hasOwnProperty('customFormImageId') ? overrides.customFormImageId! : 'f90d1d1f-6e3d-4ad6-acfc-f36d19913ca3', - signedPutUrl: overrides && overrides.hasOwnProperty('signedPutUrl') ? overrides.signedPutUrl! : 'sit', - }; +export const anUnstableClientPasswordlessAuthRequestCodeInput = ( + overrides?: Partial +): UnstableClientPasswordlessAuthRequestCodeInput => { + return { + methodId: + overrides && overrides.hasOwnProperty("methodId") + ? overrides.methodId! + : "dolores" + }; }; -export const aTakeCartOwnershipByCodeInput = (overrides?: Partial): TakeCartOwnershipByCodeInput => { - return { - cartId: overrides && overrides.hasOwnProperty('cartId') ? overrides.cartId! : 'est', - cartOwnershipCodeId: overrides && overrides.hasOwnProperty('cartOwnershipCodeId') ? overrides.cartOwnershipCodeId! : 'distinctio', - cartOwnershipCodeValue: overrides && overrides.hasOwnProperty('cartOwnershipCodeValue') ? overrides.cartOwnershipCodeValue! : 8421, - }; +export const anUnstableClientPasswordlessAuthRequestCodePayload = ( + overrides?: Partial +): UnstableClientPasswordlessAuthRequestCodePayload => { + return { + requestId: + overrides && overrides.hasOwnProperty("requestId") + ? overrides.requestId! + : "et" + }; }; -export const aTakeCartOwnershipByCodePayload = (overrides?: Partial): TakeCartOwnershipByCodePayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; +export const anUnstableClientPasswordlessAuthSignInInput = ( + overrides?: Partial +): UnstableClientPasswordlessAuthSignInInput => { + return { + code: + overrides && overrides.hasOwnProperty("code") ? overrides.code! : 8439, + requestId: + overrides && overrides.hasOwnProperty("requestId") + ? overrides.requestId! + : "minima" + }; }; -export const aTakeCartOwnershipInput = (overrides?: Partial): TakeCartOwnershipInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '19bbe242-ec7a-469b-bc42-ce0a8e6f7030', - }; +export const anUnstableClientPasswordlessAuthSignInPayload = ( + overrides?: Partial +): UnstableClientPasswordlessAuthSignInPayload => { + return { + client: + overrides && overrides.hasOwnProperty("client") + ? overrides.client! + : aClient(), + token: + overrides && overrides.hasOwnProperty("token") + ? overrides.token! + : "error" + }; }; -export const aTakeCartOwnershipPayload = (overrides?: Partial): TakeCartOwnershipPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; +export const anUpdateCartGiftCardItemEmailFulfillmentInput = ( + overrides?: Partial +): UpdateCartGiftCardItemEmailFulfillmentInput => { + return { + deliveryDate: + overrides && overrides.hasOwnProperty("deliveryDate") + ? overrides.deliveryDate! + : "2009-04-15", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "b3e62c7c-9973-4340-bb9c-72e10ae0591e", + itemId: + overrides && overrides.hasOwnProperty("itemId") + ? overrides.itemId! + : "f524d9d4-f5ea-4b0f-bf95-8d6320dd2946", + messageFromSender: + overrides && overrides.hasOwnProperty("messageFromSender") + ? overrides.messageFromSender! + : "et", + recipientEmail: + overrides && overrides.hasOwnProperty("recipientEmail") + ? overrides.recipientEmail! + : "facere", + recipientName: + overrides && overrides.hasOwnProperty("recipientName") + ? overrides.recipientName! + : "id", + senderName: + overrides && overrides.hasOwnProperty("senderName") + ? overrides.senderName! + : "ipsa" + }; }; -export const anUnstableClientPasswordlessAuthRequestCodeInput = (overrides?: Partial): UnstableClientPasswordlessAuthRequestCodeInput => { - return { - methodId: overrides && overrides.hasOwnProperty('methodId') ? overrides.methodId! : 'dolores', - }; +export const anUpdateCartGiftCardItemEmailFulfillmentPayload = ( + overrides?: Partial +): UpdateCartGiftCardItemEmailFulfillmentPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart(), + emailFulfillment: + overrides && overrides.hasOwnProperty("emailFulfillment") + ? overrides.emailFulfillment! + : aCartItemEmailFulfillment() + }; }; -export const anUnstableClientPasswordlessAuthRequestCodePayload = (overrides?: Partial): UnstableClientPasswordlessAuthRequestCodePayload => { - return { - requestId: overrides && overrides.hasOwnProperty('requestId') ? overrides.requestId! : 'et', - }; +export const anUpdateCartGuestInput = ( + overrides?: Partial +): UpdateCartGuestInput => { + return { + email: + overrides && overrides.hasOwnProperty("email") + ? overrides.email! + : "explicabo", + firstName: + overrides && overrides.hasOwnProperty("firstName") + ? overrides.firstName! + : "quasi", + guestId: + overrides && overrides.hasOwnProperty("guestId") + ? overrides.guestId! + : "cb5eebcf-a30a-4d09-abec-f439fea943d8", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "eb0d6378-f765-4197-997a-20cad038dcfd", + lastName: + overrides && overrides.hasOwnProperty("lastName") + ? overrides.lastName! + : "beatae", + phoneNumber: + overrides && overrides.hasOwnProperty("phoneNumber") + ? overrides.phoneNumber! + : "voluptas" + }; }; -export const anUnstableClientPasswordlessAuthSignInInput = (overrides?: Partial): UnstableClientPasswordlessAuthSignInInput => { - return { - code: overrides && overrides.hasOwnProperty('code') ? overrides.code! : 8439, - requestId: overrides && overrides.hasOwnProperty('requestId') ? overrides.requestId! : 'minima', - }; +export const anUpdateCartGuestPayload = ( + overrides?: Partial +): UpdateCartGuestPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart(), + guest: + overrides && overrides.hasOwnProperty("guest") + ? overrides.guest! + : aCartGuest() + }; }; -export const anUnstableClientPasswordlessAuthSignInPayload = (overrides?: Partial): UnstableClientPasswordlessAuthSignInPayload => { - return { - client: overrides && overrides.hasOwnProperty('client') ? overrides.client! : aClient(), - token: overrides && overrides.hasOwnProperty('token') ? overrides.token! : 'error', - }; +export const anUpdateCartInput = ( + overrides?: Partial +): UpdateCartInput => { + return { + advanceGratuity: + overrides && overrides.hasOwnProperty("advanceGratuity") + ? overrides.advanceGratuity! + : aCartAdvanceGratuityInput(), + clientInformation: + overrides && overrides.hasOwnProperty("clientInformation") + ? overrides.clientInformation! + : aCartClientInformationInput(), + clientMessage: + overrides && overrides.hasOwnProperty("clientMessage") + ? overrides.clientMessage! + : "non", + discountCode: + overrides && overrides.hasOwnProperty("discountCode") + ? overrides.discountCode! + : "labore", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "46f98543-1d9a-4871-98a0-aa97b3366e4f", + referralSource: + overrides && overrides.hasOwnProperty("referralSource") + ? overrides.referralSource! + : "velit" + }; }; -export const anUpdateCartGiftCardItemEmailFulfillmentInput = (overrides?: Partial): UpdateCartGiftCardItemEmailFulfillmentInput => { - return { - deliveryDate: overrides && overrides.hasOwnProperty('deliveryDate') ? overrides.deliveryDate! : '2009-04-15', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'b3e62c7c-9973-4340-bb9c-72e10ae0591e', - itemId: overrides && overrides.hasOwnProperty('itemId') ? overrides.itemId! : 'f524d9d4-f5ea-4b0f-bf95-8d6320dd2946', - messageFromSender: overrides && overrides.hasOwnProperty('messageFromSender') ? overrides.messageFromSender! : 'et', - recipientEmail: overrides && overrides.hasOwnProperty('recipientEmail') ? overrides.recipientEmail! : 'facere', - recipientName: overrides && overrides.hasOwnProperty('recipientName') ? overrides.recipientName! : 'id', - senderName: overrides && overrides.hasOwnProperty('senderName') ? overrides.senderName! : 'ipsa', - }; +export const anUpdateCartPayload = ( + overrides?: Partial +): UpdateCartPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; }; -export const anUpdateCartGiftCardItemEmailFulfillmentPayload = (overrides?: Partial): UpdateCartGiftCardItemEmailFulfillmentPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - emailFulfillment: overrides && overrides.hasOwnProperty('emailFulfillment') ? overrides.emailFulfillment! : aCartItemEmailFulfillment(), - }; +export const anUpdateCartSelectedBookableItemInput = ( + overrides?: Partial +): UpdateCartSelectedBookableItemInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "0af2c74a-f9ae-482c-9cc3-776a2824ec0d", + itemDiscountCode: + overrides && overrides.hasOwnProperty("itemDiscountCode") + ? overrides.itemDiscountCode! + : "neque", + itemGuestId: + overrides && overrides.hasOwnProperty("itemGuestId") + ? overrides.itemGuestId! + : "7c2f6e06-6e70-41d1-b2ba-7295fd287a08", + itemId: + overrides && overrides.hasOwnProperty("itemId") + ? overrides.itemId! + : "07e9a6ee-27e1-499e-a6a9-d4def7aa8c79", + itemOptionIds: + overrides && overrides.hasOwnProperty("itemOptionIds") + ? overrides.itemOptionIds! + : ["19d9ea5a-93e1-421a-9e00-69133d86bd8c"], + itemStaffVariantId: + overrides && overrides.hasOwnProperty("itemStaffVariantId") + ? overrides.itemStaffVariantId! + : "5d97de0a-124e-49f3-937e-6f7d7b8a213b" + }; }; -export const anUpdateCartGuestInput = (overrides?: Partial): UpdateCartGuestInput => { - return { - email: overrides && overrides.hasOwnProperty('email') ? overrides.email! : 'explicabo', - firstName: overrides && overrides.hasOwnProperty('firstName') ? overrides.firstName! : 'quasi', - guestId: overrides && overrides.hasOwnProperty('guestId') ? overrides.guestId! : 'cb5eebcf-a30a-4d09-abec-f439fea943d8', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'eb0d6378-f765-4197-997a-20cad038dcfd', - lastName: overrides && overrides.hasOwnProperty('lastName') ? overrides.lastName! : 'beatae', - phoneNumber: overrides && overrides.hasOwnProperty('phoneNumber') ? overrides.phoneNumber! : 'voluptas', - }; +export const anUpdateCartSelectedBookableItemPayload = ( + overrides?: Partial +): UpdateCartSelectedBookableItemPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; }; -export const anUpdateCartGuestPayload = (overrides?: Partial): UpdateCartGuestPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - guest: overrides && overrides.hasOwnProperty('guest') ? overrides.guest! : aCartGuest(), - }; +export const anUpdateCartSelectedGiftCardItemInput = ( + overrides?: Partial +): UpdateCartSelectedGiftCardItemInput => { + return { + giftCardDesignId: + overrides && overrides.hasOwnProperty("giftCardDesignId") + ? overrides.giftCardDesignId! + : "f95ed4b8-b4b6-49c1-930d-d3653ec41ef0", + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "39b8c15a-be2a-4fde-95e4-584419b113d3", + itemId: + overrides && overrides.hasOwnProperty("itemId") + ? overrides.itemId! + : "b9cf453c-bdad-4e7d-8b28-47c9f349c120", + itemPrice: + overrides && overrides.hasOwnProperty("itemPrice") + ? overrides.itemPrice! + : "molestias" + }; }; -export const anUpdateCartInput = (overrides?: Partial): UpdateCartInput => { - return { - advanceGratuity: overrides && overrides.hasOwnProperty('advanceGratuity') ? overrides.advanceGratuity! : aCartAdvanceGratuityInput(), - clientInformation: overrides && overrides.hasOwnProperty('clientInformation') ? overrides.clientInformation! : aCartClientInformationInput(), - clientMessage: overrides && overrides.hasOwnProperty('clientMessage') ? overrides.clientMessage! : 'non', - discountCode: overrides && overrides.hasOwnProperty('discountCode') ? overrides.discountCode! : 'labore', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '46f98543-1d9a-4871-98a0-aa97b3366e4f', - referralSource: overrides && overrides.hasOwnProperty('referralSource') ? overrides.referralSource! : 'velit', - }; +export const anUpdateCartSelectedGiftCardItemPayload = ( + overrides?: Partial +): UpdateCartSelectedGiftCardItemPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; }; -export const anUpdateCartPayload = (overrides?: Partial): UpdateCartPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; +export const anUpdateCartSelectedPurchasableItemInput = ( + overrides?: Partial +): UpdateCartSelectedPurchasableItemInput => { + return { + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "a1d8f63f-165e-483c-af52-9dae3d287c84", + itemDiscountCode: + overrides && overrides.hasOwnProperty("itemDiscountCode") + ? overrides.itemDiscountCode! + : "dolorem", + itemId: + overrides && overrides.hasOwnProperty("itemId") + ? overrides.itemId! + : "cf175864-dc59-4373-9d96-55c99bbeacfb" + }; }; -export const anUpdateCartSelectedBookableItemInput = (overrides?: Partial): UpdateCartSelectedBookableItemInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '0af2c74a-f9ae-482c-9cc3-776a2824ec0d', - itemDiscountCode: overrides && overrides.hasOwnProperty('itemDiscountCode') ? overrides.itemDiscountCode! : 'neque', - itemGuestId: overrides && overrides.hasOwnProperty('itemGuestId') ? overrides.itemGuestId! : '7c2f6e06-6e70-41d1-b2ba-7295fd287a08', - itemId: overrides && overrides.hasOwnProperty('itemId') ? overrides.itemId! : '07e9a6ee-27e1-499e-a6a9-d4def7aa8c79', - itemOptionIds: overrides && overrides.hasOwnProperty('itemOptionIds') ? overrides.itemOptionIds! : ['19d9ea5a-93e1-421a-9e00-69133d86bd8c'], - itemStaffVariantId: overrides && overrides.hasOwnProperty('itemStaffVariantId') ? overrides.itemStaffVariantId! : '5d97de0a-124e-49f3-937e-6f7d7b8a213b', - }; +export const anUpdateCartSelectedPurchasableItemPayload = ( + overrides?: Partial +): UpdateCartSelectedPurchasableItemPayload => { + return { + cart: + overrides && overrides.hasOwnProperty("cart") ? overrides.cart! : aCart() + }; }; -export const anUpdateCartSelectedBookableItemPayload = (overrides?: Partial): UpdateCartSelectedBookableItemPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; -}; +export const anUpdateClientInfoInput = ( + overrides?: Partial +): UpdateClientInfoInput => { + return { + address: + overrides && overrides.hasOwnProperty("address") + ? overrides.address! + : anAddressInput(), + dob: + overrides && overrides.hasOwnProperty("dob") + ? overrides.dob! + : "2005-04-27", + emergencyContactName: + overrides && overrides.hasOwnProperty("emergencyContactName") + ? overrides.emergencyContactName! + : "autem", + emergencyContactPhone: + overrides && overrides.hasOwnProperty("emergencyContactPhone") + ? overrides.emergencyContactPhone! + : "doloremque", + emergencyContactRelationship: + overrides && overrides.hasOwnProperty("emergencyContactRelationship") + ? overrides.emergencyContactRelationship! + : "accusantium", + pronoun: + overrides && overrides.hasOwnProperty("pronoun") + ? overrides.pronoun! + : "aut", + referral: + overrides && overrides.hasOwnProperty("referral") + ? overrides.referral! + : aReferralInput() + }; +}; -export const anUpdateCartSelectedGiftCardItemInput = (overrides?: Partial): UpdateCartSelectedGiftCardItemInput => { - return { - giftCardDesignId: overrides && overrides.hasOwnProperty('giftCardDesignId') ? overrides.giftCardDesignId! : 'f95ed4b8-b4b6-49c1-930d-d3653ec41ef0', - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '39b8c15a-be2a-4fde-95e4-584419b113d3', - itemId: overrides && overrides.hasOwnProperty('itemId') ? overrides.itemId! : 'b9cf453c-bdad-4e7d-8b28-47c9f349c120', - itemPrice: overrides && overrides.hasOwnProperty('itemPrice') ? overrides.itemPrice! : 'molestias', - }; +export const anUpdateClientInfoPayload = ( + overrides?: Partial +): UpdateClientInfoPayload => { + return { + client: + overrides && overrides.hasOwnProperty("client") + ? overrides.client! + : aClient() + }; }; - -export const anUpdateCartSelectedGiftCardItemPayload = (overrides?: Partial): UpdateCartSelectedGiftCardItemPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; -}; - -export const anUpdateCartSelectedPurchasableItemInput = (overrides?: Partial): UpdateCartSelectedPurchasableItemInput => { - return { - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : 'a1d8f63f-165e-483c-af52-9dae3d287c84', - itemDiscountCode: overrides && overrides.hasOwnProperty('itemDiscountCode') ? overrides.itemDiscountCode! : 'dolorem', - itemId: overrides && overrides.hasOwnProperty('itemId') ? overrides.itemId! : 'cf175864-dc59-4373-9d96-55c99bbeacfb', - }; -}; - -export const anUpdateCartSelectedPurchasableItemPayload = (overrides?: Partial): UpdateCartSelectedPurchasableItemPayload => { - return { - cart: overrides && overrides.hasOwnProperty('cart') ? overrides.cart! : aCart(), - }; -}; - -export const anUpdateClientInfoInput = (overrides?: Partial): UpdateClientInfoInput => { - return { - address: overrides && overrides.hasOwnProperty('address') ? overrides.address! : anAddressInput(), - dob: overrides && overrides.hasOwnProperty('dob') ? overrides.dob! : '2005-04-27', - emergencyContactName: overrides && overrides.hasOwnProperty('emergencyContactName') ? overrides.emergencyContactName! : 'autem', - emergencyContactPhone: overrides && overrides.hasOwnProperty('emergencyContactPhone') ? overrides.emergencyContactPhone! : 'doloremque', - emergencyContactRelationship: overrides && overrides.hasOwnProperty('emergencyContactRelationship') ? overrides.emergencyContactRelationship! : 'accusantium', - pronoun: overrides && overrides.hasOwnProperty('pronoun') ? overrides.pronoun! : 'aut', - referral: overrides && overrides.hasOwnProperty('referral') ? overrides.referral! : aReferralInput(), - }; + +export const anUpdateClientInput = ( + overrides?: Partial +): UpdateClientInput => { + return { + dob: + overrides && overrides.hasOwnProperty("dob") + ? overrides.dob! + : "1981-06-14", + email: + overrides && overrides.hasOwnProperty("email") + ? overrides.email! + : "adipisci", + firstName: + overrides && overrides.hasOwnProperty("firstName") + ? overrides.firstName! + : "in", + lastName: + overrides && overrides.hasOwnProperty("lastName") + ? overrides.lastName! + : "nulla", + mobilePhone: + overrides && overrides.hasOwnProperty("mobilePhone") + ? overrides.mobilePhone! + : "eligendi", + pronoun: + overrides && overrides.hasOwnProperty("pronoun") + ? overrides.pronoun! + : "eum" + }; }; - -export const anUpdateClientInfoPayload = (overrides?: Partial): UpdateClientInfoPayload => { - return { - client: overrides && overrides.hasOwnProperty('client') ? overrides.client! : aClient(), - }; -}; - -export const anUpdateClientInput = (overrides?: Partial): UpdateClientInput => { - return { - dob: overrides && overrides.hasOwnProperty('dob') ? overrides.dob! : '1981-06-14', - email: overrides && overrides.hasOwnProperty('email') ? overrides.email! : 'adipisci', - firstName: overrides && overrides.hasOwnProperty('firstName') ? overrides.firstName! : 'in', - lastName: overrides && overrides.hasOwnProperty('lastName') ? overrides.lastName! : 'nulla', - mobilePhone: overrides && overrides.hasOwnProperty('mobilePhone') ? overrides.mobilePhone! : 'eligendi', - pronoun: overrides && overrides.hasOwnProperty('pronoun') ? overrides.pronoun! : 'eum', - }; + +export const anUpdateClientPayload = ( + overrides?: Partial +): UpdateClientPayload => { + return { + client: + overrides && overrides.hasOwnProperty("client") + ? overrides.client! + : aClient() + }; }; -export const anUpdateClientPayload = (overrides?: Partial): UpdateClientPayload => { - return { - client: overrides && overrides.hasOwnProperty('client') ? overrides.client! : aClient(), - }; -}; +export const anUpdateCommunicationSubscriptionsInput = ( + overrides?: Partial +): UpdateCommunicationSubscriptionsInput => { + return { + communicationSubscriptions: + overrides && overrides.hasOwnProperty("communicationSubscriptions") + ? overrides.communicationSubscriptions! + : [aCommunicationSubscriptionInput()] + }; +}; -export const anUpdateCommunicationSubscriptionsInput = (overrides?: Partial): UpdateCommunicationSubscriptionsInput => { - return { - communicationSubscriptions: overrides && overrides.hasOwnProperty('communicationSubscriptions') ? overrides.communicationSubscriptions! : [aCommunicationSubscriptionInput()], - }; -}; - -export const anUpdateCommunicationSubscriptionsPayload = (overrides?: Partial): UpdateCommunicationSubscriptionsPayload => { - return { - communicationSubscriptions: overrides && overrides.hasOwnProperty('communicationSubscriptions') ? overrides.communicationSubscriptions! : [aCommunicationSubscription()], - success: overrides && overrides.hasOwnProperty('success') ? overrides.success! : true, - }; +export const anUpdateCommunicationSubscriptionsPayload = ( + overrides?: Partial +): UpdateCommunicationSubscriptionsPayload => { + return { + communicationSubscriptions: + overrides && overrides.hasOwnProperty("communicationSubscriptions") + ? overrides.communicationSubscriptions! + : [aCommunicationSubscription()], + success: + overrides && overrides.hasOwnProperty("success") + ? overrides.success! + : true + }; }; -export const anUpdateCustomFormInput = (overrides?: Partial): UpdateCustomFormInput => { - return { - answers: overrides && overrides.hasOwnProperty('answers') ? overrides.answers! : [aCustomFormAnswer()], - id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '6e691389-9f6f-4780-a6f7-2d02333a1294', - offline: overrides && overrides.hasOwnProperty('offline') ? overrides.offline! : false, - submit: overrides && overrides.hasOwnProperty('submit') ? overrides.submit! : false, - submittedAt: overrides && overrides.hasOwnProperty('submittedAt') ? overrides.submittedAt! : 'nobis', - void: overrides && overrides.hasOwnProperty('void') ? overrides.void! : true, - }; +export const anUpdateCustomFormInput = ( + overrides?: Partial +): UpdateCustomFormInput => { + return { + answers: + overrides && overrides.hasOwnProperty("answers") + ? overrides.answers! + : [aCustomFormAnswer()], + id: + overrides && overrides.hasOwnProperty("id") + ? overrides.id! + : "6e691389-9f6f-4780-a6f7-2d02333a1294", + offline: + overrides && overrides.hasOwnProperty("offline") + ? overrides.offline! + : false, + submit: + overrides && overrides.hasOwnProperty("submit") + ? overrides.submit! + : false, + submittedAt: + overrides && overrides.hasOwnProperty("submittedAt") + ? overrides.submittedAt! + : "nobis", + void: overrides && overrides.hasOwnProperty("void") ? overrides.void! : true + }; };