becomap 1.2.0 → 1.2.2
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/becomap.js +1 -1
- package/lib/index.d.ts +87 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -671,6 +671,88 @@ declare class BCEventEmitter<T extends Record<string, any>> {
|
|
|
671
671
|
*/
|
|
672
672
|
emit<K extends keyof T>(event: K, args: T[K]): void;
|
|
673
673
|
}
|
|
674
|
+
declare enum BCHappeningType {
|
|
675
|
+
OFFER = "OFFER",
|
|
676
|
+
NEWS = "NEWS",
|
|
677
|
+
EVENT = "EVENT"
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* Represents an event, offer, or news happening at a site or location.
|
|
681
|
+
*/
|
|
682
|
+
export interface BCHappenings {
|
|
683
|
+
/**
|
|
684
|
+
* Unique identifier for the happening.
|
|
685
|
+
*
|
|
686
|
+
* @returns The event ID as a string.
|
|
687
|
+
*/
|
|
688
|
+
id: string;
|
|
689
|
+
/**
|
|
690
|
+
* The name or title of the happening.
|
|
691
|
+
*
|
|
692
|
+
* @returns The name as a string.
|
|
693
|
+
*/
|
|
694
|
+
name: string;
|
|
695
|
+
/**
|
|
696
|
+
* A description providing more details about the happening.
|
|
697
|
+
*
|
|
698
|
+
* @returns The description as a string.
|
|
699
|
+
*/
|
|
700
|
+
description: string;
|
|
701
|
+
/**
|
|
702
|
+
* The start date and time of the happening in ISO 8601 format.
|
|
703
|
+
*
|
|
704
|
+
* @returns The start date as a string.
|
|
705
|
+
*/
|
|
706
|
+
startDate: string;
|
|
707
|
+
/**
|
|
708
|
+
* The end date and time of the happening in ISO 8601 format.
|
|
709
|
+
*
|
|
710
|
+
* @returns The end date as a string.
|
|
711
|
+
*/
|
|
712
|
+
endDate: string;
|
|
713
|
+
/**
|
|
714
|
+
* The date and time when the happening should be displayed or highlighted in ISO 8601 format.
|
|
715
|
+
*
|
|
716
|
+
* @returns The show date as a string.
|
|
717
|
+
*/
|
|
718
|
+
showDate: string;
|
|
719
|
+
/**
|
|
720
|
+
* An external identifier associated with the happening, if available.
|
|
721
|
+
*
|
|
722
|
+
* @returns The external ID as a string.
|
|
723
|
+
*/
|
|
724
|
+
externalId: string;
|
|
725
|
+
/**
|
|
726
|
+
* The unique identifier of the site associated with the happening.
|
|
727
|
+
*
|
|
728
|
+
* @returns The site ID as a string.
|
|
729
|
+
*/
|
|
730
|
+
siteId: string;
|
|
731
|
+
/**
|
|
732
|
+
* The unique identifier of the location associated with the happening.
|
|
733
|
+
*
|
|
734
|
+
* @returns The location ID as a string.
|
|
735
|
+
*/
|
|
736
|
+
locationId: string;
|
|
737
|
+
/**
|
|
738
|
+
* A list of image URLs associated with the happening.
|
|
739
|
+
*
|
|
740
|
+
* @returns An array of image URLs as strings.
|
|
741
|
+
*/
|
|
742
|
+
images: string[];
|
|
743
|
+
/**
|
|
744
|
+
* The type of the happening, such as OFFER, NEWS, or EVENT.
|
|
745
|
+
*
|
|
746
|
+
* @returns The type as a `BCHappeningType` enum value.
|
|
747
|
+
*/
|
|
748
|
+
type: BCHappeningType;
|
|
749
|
+
/**
|
|
750
|
+
* A priority value used to determine the display order of happenings.
|
|
751
|
+
*
|
|
752
|
+
* @returns The priority as a number.
|
|
753
|
+
*/
|
|
754
|
+
priority: number;
|
|
755
|
+
}
|
|
674
756
|
/**
|
|
675
757
|
* Options for configuring the initial view of the map.
|
|
676
758
|
*
|
|
@@ -820,6 +902,11 @@ export declare class BCMapView {
|
|
|
820
902
|
* selectLocation(location);
|
|
821
903
|
*/
|
|
822
904
|
selectLocation(location: BCLocation): void;
|
|
905
|
+
/**
|
|
906
|
+
* Retrieves all available happenings.
|
|
907
|
+
* @returns An array of `BCHappenings` objects.
|
|
908
|
+
*/
|
|
909
|
+
getHappenings(type: BCHappeningType): BCHappenings[];
|
|
823
910
|
/**
|
|
824
911
|
* Retrieves all available amenities.
|
|
825
912
|
* @returns An array of `BCSiteAmenity` objects representing all map amenities.
|