UNPKG

@progress/sitefinity-nextjs-sdk

Version:

Provides OOB widgets developed using the Next.js framework, which includes an abstraction layer for Sitefinity communication. Additionally, it offers an expanded API, typings, and tools for further development and integration.

41 lines (40 loc) 1.6 kB
import { SdkItem } from './dto/sdk-item'; export declare class ServiceMetadata { static serviceMetadataCache: ServiceMetadataDefinition; static serviceMetadataHash: string; static taxonomies: SdkItem[]; static fetch(metadataHash: string, traceContext?: any): Promise<ServiceMetadataDefinition>; static getDefaultFieldName(typeFullName: string): any; static getSetNameFromType(itemType: string): string | undefined; static getModuleDisplayName(itemType: string): string; static getParentType(itemType: string): string | null; static getChildTypes(itemType: string): Array<Array<string>>; static isPropertyACollection(type: string, propName: string): boolean; static getRelatedType(type: string, relationName: string): string | null; private static getEntityDefinition; private static isRelatedProperty; private static isPrimitiveProperty; static serializeFilterValue(type: string, propName: string, value: any): any; static getSimpleFields(type: string): string[]; static getRelationFields(type: string): string[]; static getTaxonomyFieldName(type: string, taxonomyName: string): string | undefined; static getFieldType(type: string, propName: string): FieldType; } export interface ServiceMetadataDefinition { definitions: { [key: string]: any; }; entityContainer: { entitySets: { [key: string]: any; }; }; } export declare enum FieldType { TextField = 0, ChoiceField = 1, NumberField = 2, ClassificationField = 3, DatetimeField = 4, BooleanField = 5 }