@compassdigital/sdk.typescript 4.731.0 → 4.732.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1580,6 +1580,8 @@ export interface ConsumerGroupMobile {
1580
1580
 
1581
1581
  export interface ConsumerGroup {
1582
1582
  status?: 'active' | 'inactive';
1583
+ // client slug the site is assigned to
1584
+ client?: string;
1583
1585
  id?: string;
1584
1586
  name?: string;
1585
1587
  label?: {
@@ -1627,6 +1629,8 @@ export interface HomePageResponse {
1627
1629
  orders?: HomePageOrder[];
1628
1630
  // location object for the site
1629
1631
  location?: ConsumerGroup;
1632
+ // nearest sites for the client, hydrated with business units and stations
1633
+ clientGroups?: ConsumerGroup[];
1630
1634
  // free coffee object
1631
1635
  freeCoffee?: FreeCoffeeDTO;
1632
1636
  // mealplan barcode object
@@ -1759,6 +1763,8 @@ export interface GetConsumerLocationGroupResponse {
1759
1763
  timezone?: string;
1760
1764
  // site operational status
1761
1765
  status?: Record<string, any>;
1766
+ // client slug the site is assigned to
1767
+ client?: string;
1762
1768
  locations?: ConsumerLocation[];
1763
1769
  address?: ConsumerAddress;
1764
1770
  }
@@ -1772,6 +1778,13 @@ export interface GetConsumerLocationMultiGroupResponse {
1772
1778
  groups: Record<string, any>[];
1773
1779
  }
1774
1780
 
1781
+ export interface GetConsumerClientGroupsResponse {
1782
+ // Multigroup id the sites were searched within
1783
+ id: string;
1784
+ // Nearest sites assigned to the client, each hydrated with its business units and stations, ordered nearest-first.
1785
+ groups: ConsumerGroup[];
1786
+ }
1787
+
1775
1788
  export interface ConsumerGetActiveMenusResponse {
1776
1789
  // menus
1777
1790
  menus: ConsumerMenuHours[];
@@ -4697,6 +4710,12 @@ export interface GetConsumerHomePageQuery {
4697
4710
  appName?: string;
4698
4711
  // reorder eligible
4699
4712
  reorderEligible: boolean;
4713
+ // Client slug whose nearest sites are added to the response (needs latitude and longitude to sort)
4714
+ client?: string;
4715
+ // Latitude used to sort the client nearest sites
4716
+ latitude?: number;
4717
+ // Longitude used to sort the client nearest sites
4718
+ longitude?: number;
4700
4719
  }
4701
4720
 
4702
4721
  export type GetConsumerHomePageResponse = HomePageResponse;
@@ -4847,6 +4866,28 @@ export interface GetConsumerLocationMultigroupQuery {
4847
4866
 
4848
4867
  export type GetConsumerLocationMultigroupResponse = GetConsumerLocationMultiGroupResponse;
4849
4868
 
4869
+ // GET /consumer/client-groups/{client} - Get a client's nearest sites with their business units and stations
4870
+
4871
+ export interface GetConsumerClientGroupsPath {
4872
+ // Client slug whose sites are returned
4873
+ client: string;
4874
+ }
4875
+
4876
+ export interface GetConsumerClientGroupsQuery {
4877
+ // Multigroup (realm) id to search within, e.g. the app's Thrive/Boost multigroup
4878
+ multigroup: string;
4879
+ // Latitude used to sort sites by proximity
4880
+ latitude?: number;
4881
+ // Longitude used to sort sites by proximity
4882
+ longitude?: number;
4883
+ // Maximum number of nearest sites to return (default 10)
4884
+ limit?: number;
4885
+ // Optional maximum distance in km; sites farther than this are excluded. Requires numeric latitude and longitude — supplying it without them returns 400.
4886
+ max_distance_km?: number;
4887
+ }
4888
+
4889
+ export type GetConsumerClientGroupsResponse$0 = GetConsumerClientGroupsResponse;
4890
+
4850
4891
  // GET /consumer/active-menus/{stationId} - Get current menu
4851
4892
 
4852
4893
  export interface GetConsumerActiveMenusPath {