bmlt-query-client 1.0.6 → 1.0.7
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/dist/app.d.ts +27 -0
- package/dist/app.js +213 -183
- package/dist/app.js.map +1 -1
- package/package.json +4 -4
package/dist/app.d.ts
CHANGED
|
@@ -22,6 +22,16 @@ export declare class BmltClient {
|
|
|
22
22
|
* Search for meetings
|
|
23
23
|
*/
|
|
24
24
|
searchMeetings(params?: SearchResultsParams): Promise<Meeting[]>;
|
|
25
|
+
/**
|
|
26
|
+
* Search for meetings and return both meetings and the formats they reference in a
|
|
27
|
+
* single request. Uses get_used_formats=true so the server wraps the response as
|
|
28
|
+
* { meetings: Meeting[], formats: Format[] } instead of a bare Meeting[].
|
|
29
|
+
*
|
|
30
|
+
* This replaces the common pattern of Promise.all([getFormats(), searchMeetings()])
|
|
31
|
+
* with a single round-trip, which matters for large servers where getFormats() can
|
|
32
|
+
* return hundreds of unused format records.
|
|
33
|
+
*/
|
|
34
|
+
searchMeetingsWithFormats(params?: Omit<SearchResultsParams, 'get_used_formats' | 'get_formats_only'>): Promise<MeetingsWithFormats>;
|
|
25
35
|
/**
|
|
26
36
|
* Search for meetings by geographic location using geocoding
|
|
27
37
|
*/
|
|
@@ -722,12 +732,29 @@ export declare class MeetingQueryBuilder {
|
|
|
722
732
|
* Execute the search and return results
|
|
723
733
|
*/
|
|
724
734
|
execute(): Promise<Meeting[]>;
|
|
735
|
+
/**
|
|
736
|
+
* Execute the search and return both meetings and the formats they reference
|
|
737
|
+
* in a single request. Equivalent to execute() but avoids a separate getFormats() call.
|
|
738
|
+
*/
|
|
739
|
+
executeWithFormats(): Promise<MeetingsWithFormats>;
|
|
725
740
|
/**
|
|
726
741
|
* Execute the search by geocoding an address first
|
|
727
742
|
*/
|
|
728
743
|
executeNearAddress(address: string, radiusMiles?: number, radiusKm?: number, sortByDistance?: boolean): Promise<Meeting[]>;
|
|
729
744
|
}
|
|
730
745
|
|
|
746
|
+
/**
|
|
747
|
+
* Combined response when get_used_formats=true is passed to GetSearchResults.
|
|
748
|
+
* The BMLT API wraps the response in an object with separate meetings and formats arrays
|
|
749
|
+
* instead of returning a bare meetings array.
|
|
750
|
+
*/
|
|
751
|
+
export declare interface MeetingsWithFormats {
|
|
752
|
+
/** Meetings matching the search criteria */
|
|
753
|
+
meetings: Meeting[];
|
|
754
|
+
/** Only the formats actually referenced by the returned meetings */
|
|
755
|
+
formats: Format[];
|
|
756
|
+
}
|
|
757
|
+
|
|
731
758
|
/**
|
|
732
759
|
* Convert miles to kilometers
|
|
733
760
|
*/
|