UNPKG

@odata2ts/odata2ts

Version:

Flexible generator to produce various TypeScript artefacts (from simple model interfaces to complete odata clients) from OData metadata files

72 lines (71 loc) 2.15 kB
/** * All module names of the main dependencies. */ export declare const LIB_MODULES: { core: string; qObject: string; clientApi: string; service: string; }; /** * All imported entity names from the core API. * Includes versioned file names, i.e. according to OData version. */ export declare enum CoreImports { DeferredContent = 0, ODataCollectionResponse = 1, ODataModelResponse = 2, ODataValueResponse = 3 } /** * For all core imports that are versioned two files exist, one for V2, one for V4. * ODataCollectionResponse = ODataCollectionResponseV2 + ODataCollectionResponseV4 * */ export declare const VERSIONED_CORE_IMPORTS: CoreImports[]; /** * Most relevant, but not all imports from query objects library */ export declare enum QueryObjectImports { QueryObject = "QueryObject", ENUMERABLE_PROP_DEFINITION = "ENUMERABLE_PROP_DEFINITION", QId = "QId", QFunction = "QFunction", QAction = "QAction", EnumCollection = "EnumCollection", QEnumCollection = "QEnumCollection", QNumericEnumCollection = "QNumericEnumCollection", QEnumCollectionPath = "QEnumCollectionPath", QNumericEnumCollectionPath = "QNumericEnumCollectionPath", QCollectionPath = "QCollectionPath", QEntityCollectionPath = "QEntityCollectionPath", OperationReturnType = "OperationReturnType", ReturnTypes = "ReturnTypes", QComplexParam = "QComplexParam" } /** * All imports from HTTP client API. */ export declare enum ClientApiImports { ODataHttpClient = 0, ODataHttpClientConfig = 1, HttpResponseModel = 2 } /** * All imports from service library. * Includes versioned file names, i.e. according to OData version. */ export declare enum ServiceImports { ODataService = 0, ODataServiceOptions = 1, ODataServiceOptionsInternal = 2, EntityTypeService = 3, PrimitiveTypeService = 4, CollectionService = 5, EntitySetService = 6 } /** * For all versioned imports two files exist, one for V2, one for V4. * EntityTypeService = EntityTypeServiceV2 + EntityTypeServiceV4 */ export declare const VERSIONED_SERVICE_IMPORTS: ServiceImports[];