UNPKG

1.77 kBTypeScriptView Raw
1import { _SPCollection, _SPInstance } from "../spqueryable.js";
2import { ISerializableNavigationNode } from "../navigation/types.js";
3import { ISite } from "../sites/types.js";
4export declare class _HubSites extends _SPCollection<IHubSiteInfo[]> {
5 /**
6 * Gets a Hub Site from the collection by id
7 *
8 * @param id The Id of the Hub Site
9 */
10 getById(id: string): IHubSite;
11}
12export interface IHubSites extends _HubSites {
13}
14export declare const HubSites: import("../spqueryable.js").ISPInvokableFactory<IHubSites>;
15export declare class _HubSite extends _SPInstance<IHubSiteInfo> {
16 /**
17 * Gets the ISite instance associated with this hubsite
18 */
19 getSite(): Promise<ISite>;
20}
21export interface IHubSite extends _HubSite {
22}
23export declare const HubSite: import("../spqueryable.js").ISPInvokableFactory<IHubSite>;
24export interface IHubSiteInfo {
25 ID: string;
26 Title: string;
27 SiteId: string;
28 TenantInstanceId: string;
29 SiteUrl: string;
30 LogoUrl: string;
31 Description: string;
32 Targets: string;
33 SiteDesignId: string;
34 RequiresJoinApproval: boolean;
35 RelatedHubSiteIds: string[];
36 ParentHubSiteId: string;
37 HideNameInNavigation: boolean;
38 EnablePermissionsSync: boolean;
39}
40export interface IHubSiteWebData {
41 headerEmphasis: string | null;
42 themeKey: string | null;
43 name: string | null;
44 url: string;
45 logoUrl: string | null;
46 usesMetadataNavigation: boolean;
47 megaMenuEnabled: boolean;
48 navigation: ISerializableNavigationNode[];
49 isNavAudienceTargeted: boolean;
50 siteDesignId: string;
51 requiresJoinApproval: boolean;
52 hideNameInNavigation: boolean;
53 parentHubSiteId: string;
54 relatedHubSiteIds: string[] | null;
55}
56//# sourceMappingURL=types.d.ts.map
\No newline at end of file