@compassdigital/sdk.typescript 4.774.0 → 4.776.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 +4 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -4
- package/lib/interface/consumer.d.ts +2 -11
- package/lib/interface/consumer.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +7 -7
- package/src/interface/announcement.ts +1 -1
- package/src/interface/consumer.ts +4 -23
|
@@ -1218,6 +1218,7 @@ export interface ConsumerAnnouncementInfo {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
|
|
1220
1220
|
export interface ConsumerAnnouncement {
|
|
1221
|
+
id: string;
|
|
1221
1222
|
app: string;
|
|
1222
1223
|
info: ConsumerAnnouncementInfo;
|
|
1223
1224
|
position: number;
|
|
@@ -1779,8 +1780,6 @@ export interface GetConsumerLocationMultiGroupResponse {
|
|
|
1779
1780
|
}
|
|
1780
1781
|
|
|
1781
1782
|
export interface GetConsumerClientGroupsResponse {
|
|
1782
|
-
// Multigroup id the sites were searched within
|
|
1783
|
-
id: string;
|
|
1784
1783
|
// Nearest sites assigned to the client, each hydrated with its business units and stations, ordered nearest-first.
|
|
1785
1784
|
groups: ConsumerGroup[];
|
|
1786
1785
|
}
|
|
@@ -4656,12 +4655,6 @@ export interface GetConsumerHomePageQuery {
|
|
|
4656
4655
|
appName?: string;
|
|
4657
4656
|
// reorder eligible
|
|
4658
4657
|
reorderEligible: boolean;
|
|
4659
|
-
// Client slug whose nearest sites are added to the response (needs latitude and longitude to sort)
|
|
4660
|
-
client?: string;
|
|
4661
|
-
// Latitude used to sort the client nearest sites
|
|
4662
|
-
latitude?: number;
|
|
4663
|
-
// Longitude used to sort the client nearest sites
|
|
4664
|
-
longitude?: number;
|
|
4665
4658
|
}
|
|
4666
4659
|
|
|
4667
4660
|
export type GetConsumerHomePageResponse = HomePageResponse;
|
|
@@ -4710,12 +4703,6 @@ export interface GetConsumerHomePageV3Query {
|
|
|
4710
4703
|
appName?: string;
|
|
4711
4704
|
// reorder eligible
|
|
4712
4705
|
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;
|
|
4719
4706
|
}
|
|
4720
4707
|
|
|
4721
4708
|
export type GetConsumerHomePageV3Response = HomePageResponse;
|
|
@@ -4842,20 +4829,14 @@ export interface GetConsumerLocationMultigroupQuery {
|
|
|
4842
4829
|
|
|
4843
4830
|
export type GetConsumerLocationMultigroupResponse = GetConsumerLocationMultiGroupResponse;
|
|
4844
4831
|
|
|
4845
|
-
// GET /consumer/client-groups/{
|
|
4832
|
+
// GET /consumer/client-groups/{siteId} - Get a client's nearest sites with their business units and stations or a single site if it has no client
|
|
4846
4833
|
|
|
4847
4834
|
export interface GetConsumerClientGroupsPath {
|
|
4848
|
-
//
|
|
4849
|
-
|
|
4835
|
+
// Site ID as Encoded CDL ID
|
|
4836
|
+
siteId: string;
|
|
4850
4837
|
}
|
|
4851
4838
|
|
|
4852
4839
|
export interface GetConsumerClientGroupsQuery {
|
|
4853
|
-
// Multigroup (realm) id to search within, e.g. the app's Thrive/Boost multigroup
|
|
4854
|
-
multigroup: string;
|
|
4855
|
-
// Latitude used to sort sites by proximity
|
|
4856
|
-
latitude?: number;
|
|
4857
|
-
// Longitude used to sort sites by proximity
|
|
4858
|
-
longitude?: number;
|
|
4859
4840
|
// Maximum number of nearest sites to return (default 10)
|
|
4860
4841
|
limit?: number;
|
|
4861
4842
|
// Optional maximum distance in km; sites farther than this are excluded. Requires numeric latitude and longitude — supplying it without them returns 400.
|