Data Models
Shapes for responses, inputs, and errors.
These types are exported from heb-sdk-unofficial for strong typing.
Use them to model inputs and normalize responses.
Review sessions
HEBCookies:sat,reese84,incap_ses, optionalCURR_SESSION_STORE, optionalshoppingContext, plus extra keysHEBHeaders: base GraphQL headers plus optionalcookieandauthorizationHEBAuthTokens:accessTokenplus optionalrefreshToken,idToken,tokenType,scope,expiresIn,expiresAtHEBAuthMode:cookieorbearerHEBEndpoints:graphqlandhomeHEBSession: cookies, headers, auth mode, tokens, expiry, optionalendpoints, optionalrefresh, optionaldebugShoppingContext:CURBSIDE_PICKUP,CURBSIDE_DELIVERY, orEXPLORE_MY_STOREFulfillmentType:DELIVERYorPICKUPHEBCredentials:emailandpasswordLoginOptions:headless,timeout,storeId,userDataDir
Review search results
SearchOptions:limit,storeId,shoppingContext,searchMode,includeImagesSearchResult:products,totalCount,page,hasNextPage, optionalnextCursor, optionalsearchContextToken, optionalfacetsTypeaheadSuggestion:termplustype(recent,trending,keyword)TypeaheadResult:recentSearches,trendingSearches,allTerms
Review products
Product: ids, name, brand, descriptions, images, pricing, nutrition, fulfillment, availability, size, categoryProductPrice:amount,formatted, optionalwasPrice, optionalunitPriceNutritionInfo: serving data plus calories, fat, carbs, protein, sodium, and sugar fieldsFulfillmentInfo:curbside,delivery,inStore, optionalaisleLocation
Review cart
DisplayPrice:amountandformattedCartItem:productId,skuId,quantity, optional display and stock fieldsPaymentGroup: payment method, amount, and optional aliasCartFee: fee metadata and amountCart: items, totals, savings, payment groups, andisTruncatedflagCartResponse:success, optionalcart, optionalerrors
Review orders
GetOrdersOptions:pageandsizeRawHistoryOrder: order id, status fields, timeslot details, totals, and store infoOrderHistoryResponse:pageProps.orderswith pagination metadataOrderDetailsItem: item id, name, quantity, price, and optional imageOrderDetailsPageOrder: order status, items, price details, fulfillment type, and timeslotOrderDetailsPageResponse:pageProps.ordercontainerOrderDetailsGraphqlResponse: raw GraphQL payload for order detailsOrderDetailsResponse: normalized page plus rawgraphqlresponse
Review shopping lists
GetShoppingListOptions:page,size,sort,sortDirectionShoppingList: list metadata with store info and timestampsShoppingListsPageInfo: paging metadata withhasMoreandnextPageShoppingListsResult:listsandpageInfoShoppingListItem: item fields plus price, stock, and image dataShoppingListDetails: list metadata plus items and optional page info
Review fulfillment
FulfillmentSlot: id, time range, local date, fee, and availabilityReserveSlotResult:successplus reservation and expiry details
Review homepage
HomepageOptions: limits and section filtersHomepageData:banners,promotions,featuredProducts,sectionsHomepageSection: section id, type, title, and itemsHomepageBanner: banner metadata with image and linkHomepagePromotion: promo metadata with image and linkHomepageFeaturedProduct: product id, name, optional brand and priceHomepageItem: union of banner, promotion, product, or generic item
Review weekly ad
WeeklyAdOptions:storeCode,category,limit,cursorWeeklyAdProduct: ids, name, price text, sale story, image, optional UPC, optionalskuId, optionalstoreLocationWeeklyAdCategory: category id, name, and countWeeklyAdResult: products, total count, store code, categories, and cursor
Review stores
Store: store number, name, address, and optional distanceStoreSearchResult:storesarray
Review account
AccountDetails: name, email, phone, loyalty info, and addressesAccountAddress: address fields plus nickname and default flag
Review graphql helpers
GraphQLPayload:operationName,variables, and optional persisted query hashGraphQLResponse<T>: optionaldataanderrorsHEBAPIError:messageplus optional error metadata
Review errors
HEBError: base class with optionalcodeHEBAuthError,HEBSessionError,HEBCartError,HEBProductError,HEBSearchError: specialized subclasses
Review constants
ENDPOINTS: default GraphQL and home URLsGRAPHQL_HASHESandMOBILE_GRAPHQL_HASHES: persisted query hashesSHOPPING_CONTEXT_TO_CATEGORIES: shopping context to categories mapping