import { GraphQLClient } from "graphql-request"; import * as Dom from "graphql-request/dist/types.dom"; import { print } from "graphql"; import gql from "graphql-tag"; export type Maybe = T | null; export type InputMaybe = Maybe; 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; String: string; Boolean: boolean; Int: number; Float: number; Date: any; DateTime: any; JSON: any; JSONObject: any; }; export type ActiveCannabinoid = { __typename?: "ActiveCannabinoid"; cannabinoid?: Maybe; cannabinoidId?: Maybe; unit?: Maybe; value?: Maybe; }; export type ActiveTerpene = { __typename?: "ActiveTerpene"; id?: Maybe; name?: Maybe; terpene?: Maybe; terpeneId?: Maybe; unit?: Maybe; unitSymbol?: Maybe; value?: Maybe; }; export type AddressObject = { __typename?: "AddressObject"; city?: Maybe; country?: Maybe; line1?: Maybe; line2?: Maybe; postalCode?: Maybe; state?: Maybe; }; export type Banner = { __typename?: "Banner"; colors: BannerColorConfiguration; html: Scalars["String"]; }; export type BannerColorConfiguration = { __typename?: "BannerColorConfiguration"; /** Hex color code for the background of the banner */ background: Scalars["String"]; /** Hex color code for the border of the banner */ border: Scalars["String"]; /** Hex color code for the text color of the banner */ color: Scalars["String"]; id: Scalars["ID"]; }; /** Brand information for a product */ export type Brand = { __typename?: "Brand"; description: Scalars["String"]; id: Scalars["ID"]; /** The brand's image source hosted by our CDN */ imageUrl?: Maybe; name: Scalars["String"]; }; export type Cannabinoid = { __typename?: "Cannabinoid"; description?: Maybe; id: Scalars["ID"]; name: Scalars["String"]; }; /** Each product falls into one of these categories */ export enum Category { Accessories = "ACCESSORIES", Apparel = "APPAREL", Cbd = "CBD", Clones = "CLONES", Concentrates = "CONCENTRATES", Edibles = "EDIBLES", Flower = "FLOWER", NotApplicable = "NOT_APPLICABLE", Orals = "ORALS", PreRolls = "PRE_ROLLS", Seeds = "SEEDS", Tinctures = "TINCTURES", Topicals = "TOPICALS", Vaporizers = "VAPORIZERS", } export type CategoryLimit = { __typename?: "CategoryLimit"; name?: Maybe; value?: Maybe; }; export enum Checker { CheckLimits = "checkLimits", } /** Single-use container for a user's cart items + order metadata */ export type Checkout = { __typename?: "Checkout"; address?: Maybe; createdAt: Scalars["DateTime"]; id: Scalars["ID"]; items: Array; orderType: OrderType; priceSummary: PriceSummary; pricingType: PricingType; redirectUrl: Scalars["String"]; updatedAt: Scalars["DateTime"]; }; export type CheckoutAddress = { __typename?: "CheckoutAddress"; city?: Maybe; deliverable: Scalars["Boolean"]; formatted?: Maybe; geometry?: Maybe; state?: Maybe; street1?: Maybe; street2?: Maybe; valid: Scalars["Boolean"]; zip?: Maybe; }; export type CheckoutAddressGeometry = { __typename?: "CheckoutAddressGeometry"; coordinates?: Maybe>; type?: Maybe; }; export type CheckoutAddressInput = { city: Scalars["String"]; state: Scalars["String"]; street1: Scalars["String"]; street2?: InputMaybe; zip: Scalars["String"]; }; export type Coordinates = { __typename?: "Coordinates"; latitude?: Maybe; longitude?: Maybe; }; export type CoordinatesInput = { latitude: Scalars["Float"]; longitude: Scalars["Float"]; }; /** Customer information */ export type Customer = { __typename?: "Customer"; birthdate?: Maybe; email?: Maybe; guest: Scalars["Boolean"]; id: Scalars["ID"]; medicalCard?: Maybe; name?: Maybe; optIns: OptIns; orders?: Maybe>; phone: Scalars["String"]; }; export type CustomersFilter = { email?: InputMaybe; }; export type CustomersSort = { direction: SortDirection; key: CustomersSortKey; }; export enum CustomersSortKey { Email = "EMAIL", Name = "NAME", } export type DeliverySettings = { __typename?: "DeliverySettings"; afterHoursOrderingForDelivery?: Maybe; afterHoursOrderingForPickup?: Maybe; deliveryArea?: Maybe; deliveryFee?: Maybe; deliveryMinimum?: Maybe; disablePurchaseLimits?: Maybe; limitPerCustomer?: Maybe; pickupMinimum?: Maybe; scheduledOrderingForDelivery?: Maybe; scheduledOrderingForPickup?: Maybe; }; export type Discounts = { __typename?: "Discounts"; total?: Maybe; }; export enum DistanceUnit { Km = "KM", Mi = "MI", } /** List of Effects for Products */ export enum Effects { Calm = "CALM", ClearMind = "CLEAR_MIND", Creative = "CREATIVE", Energetic = "ENERGETIC", Focused = "FOCUSED", Happy = "HAPPY", Inspired = "INSPIRED", Relaxed = "RELAXED", Sleepy = "SLEEPY", Uplifted = "UPLIFTED", } export type Fees = { __typename?: "Fees"; delivery?: Maybe; payment?: Maybe; tip?: Maybe; total?: Maybe; }; export type FulfillmentOptions = { __typename?: "FulfillmentOptions"; curbsidePickup?: Maybe; delivery?: Maybe; driveThruPickup?: Maybe; pickup?: Maybe; }; export type Hours = { __typename?: "Hours"; Friday?: Maybe; Monday?: Maybe; Saturday?: Maybe; Sunday?: Maybe; Thursday?: Maybe; Tuesday?: Maybe; Wednesday?: Maybe; }; export type HoursDay = { __typename?: "HoursDay"; active?: Maybe; end?: Maybe; start?: Maybe; }; export type HoursSettings = { __typename?: "HoursSettings"; delivery?: Maybe; pickup?: Maybe; regular?: Maybe; special?: Maybe>>; }; /** Line item in a checkout by variant */ export type Item = { __typename?: "Item"; basePrice?: Maybe; discounts?: Maybe; errors: Array; id: Scalars["ID"]; isDiscounted?: Maybe; option: Scalars["String"]; product: Product; productId: Scalars["String"]; quantity: Scalars["Int"]; taxes?: Maybe; valid: Scalars["Boolean"]; }; export type ItemDiscounts = { __typename?: "ItemDiscounts"; total?: Maybe; }; export type ItemTaxes = { __typename?: "ItemTaxes"; cannabis?: Maybe; sales?: Maybe; total?: Maybe; }; export enum LoaderType { HasMany = "HAS_MANY", HasOne = "HAS_ONE", Join = "JOIN", } export type LocationDetail = { __typename?: "LocationDetail"; distance: Scalars["Float"]; /** Effective max distance value, returned after any capping of the input */ maxDistance: Scalars["Float"]; unit: DistanceUnit; validForDelivery: Scalars["Boolean"]; }; export type MedicalCard = { __typename?: "MedicalCard"; expirationDate?: Maybe; number?: Maybe; photo?: Maybe; state?: Maybe; }; /** Paginated list of products & aggregated meta data for those products. */ export type Menu = { __typename?: "Menu"; brands: Array; products: Array; productsCount: Scalars["Int"]; tags?: Maybe>; weights: Array; }; /** Filters to hone results of the `menu` query */ export type MenuFilter = { brandId?: InputMaybe; category?: InputMaybe; effects?: InputMaybe>; menuSection?: InputMaybe; posMetaData?: InputMaybe; potencyCbd?: InputMaybe; potencyThc?: InputMaybe; search?: InputMaybe; strainType?: InputMaybe; subcategory?: InputMaybe; tags?: InputMaybe>>; weights?: InputMaybe>; }; export type MenuSectionFilter = { name?: InputMaybe; specialId?: InputMaybe>>; type: MenuSectionFilterType; }; export enum MenuSectionFilterType { CustomSection = "CUSTOM_SECTION", Specials = "SPECIALS", StaffPicks = "STAFF_PICKS", } export type MenuSort = { direction: SortDirection; key: MenuSortKey; }; export enum MenuSortKey { Name = "NAME", Popular = "POPULAR", Potency = "POTENCY", Price = "PRICE", } export enum MenuType { Medical = "MEDICAL", Recreational = "RECREATIONAL", } export enum Modules { Fraud = "fraud", MessageProxy = "messageProxy", PaymentProcessing = "paymentProcessing", Reporting = "reporting", } export type Mutation = { __typename?: "Mutation"; /** Add an item to a checkout */ addItem?: Maybe; /** Create a checkout */ createCheckout?: Maybe; /** Ping the Dutchie Plus API to confirm your API key is valid. */ ping?: Maybe; /** Remove an item from a checkout */ removeItem?: Maybe; /** Update the settings of a checkout */ updateCheckout?: Maybe; /** Update the quantity of an item in a checkout */ updateQuantity?: Maybe; }; export type MutationAddItemArgs = { checkoutId: Scalars["ID"]; option: Scalars["String"]; productId: Scalars["ID"]; quantity: Scalars["Int"]; retailerId: Scalars["ID"]; }; export type MutationCreateCheckoutArgs = { address?: InputMaybe; metadata?: InputMaybe; orderType: OrderType; pricingType: PricingType; retailerId: Scalars["ID"]; }; export type MutationRemoveItemArgs = { checkoutId: Scalars["ID"]; itemId: Scalars["ID"]; retailerId: Scalars["ID"]; }; export type MutationUpdateCheckoutArgs = { address?: InputMaybe; checkoutId: Scalars["ID"]; metadata?: InputMaybe; orderType?: InputMaybe; pricingType?: InputMaybe; retailerId: Scalars["ID"]; }; export type MutationUpdateQuantityArgs = { checkoutId: Scalars["ID"]; itemId: Scalars["ID"]; quantity: Scalars["Int"]; retailerId: Scalars["ID"]; }; export type OptIns = { __typename?: "OptIns"; marketing: Scalars["Boolean"]; orderStatus: Scalars["Boolean"]; specials: Scalars["Boolean"]; }; /** Order information */ export type Order = { __typename?: "Order"; createdAt: Scalars["DateTime"]; customer?: Maybe; customerId?: Maybe; delivery: Scalars["Boolean"]; discounts?: Maybe; dispensaryName: Scalars["String"]; fees?: Maybe; foreignId: Scalars["String"]; id: Scalars["ID"]; items: Array; medical: Scalars["Boolean"]; metadata?: Maybe; orderNumber: Scalars["String"]; paymentMethod: PaymentMethod; pickup: Scalars["Boolean"]; recreational: Scalars["Boolean"]; reservationDate?: Maybe; status: Scalars["String"]; subtotal: Scalars["Float"]; tax: Scalars["Float"]; taxes?: Maybe; total: Scalars["Float"]; }; export type OrderItem = { __typename?: "OrderItem"; option: Scalars["String"]; price: Scalars["Float"]; product?: Maybe; productId: Scalars["String"]; quantity: Scalars["Int"]; subtotal: Scalars["Float"]; }; /** Used to determine the fulfillment option of a checkout */ export enum OrderType { CurbsidePickup = "CURBSIDE_PICKUP", Delivery = "DELIVERY", DriveThruPickup = "DRIVE_THRU_PICKUP", InStorePickup = "IN_STORE_PICKUP", Kiosk = "KIOSK", Pickup = "PICKUP", } /** Filters to hone results of the `orders` query */ export type OrdersFilter = { customerId?: InputMaybe; orderNumber?: InputMaybe; search?: InputMaybe; }; export type OrdersSort = { direction: SortDirection; key: OrdersSortKey; }; export enum OrdersSortKey { CreatedAt = "CREATED_AT", } /** Pagination input for queries that return multiple results */ export type Pagination = { limit: Scalars["Int"]; offset: Scalars["Int"]; }; export enum PaymentMethod { Aeropay = "AEROPAY", Alt_36 = "ALT_36", CanPay = "CAN_PAY", Cash = "CASH", Chase = "CHASE", Check = "CHECK", Credit = "CREDIT", CreditCard = "CREDIT_CARD", CreditCardAtDoor = "CREDIT_CARD_AT_DOOR", CreditCardByPhone = "CREDIT_CARD_BY_PHONE", Debit = "DEBIT", DebitCard = "DEBIT_CARD", DebitOnly = "DEBIT_ONLY", DutchiePay = "DUTCHIE_PAY", Hypur = "HYPUR", InStoreCreditCard = "IN_STORE_CREDIT_CARD", Linx = "LINX", Merrco = "MERRCO", Moneris = "MONERIS", Paytender = "PAYTENDER", } export type PaymentMethodsByOrderType = { __typename?: "PaymentMethodsByOrderType"; orderType: OrderType; paymentMethods: Array; }; export type PaymentOptions = { __typename?: "PaymentOptions"; aeropay?: Maybe; alt36?: Maybe; canPay?: Maybe; cashOnly?: Maybe; cashless?: Maybe; check?: Maybe; creditCard?: Maybe; creditCardAtDoor?: Maybe; creditCardByPhone?: Maybe; debitOnly?: Maybe; hypur?: Maybe; linx?: Maybe; merrco?: Maybe; payInStore?: Maybe; paytender?: Maybe; }; /** Return type for `ping` resolver */ export type Ping = { __typename?: "Ping"; id: Scalars["ID"]; /** Time the ping occurred */ time: Scalars["DateTime"]; }; export enum PlusDataLoaders { BrandLoader = "brandLoader", ProductLoader = "productLoader", } /** The product's point-of-sale data if it was imported from a 3rd-party integration */ export type PosMetaData = { __typename?: "PosMetaData"; category?: Maybe; id?: Maybe; sku?: Maybe; }; export type PosMetaDataFilter = { category?: InputMaybe; }; /** Percentage or milligram potency of a particular product */ export type Potency = { __typename?: "Potency"; /** A formatted string for display, e.g. 'CBD: 100mg' or 'THC: 18.17%' */ formatted: Scalars["String"]; range: Array; unit: Scalars["String"]; }; export type PotencyRange = { max?: InputMaybe; min?: InputMaybe; unit?: InputMaybe; }; export enum PotencyUnit { Milligrams = "MILLIGRAMS", MilligramsPerGram = "MILLIGRAMS_PER_GRAM", MilligramsPerMl = "MILLIGRAMS_PER_ML", Percentage = "PERCENTAGE", } export type PriceSummary = { __typename?: "PriceSummary"; discounts: Scalars["Int"]; fees: Scalars["Int"]; mixAndMatch: Scalars["Int"]; rewards: Scalars["Int"]; /** Total before taxes, fees, etc. */ subtotal: Scalars["Int"]; taxes: Scalars["Int"]; /** Final total including taxes, fees, etc. */ total: Scalars["Int"]; }; /** Used to determine pricing for items in a checkout */ export enum PricingType { Medical = "MEDICAL", Recreational = "RECREATIONAL", } /** Product information such as name, image, etc. */ export type Product = { __typename?: "Product"; brand?: Maybe; cannabinoids?: Maybe>>; category: Category; /** Product description in plaintext */ description: Scalars["String"]; /** Product description in pre-rendered HTML */ descriptionHtml: Scalars["String"]; /** List of product effects */ effects: Array; enterpriseProductId?: Maybe; id: Scalars["ID"]; /** The product's image source hosted by our CDN */ image: Scalars["String"]; images: Array; menuTypes: Array; name: Scalars["String"]; /** The product's point-of-sale id if it was imported from a 3rd-party integration */ posId?: Maybe; /** Metadata object that contains data from POS systems */ posMetaData?: Maybe; potencyCbd?: Maybe; potencyThc?: Maybe; productAvailabilityByRetailer?: Maybe< Array> >; /** ID of active product batch to identify terpene and cannabinoid concentrations */ productBatchId?: Maybe; /** a human-readable unique identifier */ slug?: Maybe; /** A flag indicating this product is one of your staff's top choices */ staffPick: Scalars["Boolean"]; strainType?: Maybe; subcategory?: Maybe; tags: Array; terpenes?: Maybe>>; /** A list of versions of this product available for sale */ variants: Array; }; export type ProductAvailabilityByRetailer = { __typename?: "ProductAvailabilityByRetailer"; isAvailable: Scalars["Boolean"]; productId: Scalars["String"]; retailer: Retailer; }; export type ProductImage = { __typename?: "ProductImage"; description?: Maybe; id?: Maybe; label?: Maybe; url: Scalars["String"]; }; /** A particular version of a product, such as a particular weight or size */ export type ProductVariant = { __typename?: "ProductVariant"; id: Scalars["ID"]; option: Scalars["String"]; priceMed?: Maybe; priceRec?: Maybe; quantity?: Maybe; specialPriceMed?: Maybe; specialPriceRec?: Maybe; }; export type Query = { __typename?: "Query"; checkout?: Maybe; /** Get the data for a particular customer. */ customer?: Maybe; /** Get customers for a particular dispensaary. */ customers: Array; menu?: Maybe; /** Get the data for a particular order. */ order?: Maybe; /** Get orders for a particular dispensaary. */ orders: Array; /** Get the data for a particular product. */ product?: Maybe; /** Check the availability of a product at retailers within an enterprise using only the enterprise product id. */ productAvailabilityByRetailer: Array; retailer?: Maybe; retailers: Array; retailersNearLocation: Array; specials?: Maybe>>; }; export type QueryCheckoutArgs = { id: Scalars["ID"]; retailerId: Scalars["ID"]; }; export type QueryCustomerArgs = { id: Scalars["ID"]; retailerId: Scalars["ID"]; }; export type QueryCustomersArgs = { filter?: InputMaybe; pagination?: InputMaybe; retailerId: Scalars["ID"]; sort?: InputMaybe; }; export type QueryMenuArgs = { filter?: InputMaybe; ignoreQuantityThresholds?: InputMaybe; menuType?: InputMaybe; pagination?: InputMaybe; retailerId: Scalars["ID"]; sort?: InputMaybe; }; export type QueryOrderArgs = { id: Scalars["ID"]; retailerId: Scalars["ID"]; }; export type QueryOrdersArgs = { filter?: InputMaybe; pagination?: InputMaybe; retailerId: Scalars["ID"]; sort?: InputMaybe; }; export type QueryProductArgs = { id: Scalars["ID"]; ignoreQuantityThresholds?: InputMaybe; retailerId: Scalars["ID"]; }; export type QueryProductAvailabilityByRetailerArgs = { enterpriseProductId: Scalars["ID"]; }; export type QueryRetailerArgs = { id: Scalars["ID"]; }; export type QueryRetailersNearLocationArgs = { location: RetailersNearLocationInput; }; export type QuerySpecialsArgs = { retailerId: Scalars["ID"]; }; export type ReservationDate = { __typename?: "ReservationDate"; endTime: Scalars["DateTime"]; startTime: Scalars["DateTime"]; }; export enum RestMethods { Del = "del", Get = "get", Patch = "patch", Post = "post", Put = "put", } /** Retailer docs */ export type Retailer = { __typename?: "Retailer"; address: Scalars["String"]; addressObject?: Maybe; banner?: Maybe; categoryLimits: Array; coordinates?: Maybe; deliverySettings: DeliverySettings; description: Scalars["String"]; fulfillmentOptions: FulfillmentOptions; hours: HoursSettings; id: Scalars["ID"]; menuTypes: Array; name: Scalars["String"]; paymentMethodsByOrderTypes: Array; /** @deprecated Use paymentMethodsByOrderTypes */ paymentOptions: PaymentOptions; phone: Scalars["String"]; settings: Settings; }; export type RetailerNearLocation = { __typename?: "RetailerNearLocation"; locationDetail: LocationDetail; retailer: Retailer; }; /** Returns a listing of retailers within the current enterprise, sorted by distance to the provided coordinates. */ export type RetailersNearLocationInput = { coordinates: CoordinatesInput; /** Maximum distance is capped at 250 for miles and 500 for kilometers, larger values will have no effect */ maxDistance?: Scalars["Float"]; unit?: DistanceUnit; }; export enum Services { AcceptancesService = "AcceptancesService", AccountBalancesService = "AccountBalancesService", AchBatchesService = "AchBatchesService", AchEntriesService = "AchEntriesService", AchReturnReportsService = "AchReturnReportsService", AchReturnsService = "AchReturnsService", AchReversalsService = "AchReversalsService", BankAccountsService = "BankAccountsService", BillingAddressesService = "BillingAddressesService", EnrollmentsService = "EnrollmentsService", EntitiesService = "EntitiesService", EntityLinkingsService = "EntityLinkingsService", FraudAssessmentsService = "FraudAssessmentsService", InstoreAnalyticsTokensService = "InstoreAnalyticsTokensService", InstoreCartsService = "InstoreCartsService", MessageProxyService = "MessageProxyService", PaymentMethodsService = "PaymentMethodsService", PaymentsService = "PaymentsService", PreAuthsService = "PreAuthsService", RegistrationService = "RegistrationService", RetailerEnrollmentsService = "RetailerEnrollmentsService", WidgetUrlService = "WidgetUrlService", } export type Settings = { __typename?: "Settings"; menuWeights?: Maybe; }; export enum SortDirection { Asc = "ASC", Desc = "DESC", } /** Specials returns all active specials */ export type Special = { __typename?: "Special"; emailConfiguration?: Maybe; id: Scalars["ID"]; menuDisplayConfiguration?: Maybe; menuType?: Maybe; name: Scalars["String"]; redemptionLimit?: Maybe; scheduleConfiguration?: Maybe; type: SpecialType; }; export type SpecialEmail = { __typename?: "SpecialEmail"; description?: Maybe; descriptionHtml?: Maybe; enabled?: Maybe; heading?: Maybe; subject?: Maybe; }; export type SpecialHours = { __typename?: "SpecialHours"; endDate: Scalars["String"]; hoursPerDay?: Maybe>>; name: Scalars["String"]; startDate: Scalars["String"]; }; export type SpecialHoursDay = { __typename?: "SpecialHoursDay"; date: Scalars["String"]; deliveryHours: HoursDay; pickupHours: HoursDay; }; export type SpecialMenuDisplay = { __typename?: "SpecialMenuDisplay"; description?: Maybe; image?: Maybe; name?: Maybe; }; export enum SpecialMenuType { Both = "BOTH", Medical = "MEDICAL", Recreational = "RECREATIONAL", } export type SpecialSchedule = { __typename?: "SpecialSchedule"; /** Days of the week recurring special runs. 0 = Sunday, 6 = Saturday */ days?: Maybe>>; /** End date for recurring special */ endDate?: Maybe; /** End date for one time specials */ endStamp?: Maybe; /** @deprecated Use recurringEndTime */ endTime?: Maybe; /** Human readable time that a recurring special ends, e.g. 10:00 AM */ recurringEndTime?: Maybe; /** Human readable time that a recurring special starts, e.g. 10:00 AM */ recurringStartTime?: Maybe; /** Is there an end date for recurring special */ setEndDate?: Maybe; /** Start date for one time and recurring specials */ startStamp?: Maybe; /** @deprecated Use recurringStartTime */ startTime?: Maybe; }; export enum SpecialType { Offer = "OFFER", Sale = "SALE", } export enum StrainType { HighCbd = "HIGH_CBD", Hybrid = "HYBRID", Indica = "INDICA", NotApplicable = "NOT_APPLICABLE", Sativa = "SATIVA", } /** Certain categories have subcategories to help customer's more easily find certain products */ export enum Subcategory { Applicators = "APPLICATORS", Badder = "BADDER", BakedGoods = "BAKED_GOODS", Balms = "BALMS", BathProducts = "BATH_PRODUCTS", Batteries = "BATTERIES", Blunts = "BLUNTS", Budder = "BUDDER", Bundles = "BUNDLES", CapsulesTablets = "CAPSULES_TABLETS", Cartridges = "CARTRIDGES", Chews = "CHEWS", Chocolates = "CHOCOLATES", CleaningSolutions = "CLEANING_SOLUTIONS", CookingBaking = "COOKING_BAKING", Crumble = "CRUMBLE", DabTools = "DAB_TOOLS", Default = "DEFAULT", Devices = "DEVICES", Diamonds = "DIAMONDS", Disposables = "DISPOSABLES", Dissolvables = "DISSOLVABLES", Drinks = "DRINKS", Flavored = "FLAVORED", FrozenTreats = "FROZEN_TREATS", GiftCards = "GIFT_CARDS", Glassware = "GLASSWARE", Grinders = "GRINDERS", Gummies = "GUMMIES", HardCandy = "HARD_CANDY", Hash = "HASH", Herbal = "HERBAL", Infused = "INFUSED", InfusedBud = "INFUSED_BUD", InfusedFlower = "INFUSED_FLOWER", Isolate = "ISOLATE", Kief = "KIEF", Lighters = "LIGHTERS", LipBalms = "LIP_BALMS", LiveResin = "LIVE_RESIN", Lotions = "LOTIONS", Lozenges = "LOZENGES", Lubricants = "LUBRICANTS", Oil = "OIL", Packs = "PACKS", PapersRollingSupplies = "PAPERS_ROLLING_SUPPLIES", Pet = "PET", Pods = "PODS", PreGround = "PRE_GROUND", Rosin = "ROSIN", Rso = "RSO", Sauce = "SAUCE", SavorySnacks = "SAVORY_SNACKS", ShakeTrim = "SHAKE_TRIM", Shatter = "SHATTER", Singles = "SINGLES", SmallBuds = "SMALL_BUDS", Soaps = "SOAPS", Sprays = "SPRAYS", SticksRollOns = "STICKS_ROLL_ONS", StorageContainers = "STORAGE_CONTAINERS", Sublingual = "SUBLINGUAL", Suckers = "SUCKERS", Sugar = "SUGAR", Suppositories = "SUPPOSITORIES", TopicalOils = "TOPICAL_OILS", TransdermalPatches = "TRANSDERMAL_PATCHES", Trays = "TRAYS", Unflavored = "UNFLAVORED", Wax = "WAX", } export type Taxes = { __typename?: "Taxes"; cannabis?: Maybe; sales?: Maybe; total?: Maybe; }; export type Terpene = { __typename?: "Terpene"; aliasList?: Maybe>>; aromas?: Maybe>>; description?: Maybe; effects?: Maybe>>; id: Scalars["ID"]; name?: Maybe; potentialHealthBenefits?: Maybe>>; unitSymbol?: Maybe; }; export enum Transform { CheckoutTransform = "checkoutTransform", } export enum Versions { V1 = "v1", V2 = "v2", V3 = "v3", V4 = "v4", } export type CheckoutFragmentFragment = { __typename?: "Checkout"; id: string; redirectUrl: string; items: Array<{ __typename?: "Item"; id: string; quantity: number; productId: string; valid: boolean; isDiscounted?: boolean | null; basePrice?: number | null; option: string; discounts?: { __typename?: "ItemDiscounts"; total?: number | null } | null; }>; priceSummary: { __typename?: "PriceSummary"; discounts: number; fees: number; subtotal: number; mixAndMatch: number; rewards: number; total: number; taxes: number; }; }; export type CreateCheckoutMutationVariables = Exact<{ orderType: OrderType; pricingType: PricingType; retailerId: Scalars["ID"]; address?: InputMaybe; }>; export type CreateCheckoutMutation = { __typename?: "Mutation"; createCheckout?: { __typename?: "Checkout"; id: string; redirectUrl: string; items: Array<{ __typename?: "Item"; id: string; quantity: number; productId: string; valid: boolean; isDiscounted?: boolean | null; basePrice?: number | null; option: string; discounts?: { __typename?: "ItemDiscounts"; total?: number | null; } | null; }>; priceSummary: { __typename?: "PriceSummary"; discounts: number; fees: number; subtotal: number; mixAndMatch: number; rewards: number; total: number; taxes: number; }; } | null; }; export type RemoveItemFromCheckoutMutationVariables = Exact<{ retailerId: Scalars["ID"]; checkoutId: Scalars["ID"]; itemId: Scalars["ID"]; }>; export type RemoveItemFromCheckoutMutation = { __typename?: "Mutation"; removeItem?: { __typename?: "Checkout"; id: string; redirectUrl: string; items: Array<{ __typename?: "Item"; id: string; quantity: number; productId: string; valid: boolean; isDiscounted?: boolean | null; basePrice?: number | null; option: string; discounts?: { __typename?: "ItemDiscounts"; total?: number | null; } | null; }>; priceSummary: { __typename?: "PriceSummary"; discounts: number; fees: number; subtotal: number; mixAndMatch: number; rewards: number; total: number; taxes: number; }; } | null; }; export type UpdateQuantityFromCheckoutMutationVariables = Exact<{ retailerId: Scalars["ID"]; checkoutId: Scalars["ID"]; itemId: Scalars["ID"]; quantity: Scalars["Int"]; }>; export type UpdateQuantityFromCheckoutMutation = { __typename?: "Mutation"; updateQuantity?: { __typename?: "Checkout"; id: string; redirectUrl: string; items: Array<{ __typename?: "Item"; id: string; quantity: number; productId: string; valid: boolean; isDiscounted?: boolean | null; basePrice?: number | null; option: string; discounts?: { __typename?: "ItemDiscounts"; total?: number | null; } | null; }>; priceSummary: { __typename?: "PriceSummary"; discounts: number; fees: number; subtotal: number; mixAndMatch: number; rewards: number; total: number; taxes: number; }; } | null; }; export type AddItemToCheckoutMutationVariables = Exact<{ retailerId: Scalars["ID"]; checkoutId: Scalars["ID"]; productId: Scalars["ID"]; quantity: Scalars["Int"]; option: Scalars["String"]; }>; export type AddItemToCheckoutMutation = { __typename?: "Mutation"; addItem?: { __typename?: "Checkout"; id: string; redirectUrl: string; items: Array<{ __typename?: "Item"; id: string; quantity: number; productId: string; valid: boolean; isDiscounted?: boolean | null; basePrice?: number | null; option: string; discounts?: { __typename?: "ItemDiscounts"; total?: number | null; } | null; }>; priceSummary: { __typename?: "PriceSummary"; discounts: number; fees: number; subtotal: number; mixAndMatch: number; rewards: number; total: number; taxes: number; }; } | null; }; export type CheckoutQueryVariables = Exact<{ retailerId: Scalars["ID"]; id: Scalars["ID"]; }>; export type CheckoutQuery = { __typename?: "Query"; checkout?: { __typename?: "Checkout"; id: string; redirectUrl: string; items: Array<{ __typename?: "Item"; id: string; quantity: number; productId: string; valid: boolean; isDiscounted?: boolean | null; basePrice?: number | null; option: string; discounts?: { __typename?: "ItemDiscounts"; total?: number | null; } | null; }>; priceSummary: { __typename?: "PriceSummary"; discounts: number; fees: number; subtotal: number; mixAndMatch: number; rewards: number; total: number; taxes: number; }; } | null; }; export type MenuQueryQueryVariables = Exact<{ pagination?: InputMaybe; retailerId: Scalars["ID"]; menuType?: InputMaybe; }>; export type MenuQueryQuery = { __typename?: "Query"; menu?: { __typename?: "Menu"; productsCount: number; products: Array<{ __typename?: "Product"; category: Category; description: string; effects: Array; id: string; image: string; name: string; posId?: string | null; staffPick: boolean; strainType?: StrainType | null; subcategory?: Subcategory | null; brand?: { __typename?: "Brand"; id: string; name: string; imageUrl?: string | null; description: string; } | null; potencyCbd?: { __typename?: "Potency"; formatted: string; range: Array; unit: string; } | null; potencyThc?: { __typename?: "Potency"; formatted: string; range: Array; unit: string; } | null; variants: Array<{ __typename?: "ProductVariant"; id: string; option: string; priceMed?: number | null; priceRec?: number | null; specialPriceMed?: number | null; specialPriceRec?: number | null; quantity?: number | null; }>; terpenes?: Array<{ __typename?: "ActiveTerpene"; id?: string | null; name?: string | null; terpeneId?: string | null; unit?: PotencyUnit | null; unitSymbol?: string | null; value?: number | null; terpene?: { __typename?: "Terpene"; aliasList?: Array | null; aromas?: Array | null; description?: string | null; effects?: Array | null; id: string; name?: string | null; potentialHealthBenefits?: Array | null; unitSymbol?: string | null; } | null; } | null> | null; }>; brands: Array<{ __typename?: "Brand"; id: string; name: string; description: string; imageUrl?: string | null; }>; } | null; }; export type GetRelatedProductsQueryVariables = Exact<{ pagination?: InputMaybe; retailerId: Scalars["ID"]; menuType: MenuType; category: Category; }>; export type GetRelatedProductsQuery = { __typename?: "Query"; menu?: { __typename?: "Menu"; products: Array<{ __typename?: "Product"; id: string; name: string; category: Category; posId?: string | null; }>; } | null; }; export type FetchSpecialProductsQueryVariables = Exact<{ pagination?: InputMaybe; retailerId: Scalars["ID"]; menuSectionFilter?: InputMaybe; }>; export type FetchSpecialProductsQuery = { __typename?: "Query"; menu?: { __typename?: "Menu"; productsCount: number; products: Array<{ __typename?: "Product"; id: string }>; } | null; }; export type OrderFragmentFragment = { __typename?: "Order"; createdAt: any; customerId?: string | null; delivery: boolean; id: string; medical: boolean; recreational: boolean; orderNumber: string; pickup: boolean; status: string; subtotal: number; tax: number; total: number; customer?: { __typename?: "Customer"; email?: string | null } | null; discounts?: { __typename?: "Discounts"; total?: number | null } | null; items: Array<{ __typename?: "OrderItem"; option: string; price: number; productId: string; quantity: number; subtotal: number; product?: { __typename?: "Product"; category: Category; description: string; effects: Array; id: string; image: string; name: string; posId?: string | null; staffPick: boolean; strainType?: StrainType | null; subcategory?: Subcategory | null; brand?: { __typename?: "Brand"; id: string; name: string; imageUrl?: string | null; description: string; } | null; potencyCbd?: { __typename?: "Potency"; formatted: string; range: Array; unit: string; } | null; potencyThc?: { __typename?: "Potency"; formatted: string; range: Array; unit: string; } | null; variants: Array<{ __typename?: "ProductVariant"; id: string; option: string; priceMed?: number | null; priceRec?: number | null; specialPriceMed?: number | null; specialPriceRec?: number | null; quantity?: number | null; }>; terpenes?: Array<{ __typename?: "ActiveTerpene"; id?: string | null; name?: string | null; terpeneId?: string | null; unit?: PotencyUnit | null; unitSymbol?: string | null; value?: number | null; terpene?: { __typename?: "Terpene"; aliasList?: Array | null; aromas?: Array | null; description?: string | null; effects?: Array | null; id: string; name?: string | null; potentialHealthBenefits?: Array | null; unitSymbol?: string | null; } | null; } | null> | null; } | null; }>; reservationDate?: { __typename?: "ReservationDate"; startTime: any; endTime: any; } | null; }; export type OrderByNumberQueryVariables = Exact<{ retailerId: Scalars["ID"]; orderNumber: Scalars["String"]; }>; export type OrderByNumberQuery = { __typename?: "Query"; orders: Array<{ __typename?: "Order"; createdAt: any; customerId?: string | null; delivery: boolean; id: string; medical: boolean; recreational: boolean; orderNumber: string; pickup: boolean; status: string; subtotal: number; tax: number; total: number; customer?: { __typename?: "Customer"; email?: string | null } | null; discounts?: { __typename?: "Discounts"; total?: number | null } | null; items: Array<{ __typename?: "OrderItem"; option: string; price: number; productId: string; quantity: number; subtotal: number; product?: { __typename?: "Product"; category: Category; description: string; effects: Array; id: string; image: string; name: string; posId?: string | null; staffPick: boolean; strainType?: StrainType | null; subcategory?: Subcategory | null; brand?: { __typename?: "Brand"; id: string; name: string; imageUrl?: string | null; description: string; } | null; potencyCbd?: { __typename?: "Potency"; formatted: string; range: Array; unit: string; } | null; potencyThc?: { __typename?: "Potency"; formatted: string; range: Array; unit: string; } | null; variants: Array<{ __typename?: "ProductVariant"; id: string; option: string; priceMed?: number | null; priceRec?: number | null; specialPriceMed?: number | null; specialPriceRec?: number | null; quantity?: number | null; }>; terpenes?: Array<{ __typename?: "ActiveTerpene"; id?: string | null; name?: string | null; terpeneId?: string | null; unit?: PotencyUnit | null; unitSymbol?: string | null; value?: number | null; terpene?: { __typename?: "Terpene"; aliasList?: Array | null; aromas?: Array | null; description?: string | null; effects?: Array | null; id: string; name?: string | null; potentialHealthBenefits?: Array | null; unitSymbol?: string | null; } | null; } | null> | null; } | null; }>; reservationDate?: { __typename?: "ReservationDate"; startTime: any; endTime: any; } | null; }>; }; export type OrderByIdQueryVariables = Exact<{ retailerId: Scalars["ID"]; id: Scalars["ID"]; }>; export type OrderByIdQuery = { __typename?: "Query"; order?: { __typename?: "Order"; createdAt: any; customerId?: string | null; delivery: boolean; id: string; medical: boolean; recreational: boolean; orderNumber: string; pickup: boolean; status: string; subtotal: number; tax: number; total: number; customer?: { __typename?: "Customer"; email?: string | null } | null; discounts?: { __typename?: "Discounts"; total?: number | null } | null; items: Array<{ __typename?: "OrderItem"; option: string; price: number; productId: string; quantity: number; subtotal: number; product?: { __typename?: "Product"; category: Category; description: string; effects: Array; id: string; image: string; name: string; posId?: string | null; staffPick: boolean; strainType?: StrainType | null; subcategory?: Subcategory | null; brand?: { __typename?: "Brand"; id: string; name: string; imageUrl?: string | null; description: string; } | null; potencyCbd?: { __typename?: "Potency"; formatted: string; range: Array; unit: string; } | null; potencyThc?: { __typename?: "Potency"; formatted: string; range: Array; unit: string; } | null; variants: Array<{ __typename?: "ProductVariant"; id: string; option: string; priceMed?: number | null; priceRec?: number | null; specialPriceMed?: number | null; specialPriceRec?: number | null; quantity?: number | null; }>; terpenes?: Array<{ __typename?: "ActiveTerpene"; id?: string | null; name?: string | null; terpeneId?: string | null; unit?: PotencyUnit | null; unitSymbol?: string | null; value?: number | null; terpene?: { __typename?: "Terpene"; aliasList?: Array | null; aromas?: Array | null; description?: string | null; effects?: Array | null; id: string; name?: string | null; potentialHealthBenefits?: Array | null; unitSymbol?: string | null; } | null; } | null> | null; } | null; }>; reservationDate?: { __typename?: "ReservationDate"; startTime: any; endTime: any; } | null; } | null; }; export type ProductFragmentFragment = { __typename?: "Product"; category: Category; description: string; effects: Array; id: string; image: string; name: string; posId?: string | null; staffPick: boolean; strainType?: StrainType | null; subcategory?: Subcategory | null; brand?: { __typename?: "Brand"; id: string; name: string; imageUrl?: string | null; description: string; } | null; potencyCbd?: { __typename?: "Potency"; formatted: string; range: Array; unit: string; } | null; potencyThc?: { __typename?: "Potency"; formatted: string; range: Array; unit: string; } | null; variants: Array<{ __typename?: "ProductVariant"; id: string; option: string; priceMed?: number | null; priceRec?: number | null; specialPriceMed?: number | null; specialPriceRec?: number | null; quantity?: number | null; }>; terpenes?: Array<{ __typename?: "ActiveTerpene"; id?: string | null; name?: string | null; terpeneId?: string | null; unit?: PotencyUnit | null; unitSymbol?: string | null; value?: number | null; terpene?: { __typename?: "Terpene"; aliasList?: Array | null; aromas?: Array | null; description?: string | null; effects?: Array | null; id: string; name?: string | null; potentialHealthBenefits?: Array | null; unitSymbol?: string | null; } | null; } | null> | null; }; export type FetchProductQueryVariables = Exact<{ id: Scalars["ID"]; retailerId: Scalars["ID"]; }>; export type FetchProductQuery = { __typename?: "Query"; product?: { __typename?: "Product"; category: Category; description: string; effects: Array; id: string; image: string; name: string; posId?: string | null; staffPick: boolean; strainType?: StrainType | null; subcategory?: Subcategory | null; brand?: { __typename?: "Brand"; id: string; name: string; imageUrl?: string | null; description: string; } | null; potencyCbd?: { __typename?: "Potency"; formatted: string; range: Array; unit: string; } | null; potencyThc?: { __typename?: "Potency"; formatted: string; range: Array; unit: string; } | null; variants: Array<{ __typename?: "ProductVariant"; id: string; option: string; priceMed?: number | null; priceRec?: number | null; specialPriceMed?: number | null; specialPriceRec?: number | null; quantity?: number | null; }>; terpenes?: Array<{ __typename?: "ActiveTerpene"; id?: string | null; name?: string | null; terpeneId?: string | null; unit?: PotencyUnit | null; unitSymbol?: string | null; value?: number | null; terpene?: { __typename?: "Terpene"; aliasList?: Array | null; aromas?: Array | null; description?: string | null; effects?: Array | null; id: string; name?: string | null; potentialHealthBenefits?: Array | null; unitSymbol?: string | null; } | null; } | null> | null; } | null; }; export type HoursDayFragmentFragment = { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; }; export type HoursFragmentFragment = { __typename?: "Hours"; Sunday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Monday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Tuesday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Wednesday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Thursday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Friday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Saturday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; }; export type RetailerFragmentFragment = { __typename?: "Retailer"; address: string; id: string; menuTypes: Array; name: string; deliverySettings: { __typename?: "DeliverySettings"; afterHoursOrderingForDelivery?: boolean | null; afterHoursOrderingForPickup?: boolean | null; deliveryArea?: any | null; deliveryFee?: string | null; deliveryMinimum?: string | null; disablePurchaseLimits?: boolean | null; limitPerCustomer?: boolean | null; pickupMinimum?: number | null; scheduledOrderingForDelivery?: boolean | null; scheduledOrderingForPickup?: boolean | null; }; fulfillmentOptions: { __typename?: "FulfillmentOptions"; curbsidePickup?: boolean | null; delivery?: boolean | null; driveThruPickup?: boolean | null; pickup?: boolean | null; }; hours: { __typename?: "HoursSettings"; delivery?: { __typename?: "Hours"; Sunday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Monday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Tuesday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Wednesday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Thursday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Friday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Saturday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; } | null; pickup?: { __typename?: "Hours"; Sunday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Monday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Tuesday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Wednesday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Thursday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Friday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Saturday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; } | null; special?: Array<{ __typename?: "SpecialHours"; startDate: string; endDate: string; name: string; hoursPerDay?: Array<{ __typename?: "SpecialHoursDay"; date: string; deliveryHours: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; }; pickupHours: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; }; } | null> | null; } | null> | null; }; paymentOptions: { __typename?: "PaymentOptions"; aeropay?: boolean | null; alt36?: boolean | null; canPay?: boolean | null; cashless?: boolean | null; cashOnly?: boolean | null; check?: boolean | null; creditCard?: boolean | null; creditCardAtDoor?: boolean | null; creditCardByPhone?: boolean | null; debitOnly?: boolean | null; hypur?: boolean | null; linx?: boolean | null; merrco?: boolean | null; payInStore?: boolean | null; paytender?: boolean | null; }; settings: { __typename?: "Settings"; menuWeights?: string | null }; coordinates?: { __typename?: "Coordinates"; latitude?: number | null; longitude?: number | null; } | null; }; export type FetchRetailerQueryVariables = Exact<{ id: Scalars["ID"]; }>; export type FetchRetailerQuery = { __typename?: "Query"; retailer?: { __typename?: "Retailer"; address: string; id: string; menuTypes: Array; name: string; deliverySettings: { __typename?: "DeliverySettings"; afterHoursOrderingForDelivery?: boolean | null; afterHoursOrderingForPickup?: boolean | null; deliveryArea?: any | null; deliveryFee?: string | null; deliveryMinimum?: string | null; disablePurchaseLimits?: boolean | null; limitPerCustomer?: boolean | null; pickupMinimum?: number | null; scheduledOrderingForDelivery?: boolean | null; scheduledOrderingForPickup?: boolean | null; }; fulfillmentOptions: { __typename?: "FulfillmentOptions"; curbsidePickup?: boolean | null; delivery?: boolean | null; driveThruPickup?: boolean | null; pickup?: boolean | null; }; hours: { __typename?: "HoursSettings"; delivery?: { __typename?: "Hours"; Sunday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Monday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Tuesday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Wednesday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Thursday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Friday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Saturday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; } | null; pickup?: { __typename?: "Hours"; Sunday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Monday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Tuesday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Wednesday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Thursday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Friday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Saturday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; } | null; special?: Array<{ __typename?: "SpecialHours"; startDate: string; endDate: string; name: string; hoursPerDay?: Array<{ __typename?: "SpecialHoursDay"; date: string; deliveryHours: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; }; pickupHours: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; }; } | null> | null; } | null> | null; }; paymentOptions: { __typename?: "PaymentOptions"; aeropay?: boolean | null; alt36?: boolean | null; canPay?: boolean | null; cashless?: boolean | null; cashOnly?: boolean | null; check?: boolean | null; creditCard?: boolean | null; creditCardAtDoor?: boolean | null; creditCardByPhone?: boolean | null; debitOnly?: boolean | null; hypur?: boolean | null; linx?: boolean | null; merrco?: boolean | null; payInStore?: boolean | null; paytender?: boolean | null; }; settings: { __typename?: "Settings"; menuWeights?: string | null }; coordinates?: { __typename?: "Coordinates"; latitude?: number | null; longitude?: number | null; } | null; } | null; }; export type FetchRetailersQueryVariables = Exact<{ [key: string]: never }>; export type FetchRetailersQuery = { __typename?: "Query"; retailers: Array<{ __typename?: "Retailer"; address: string; id: string; menuTypes: Array; name: string; deliverySettings: { __typename?: "DeliverySettings"; afterHoursOrderingForDelivery?: boolean | null; afterHoursOrderingForPickup?: boolean | null; deliveryArea?: any | null; deliveryFee?: string | null; deliveryMinimum?: string | null; disablePurchaseLimits?: boolean | null; limitPerCustomer?: boolean | null; pickupMinimum?: number | null; scheduledOrderingForDelivery?: boolean | null; scheduledOrderingForPickup?: boolean | null; }; fulfillmentOptions: { __typename?: "FulfillmentOptions"; curbsidePickup?: boolean | null; delivery?: boolean | null; driveThruPickup?: boolean | null; pickup?: boolean | null; }; hours: { __typename?: "HoursSettings"; delivery?: { __typename?: "Hours"; Sunday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Monday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Tuesday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Wednesday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Thursday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Friday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Saturday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; } | null; pickup?: { __typename?: "Hours"; Sunday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Monday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Tuesday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Wednesday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Thursday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Friday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; Saturday?: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; } | null; } | null; special?: Array<{ __typename?: "SpecialHours"; startDate: string; endDate: string; name: string; hoursPerDay?: Array<{ __typename?: "SpecialHoursDay"; date: string; deliveryHours: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; }; pickupHours: { __typename?: "HoursDay"; active?: boolean | null; start?: string | null; end?: string | null; }; } | null> | null; } | null> | null; }; paymentOptions: { __typename?: "PaymentOptions"; aeropay?: boolean | null; alt36?: boolean | null; canPay?: boolean | null; cashless?: boolean | null; cashOnly?: boolean | null; check?: boolean | null; creditCard?: boolean | null; creditCardAtDoor?: boolean | null; creditCardByPhone?: boolean | null; debitOnly?: boolean | null; hypur?: boolean | null; linx?: boolean | null; merrco?: boolean | null; payInStore?: boolean | null; paytender?: boolean | null; }; settings: { __typename?: "Settings"; menuWeights?: string | null }; coordinates?: { __typename?: "Coordinates"; latitude?: number | null; longitude?: number | null; } | null; }>; }; export type RetailersNearLocationQueryVariables = Exact<{ latitude: Scalars["Float"]; longitude: Scalars["Float"]; }>; export type RetailersNearLocationQuery = { __typename?: "Query"; retailersNearLocation: Array<{ __typename?: "RetailerNearLocation"; locationDetail: { __typename?: "LocationDetail"; distance: number; validForDelivery: boolean; }; retailer: { __typename?: "Retailer"; id: string; name: string }; }>; }; export type SpecialFragmentFragment = { __typename?: "Special"; id: string; name: string; type: SpecialType; menuType?: SpecialMenuType | null; scheduleConfiguration?: { __typename?: "SpecialSchedule"; startStamp?: any | null; endStamp?: any | null; days?: Array | null; setEndDate?: boolean | null; endDate?: any | null; } | null; menuDisplayConfiguration?: { __typename?: "SpecialMenuDisplay"; description?: string | null; image?: string | null; } | null; }; export type GetSpecialsListQueryVariables = Exact<{ retailerId: Scalars["ID"]; }>; export type GetSpecialsListQuery = { __typename?: "Query"; specials?: Array<{ __typename?: "Special"; id: string; name: string; type: SpecialType; menuType?: SpecialMenuType | null; scheduleConfiguration?: { __typename?: "SpecialSchedule"; startStamp?: any | null; endStamp?: any | null; days?: Array | null; setEndDate?: boolean | null; endDate?: any | null; } | null; menuDisplayConfiguration?: { __typename?: "SpecialMenuDisplay"; description?: string | null; image?: string | null; } | null; } | null> | null; }; export const CheckoutFragmentFragmentDoc = gql` fragment checkoutFragment on Checkout { id redirectUrl items { id quantity productId valid isDiscounted basePrice option discounts { total } } priceSummary { discounts fees subtotal mixAndMatch rewards total taxes } } `; export const ProductFragmentFragmentDoc = gql` fragment productFragment on Product { brand { id name imageUrl description } category description effects id image name posId potencyCbd { formatted range unit } potencyThc { formatted range unit } staffPick strainType subcategory variants { id option priceMed priceRec specialPriceMed specialPriceRec quantity } terpenes { id name terpeneId unit unitSymbol value terpene { aliasList aromas description effects id name potentialHealthBenefits unitSymbol } } } `; export const OrderFragmentFragmentDoc = gql` fragment orderFragment on Order { createdAt customer { email } customerId delivery id medical recreational orderNumber pickup status subtotal tax total discounts { total } items { option price productId product { ...productFragment } quantity subtotal } reservationDate { startTime endTime } } ${ProductFragmentFragmentDoc} `; export const HoursDayFragmentFragmentDoc = gql` fragment hoursDayFragment on HoursDay { active start end } `; export const HoursFragmentFragmentDoc = gql` fragment hoursFragment on Hours { Sunday { ...hoursDayFragment } Monday { ...hoursDayFragment } Tuesday { ...hoursDayFragment } Wednesday { ...hoursDayFragment } Thursday { ...hoursDayFragment } Friday { ...hoursDayFragment } Saturday { ...hoursDayFragment } } ${HoursDayFragmentFragmentDoc} `; export const RetailerFragmentFragmentDoc = gql` fragment retailerFragment on Retailer { address deliverySettings { afterHoursOrderingForDelivery afterHoursOrderingForPickup deliveryArea deliveryFee deliveryMinimum disablePurchaseLimits limitPerCustomer pickupMinimum scheduledOrderingForDelivery scheduledOrderingForPickup } fulfillmentOptions { curbsidePickup delivery driveThruPickup pickup } hours { delivery { ...hoursFragment } pickup { ...hoursFragment } special { startDate endDate hoursPerDay { date deliveryHours { ...hoursDayFragment } pickupHours { ...hoursDayFragment } } name } } id menuTypes name paymentOptions { aeropay alt36 canPay cashless cashOnly check creditCard creditCardAtDoor creditCardByPhone debitOnly hypur linx merrco payInStore paytender } settings { menuWeights } coordinates { latitude longitude } } ${HoursFragmentFragmentDoc} ${HoursDayFragmentFragmentDoc} `; export const SpecialFragmentFragmentDoc = gql` fragment specialFragment on Special { id name type menuType scheduleConfiguration { startStamp endStamp days setEndDate endDate } menuDisplayConfiguration { description image } } `; export const CreateCheckoutDocument = gql` mutation CreateCheckout( $orderType: OrderType! $pricingType: PricingType! $retailerId: ID! $address: CheckoutAddressInput ) { createCheckout( orderType: $orderType pricingType: $pricingType retailerId: $retailerId address: $address ) { ...checkoutFragment } } ${CheckoutFragmentFragmentDoc} `; export const RemoveItemFromCheckoutDocument = gql` mutation RemoveItemFromCheckout( $retailerId: ID! $checkoutId: ID! $itemId: ID! ) { removeItem( retailerId: $retailerId checkoutId: $checkoutId itemId: $itemId ) { ...checkoutFragment } } ${CheckoutFragmentFragmentDoc} `; export const UpdateQuantityFromCheckoutDocument = gql` mutation UpdateQuantityFromCheckout( $retailerId: ID! $checkoutId: ID! $itemId: ID! $quantity: Int! ) { updateQuantity( retailerId: $retailerId checkoutId: $checkoutId itemId: $itemId quantity: $quantity ) { ...checkoutFragment } } ${CheckoutFragmentFragmentDoc} `; export const AddItemToCheckoutDocument = gql` mutation AddItemToCheckout( $retailerId: ID! $checkoutId: ID! $productId: ID! $quantity: Int! $option: String! ) { addItem( checkoutId: $checkoutId productId: $productId quantity: $quantity retailerId: $retailerId option: $option ) { ...checkoutFragment } } ${CheckoutFragmentFragmentDoc} `; export const CheckoutDocument = gql` query Checkout($retailerId: ID!, $id: ID!) { checkout(retailerId: $retailerId, id: $id) { ...checkoutFragment } } ${CheckoutFragmentFragmentDoc} `; export const MenuQueryDocument = gql` query MenuQuery( $pagination: Pagination = { limit: 20, offset: 0 } $retailerId: ID! $menuType: MenuType ) { menu( ignoreQuantityThresholds: false pagination: $pagination retailerId: $retailerId menuType: $menuType sort: { key: POPULAR, direction: DESC } ) { productsCount products { ...productFragment } brands { id name description imageUrl } } } ${ProductFragmentFragmentDoc} `; export const GetRelatedProductsDocument = gql` query GetRelatedProducts( $pagination: Pagination = { limit: 20, offset: 0 } $retailerId: ID! $menuType: MenuType! $category: Category! ) { menu( ignoreQuantityThresholds: false pagination: $pagination retailerId: $retailerId menuType: $menuType filter: { category: $category } sort: { direction: DESC, key: POPULAR } ) { products { id name category posId } } } `; export const FetchSpecialProductsDocument = gql` query fetchSpecialProducts( $pagination: Pagination = { limit: 20, offset: 0 } $retailerId: ID! $menuSectionFilter: MenuSectionFilter ) { menu( ignoreQuantityThresholds: false pagination: $pagination retailerId: $retailerId filter: { menuSection: $menuSectionFilter } ) { productsCount products { id } } } `; export const OrderByNumberDocument = gql` query orderByNumber($retailerId: ID!, $orderNumber: String!) { orders(retailerId: $retailerId, filter: { orderNumber: $orderNumber }) { ...orderFragment } } ${OrderFragmentFragmentDoc} `; export const OrderByIdDocument = gql` query orderById($retailerId: ID!, $id: ID!) { order(retailerId: $retailerId, id: $id) { ...orderFragment } } ${OrderFragmentFragmentDoc} `; export const FetchProductDocument = gql` query fetchProduct($id: ID!, $retailerId: ID!) { product(id: $id, retailerId: $retailerId) { ...productFragment } } ${ProductFragmentFragmentDoc} `; export const FetchRetailerDocument = gql` query fetchRetailer($id: ID!) { retailer(id: $id) { ...retailerFragment } } ${RetailerFragmentFragmentDoc} `; export const FetchRetailersDocument = gql` query fetchRetailers { retailers { ...retailerFragment } } ${RetailerFragmentFragmentDoc} `; export const RetailersNearLocationDocument = gql` query retailersNearLocation($latitude: Float!, $longitude: Float!) { retailersNearLocation( location: { coordinates: { latitude: $latitude, longitude: $longitude } maxDistance: 100 } ) { locationDetail { distance validForDelivery } retailer { id name } } } `; export const GetSpecialsListDocument = gql` query GetSpecialsList($retailerId: ID!) { specials(retailerId: $retailerId) { ...specialFragment } } ${SpecialFragmentFragmentDoc} `; export type SdkFunctionWrapper = ( action: (requestHeaders?: Record) => Promise, operationName: string, operationType?: string ) => Promise; const defaultWrapper: SdkFunctionWrapper = ( action, _operationName, _operationType ) => action(); const CreateCheckoutDocumentString = print(CreateCheckoutDocument); const RemoveItemFromCheckoutDocumentString = print( RemoveItemFromCheckoutDocument ); const UpdateQuantityFromCheckoutDocumentString = print( UpdateQuantityFromCheckoutDocument ); const AddItemToCheckoutDocumentString = print(AddItemToCheckoutDocument); const CheckoutDocumentString = print(CheckoutDocument); const MenuQueryDocumentString = print(MenuQueryDocument); const GetRelatedProductsDocumentString = print(GetRelatedProductsDocument); const FetchSpecialProductsDocumentString = print(FetchSpecialProductsDocument); const OrderByNumberDocumentString = print(OrderByNumberDocument); const OrderByIdDocumentString = print(OrderByIdDocument); const FetchProductDocumentString = print(FetchProductDocument); const FetchRetailerDocumentString = print(FetchRetailerDocument); const FetchRetailersDocumentString = print(FetchRetailersDocument); const RetailersNearLocationDocumentString = print( RetailersNearLocationDocument ); const GetSpecialsListDocumentString = print(GetSpecialsListDocument); export function getSdk( client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper ) { return { CreateCheckout( variables: CreateCheckoutMutationVariables, requestHeaders?: Dom.RequestInit["headers"] ): Promise<{ data: CreateCheckoutMutation; extensions?: any; headers: Dom.Headers; status: number; }> { return withWrapper( (wrappedRequestHeaders) => client.rawRequest( CreateCheckoutDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders } ), "CreateCheckout", "mutation" ); }, RemoveItemFromCheckout( variables: RemoveItemFromCheckoutMutationVariables, requestHeaders?: Dom.RequestInit["headers"] ): Promise<{ data: RemoveItemFromCheckoutMutation; extensions?: any; headers: Dom.Headers; status: number; }> { return withWrapper( (wrappedRequestHeaders) => client.rawRequest( RemoveItemFromCheckoutDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders } ), "RemoveItemFromCheckout", "mutation" ); }, UpdateQuantityFromCheckout( variables: UpdateQuantityFromCheckoutMutationVariables, requestHeaders?: Dom.RequestInit["headers"] ): Promise<{ data: UpdateQuantityFromCheckoutMutation; extensions?: any; headers: Dom.Headers; status: number; }> { return withWrapper( (wrappedRequestHeaders) => client.rawRequest( UpdateQuantityFromCheckoutDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders } ), "UpdateQuantityFromCheckout", "mutation" ); }, AddItemToCheckout( variables: AddItemToCheckoutMutationVariables, requestHeaders?: Dom.RequestInit["headers"] ): Promise<{ data: AddItemToCheckoutMutation; extensions?: any; headers: Dom.Headers; status: number; }> { return withWrapper( (wrappedRequestHeaders) => client.rawRequest( AddItemToCheckoutDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders } ), "AddItemToCheckout", "mutation" ); }, Checkout( variables: CheckoutQueryVariables, requestHeaders?: Dom.RequestInit["headers"] ): Promise<{ data: CheckoutQuery; extensions?: any; headers: Dom.Headers; status: number; }> { return withWrapper( (wrappedRequestHeaders) => client.rawRequest(CheckoutDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders, }), "Checkout", "query" ); }, MenuQuery( variables: MenuQueryQueryVariables, requestHeaders?: Dom.RequestInit["headers"] ): Promise<{ data: MenuQueryQuery; extensions?: any; headers: Dom.Headers; status: number; }> { return withWrapper( (wrappedRequestHeaders) => client.rawRequest( MenuQueryDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders } ), "MenuQuery", "query" ); }, GetRelatedProducts( variables: GetRelatedProductsQueryVariables, requestHeaders?: Dom.RequestInit["headers"] ): Promise<{ data: GetRelatedProductsQuery; extensions?: any; headers: Dom.Headers; status: number; }> { return withWrapper( (wrappedRequestHeaders) => client.rawRequest( GetRelatedProductsDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders } ), "GetRelatedProducts", "query" ); }, fetchSpecialProducts( variables: FetchSpecialProductsQueryVariables, requestHeaders?: Dom.RequestInit["headers"] ): Promise<{ data: FetchSpecialProductsQuery; extensions?: any; headers: Dom.Headers; status: number; }> { return withWrapper( (wrappedRequestHeaders) => client.rawRequest( FetchSpecialProductsDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders } ), "fetchSpecialProducts", "query" ); }, orderByNumber( variables: OrderByNumberQueryVariables, requestHeaders?: Dom.RequestInit["headers"] ): Promise<{ data: OrderByNumberQuery; extensions?: any; headers: Dom.Headers; status: number; }> { return withWrapper( (wrappedRequestHeaders) => client.rawRequest( OrderByNumberDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders } ), "orderByNumber", "query" ); }, orderById( variables: OrderByIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"] ): Promise<{ data: OrderByIdQuery; extensions?: any; headers: Dom.Headers; status: number; }> { return withWrapper( (wrappedRequestHeaders) => client.rawRequest( OrderByIdDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders } ), "orderById", "query" ); }, fetchProduct( variables: FetchProductQueryVariables, requestHeaders?: Dom.RequestInit["headers"] ): Promise<{ data: FetchProductQuery; extensions?: any; headers: Dom.Headers; status: number; }> { return withWrapper( (wrappedRequestHeaders) => client.rawRequest( FetchProductDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders } ), "fetchProduct", "query" ); }, fetchRetailer( variables: FetchRetailerQueryVariables, requestHeaders?: Dom.RequestInit["headers"] ): Promise<{ data: FetchRetailerQuery; extensions?: any; headers: Dom.Headers; status: number; }> { return withWrapper( (wrappedRequestHeaders) => client.rawRequest( FetchRetailerDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders } ), "fetchRetailer", "query" ); }, fetchRetailers( variables?: FetchRetailersQueryVariables, requestHeaders?: Dom.RequestInit["headers"] ): Promise<{ data: FetchRetailersQuery; extensions?: any; headers: Dom.Headers; status: number; }> { return withWrapper( (wrappedRequestHeaders) => client.rawRequest( FetchRetailersDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders } ), "fetchRetailers", "query" ); }, retailersNearLocation( variables: RetailersNearLocationQueryVariables, requestHeaders?: Dom.RequestInit["headers"] ): Promise<{ data: RetailersNearLocationQuery; extensions?: any; headers: Dom.Headers; status: number; }> { return withWrapper( (wrappedRequestHeaders) => client.rawRequest( RetailersNearLocationDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders } ), "retailersNearLocation", "query" ); }, GetSpecialsList( variables: GetSpecialsListQueryVariables, requestHeaders?: Dom.RequestInit["headers"] ): Promise<{ data: GetSpecialsListQuery; extensions?: any; headers: Dom.Headers; status: number; }> { return withWrapper( (wrappedRequestHeaders) => client.rawRequest( GetSpecialsListDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders } ), "GetSpecialsList", "query" ); }, }; } export type Sdk = ReturnType;