@infrasoftbe/vnv-sdk
    Preparing search index...

    Interface SPWebLayer

    interface SPWebLayer {
        layers: {
            Files: LayerFactory<SPSiteFileLayer>;
            Lists: LayerFactory<SPListLayer>;
            Navigations: LayerFactory<SPNavigationLayer>;
            Pages: LayerFactory<SPPageLayer>;
        };
        create(
            options: Partial<
                {
                    Description?: string;
                    Language?: number;
                    Title?: string;
                    Url?: string;
                    UseSamePermissionsAsParentSite?: boolean;
                    WebTemplate?: string;
                },
            >,
        ): Promise<Sp.CreateWebResponse>;
        delete(): Promise<void>;
        get<T extends [] = null>(
            filter?: QueryItemsFilter,
        ): Promise<
            T extends null
                ? {
                    AutofillInfo?: string;
                    AutoIndexed?: boolean;
                    CanBeDeleted?: boolean;
                    ClientSideComponentId?: string;
                    ClientSideComponentProperties?: string;
                    ClientValidationFormula?: string;
                    ClientValidationMessage?: string;
                    CustomFormatter?: string;
                    DefaultFormula?: string;
                    DefaultValue?: string;
                    Description?: string;
                    Direction?: "none"
                    | "ltr"
                    | "rtl";
                    EnforceUniqueValues?: boolean;
                    EntityPropertyName?: string;
                    FieldTypeKind?: number;
                    Filterable?: boolean;
                    FromBaseType?: boolean;
                    Group?: string;
                    Hidden?: boolean;
                    Id?: string;
                    Indexed?: boolean;
                    IndexStatus?: number;
                    InternalName?: string;
                    IsModern?: boolean;
                    JSLink?: string;
                    PinnedToFiltersPane?: boolean;
                    ReadOnlyField?: boolean;
                    Required?: boolean;
                    SchemaXml?: string;
                    Scope?: string;
                    Sealed?: boolean;
                    ShowInFiltersPane?: number;
                    Sortable?: boolean;
                    StaticName?: string;
                    Title?: string;
                    TypeAsString?: string;
                    TypeDisplayName?: string;
                    TypeShortDescription?: string;
                    ValidationFormula?: string;
                    ValidationMessage?: string;
                }
                : {
                    AutofillInfo?: string;
                    AutoIndexed?: boolean;
                    CanBeDeleted?: boolean;
                    ClientSideComponentId?: string;
                    ClientSideComponentProperties?: string;
                    ClientValidationFormula?: string;
                    ClientValidationMessage?: string;
                    CustomFormatter?: string;
                    DefaultFormula?: string;
                    DefaultValue?: string;
                    Description?: string;
                    Direction?: "none"
                    | "ltr"
                    | "rtl";
                    EnforceUniqueValues?: boolean;
                    EntityPropertyName?: string;
                    FieldTypeKind?: number;
                    Filterable?: boolean;
                    FromBaseType?: boolean;
                    Group?: string;
                    Hidden?: boolean;
                    Id?: string;
                    Indexed?: boolean;
                    IndexStatus?: number;
                    InternalName?: string;
                    IsModern?: boolean;
                    JSLink?: string;
                    PinnedToFiltersPane?: boolean;
                    ReadOnlyField?: boolean;
                    Required?: boolean;
                    SchemaXml?: string;
                    Scope?: string;
                    Sealed?: boolean;
                    ShowInFiltersPane?: number;
                    Sortable?: boolean;
                    StaticName?: string;
                    Title?: string;
                    TypeAsString?: string;
                    TypeDisplayName?: string;
                    TypeShortDescription?: string;
                    ValidationFormula?: string;
                    ValidationMessage?: string;
                }[],
        >;
        update(props: Partial<Sp.Web>): Promise<Sp.CreateWebResponse>;
    }
    Index

    Properties

    Methods

    Properties

    layers: {
        Files: LayerFactory<SPSiteFileLayer>;
        Lists: LayerFactory<SPListLayer>;
        Navigations: LayerFactory<SPNavigationLayer>;
        Pages: LayerFactory<SPPageLayer>;
    }

    Methods

    • Parameters

      • options: Partial<
            {
                Description?: string;
                Language?: number;
                Title?: string;
                Url?: string;
                UseSamePermissionsAsParentSite?: boolean;
                WebTemplate?: string;
            },
        >

      Returns Promise<Sp.CreateWebResponse>

    • Type Parameters

      • T extends [] = null

      Parameters

      Returns Promise<
          T extends null
              ? {
                  AutofillInfo?: string;
                  AutoIndexed?: boolean;
                  CanBeDeleted?: boolean;
                  ClientSideComponentId?: string;
                  ClientSideComponentProperties?: string;
                  ClientValidationFormula?: string;
                  ClientValidationMessage?: string;
                  CustomFormatter?: string;
                  DefaultFormula?: string;
                  DefaultValue?: string;
                  Description?: string;
                  Direction?: "none"
                  | "ltr"
                  | "rtl";
                  EnforceUniqueValues?: boolean;
                  EntityPropertyName?: string;
                  FieldTypeKind?: number;
                  Filterable?: boolean;
                  FromBaseType?: boolean;
                  Group?: string;
                  Hidden?: boolean;
                  Id?: string;
                  Indexed?: boolean;
                  IndexStatus?: number;
                  InternalName?: string;
                  IsModern?: boolean;
                  JSLink?: string;
                  PinnedToFiltersPane?: boolean;
                  ReadOnlyField?: boolean;
                  Required?: boolean;
                  SchemaXml?: string;
                  Scope?: string;
                  Sealed?: boolean;
                  ShowInFiltersPane?: number;
                  Sortable?: boolean;
                  StaticName?: string;
                  Title?: string;
                  TypeAsString?: string;
                  TypeDisplayName?: string;
                  TypeShortDescription?: string;
                  ValidationFormula?: string;
                  ValidationMessage?: string;
              }
              : {
                  AutofillInfo?: string;
                  AutoIndexed?: boolean;
                  CanBeDeleted?: boolean;
                  ClientSideComponentId?: string;
                  ClientSideComponentProperties?: string;
                  ClientValidationFormula?: string;
                  ClientValidationMessage?: string;
                  CustomFormatter?: string;
                  DefaultFormula?: string;
                  DefaultValue?: string;
                  Description?: string;
                  Direction?: "none"
                  | "ltr"
                  | "rtl";
                  EnforceUniqueValues?: boolean;
                  EntityPropertyName?: string;
                  FieldTypeKind?: number;
                  Filterable?: boolean;
                  FromBaseType?: boolean;
                  Group?: string;
                  Hidden?: boolean;
                  Id?: string;
                  Indexed?: boolean;
                  IndexStatus?: number;
                  InternalName?: string;
                  IsModern?: boolean;
                  JSLink?: string;
                  PinnedToFiltersPane?: boolean;
                  ReadOnlyField?: boolean;
                  Required?: boolean;
                  SchemaXml?: string;
                  Scope?: string;
                  Sealed?: boolean;
                  ShowInFiltersPane?: number;
                  Sortable?: boolean;
                  StaticName?: string;
                  Title?: string;
                  TypeAsString?: string;
                  TypeDisplayName?: string;
                  TypeShortDescription?: string;
                  ValidationFormula?: string;
                  ValidationMessage?: string;
              }[],
      >