@compassdigital/sdk.typescript 4.730.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.
- package/lib/index.d.ts +10 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +21 -1
- package/lib/interface/consumer.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +24 -0
- package/src/interface/consumer.ts +41 -2
|
@@ -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,12 +1629,12 @@ 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
|
|
1633
1637
|
mealplanBarcode?: GetUserMealplanBarcodeResponse;
|
|
1634
|
-
// is site audible and integration enabled
|
|
1635
|
-
isSiteAudibleAtriumIntegrated?: boolean;
|
|
1636
1638
|
}
|
|
1637
1639
|
|
|
1638
1640
|
export interface FrictionlessCheckinResponse {
|
|
@@ -1761,6 +1763,8 @@ export interface GetConsumerLocationGroupResponse {
|
|
|
1761
1763
|
timezone?: string;
|
|
1762
1764
|
// site operational status
|
|
1763
1765
|
status?: Record<string, any>;
|
|
1766
|
+
// client slug the site is assigned to
|
|
1767
|
+
client?: string;
|
|
1764
1768
|
locations?: ConsumerLocation[];
|
|
1765
1769
|
address?: ConsumerAddress;
|
|
1766
1770
|
}
|
|
@@ -1774,6 +1778,13 @@ export interface GetConsumerLocationMultiGroupResponse {
|
|
|
1774
1778
|
groups: Record<string, any>[];
|
|
1775
1779
|
}
|
|
1776
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
|
+
|
|
1777
1788
|
export interface ConsumerGetActiveMenusResponse {
|
|
1778
1789
|
// menus
|
|
1779
1790
|
menus: ConsumerMenuHours[];
|
|
@@ -4699,6 +4710,12 @@ export interface GetConsumerHomePageQuery {
|
|
|
4699
4710
|
appName?: string;
|
|
4700
4711
|
// reorder eligible
|
|
4701
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;
|
|
4702
4719
|
}
|
|
4703
4720
|
|
|
4704
4721
|
export type GetConsumerHomePageResponse = HomePageResponse;
|
|
@@ -4849,6 +4866,28 @@ export interface GetConsumerLocationMultigroupQuery {
|
|
|
4849
4866
|
|
|
4850
4867
|
export type GetConsumerLocationMultigroupResponse = GetConsumerLocationMultiGroupResponse;
|
|
4851
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
|
+
|
|
4852
4891
|
// GET /consumer/active-menus/{stationId} - Get current menu
|
|
4853
4892
|
|
|
4854
4893
|
export interface GetConsumerActiveMenusPath {
|