import { AbstractDataServiceAdapter } from './adapters/abstract-data-service-adapter.js'; import { assertParam, assertConfig, Param } from './core/assert-param.js'; import { BreezeConfig } from './config/config.js'; import { BreezeEnum } from './core/enum.js'; import { BreezeEvent } from './core/event.js'; import type { ComplexArray } from './entity/complex-array.js'; import { DataService, JsonResultsAdapter } from './metadata/data-service.js'; import type { DataServiceConfig, JsonResultsAdapterConfig, NodeContext, NodeMeta } from './metadata/data-service.js'; import { DataType } from './metadata/data-type.js'; import { EntityAction } from './entity/entity-action.js'; import { EntityAspect, ComplexAspect } from './entity/entity-aspect.js'; import { EntityBase, ComplexObjectBase } from './entity/entity-base.js'; import type { Entity, ComplexObject, StructuralObject, PropertyChangedEventArgs, QueriedAs, EntityAspectOf, ComplexAspectOf } from './entity/entity-aspect.js'; import { EntityKey } from './entity/entity-key.js'; import { EntityManager, ProblemTypes, isConcurrencyError } from './manager/entity-manager.js'; import type { EntityManagerConfig, EntityError, EntityChangedEventArgs, SaveContext, SaveBundle, HttpResponse, KeyMapping, ServerError, SaveResult, QueryResult, ValidationErrorsChangedEventArgs, HasChangesChangedEventArgs } from './manager/entity-manager.js'; import { EntityQuery, FilterQueryOp, BooleanQueryOp, OrderByClause, ExpandClause, SelectClause } from './query/entity-query.js'; import { EntityState } from './entity/entity-state.js'; import { InterfaceRegistry } from './config/interface-registry.js'; import type { AjaxAdapter, AjaxConfig, BreezeFetch, DataServiceAdapter, ModelLibraryAdapter, ChangeRequestInterceptor, UriBuilderAdapter, InterfaceRegistryConfig, AjaxRequestInterceptor } from './config/interface-registry.js'; import { KeyGenerator } from './entity/key-generator.js'; import { LocalQueryComparisonOptions } from './metadata/local-query-comparison-options.js'; import { MappingContext } from './query/mapping-context.js'; import { MetadataStore, EntityType, ComplexType, DataProperty, NavigationProperty, AutoGeneratedKeyType, entityTypeForCtor } from './metadata/entity-metadata.js'; import type { StructuralType, EntityProperty } from './metadata/entity-metadata.js'; import { NamingConvention } from './metadata/naming-convention.js'; import { Predicate, UnaryPredicate, BinaryPredicate, AnyAllPredicate, AndOrPredicate, LitExpr, FnExpr, PropExpr } from './query/predicate.js'; import type { VisitContext, Visitor, ExpressionContext } from './query/predicate.js'; import { QueryOptions, FetchStrategy, MergeStrategy } from './query/query-options.js'; import { SaveOptions } from './manager/save-options.js'; import { ValidationError, Validator } from './validation/validate.js'; import { ValidationOptions } from './validation/validation-options.js'; import { config } from './config/config.js'; import type { BaseAdapter } from './config/config.js'; import { configureBreeze } from './config/configure.js'; import type { BreezeSetupOptions, AdapterRegistration, AjaxAdapterRegistration } from './config/configure.js'; import { core } from './core/core.js'; import type { Callback, ErrorCallback } from './core/core.js'; import { makeRelationArray, makePrimitiveArray, makeComplexArray } from './entity/array.js'; import type { RelationArray } from './entity/relation-array.js'; import type { ArrayChangedArgs } from './entity/observable-array.js'; export { BreezeConfig }; export type { ComplexArray, RelationArray }; export { AbstractDataServiceAdapter, AndOrPredicate, AnyAllPredicate, assertConfig, assertParam, AutoGeneratedKeyType, BinaryPredicate, BreezeEnum, BreezeEvent, ComplexAspect, ComplexObjectBase, ComplexType, config, configureBreeze, core, DataProperty, DataService, DataType, EntityAction, EntityAspect, EntityBase, EntityKey, EntityManager, EntityQuery, EntityState, EntityType, entityTypeForCtor, ExpandClause, FetchStrategy, FilterQueryOp, FnExpr, InterfaceRegistry, JsonResultsAdapter, KeyGenerator, LitExpr, LocalQueryComparisonOptions, makeComplexArray, makePrimitiveArray, makeRelationArray, MappingContext, MergeStrategy, MetadataStore, NamingConvention, NavigationProperty, OrderByClause, Predicate, PropExpr, QueryOptions, SaveOptions, SelectClause, UnaryPredicate, ValidationError, ValidationOptions, Validator, ProblemTypes, isConcurrencyError, }; export type { AjaxAdapter, AjaxConfig, AjaxRequestInterceptor, ArrayChangedArgs, BaseAdapter, BreezeFetch, Callback, ChangeRequestInterceptor, ComplexObject, BreezeSetupOptions, AdapterRegistration, AjaxAdapterRegistration, DataServiceAdapter, DataServiceConfig, Entity, EntityChangedEventArgs, EntityError, EntityManagerConfig, EntityProperty, ErrorCallback, ExpressionContext, HasChangesChangedEventArgs, HttpResponse, InterfaceRegistryConfig, JsonResultsAdapterConfig, KeyMapping, ModelLibraryAdapter, NodeContext, NodeMeta, PropertyChangedEventArgs, QueriedAs, EntityAspectOf, ComplexAspectOf, QueryResult, SaveBundle, SaveContext, SaveResult, ServerError, StructuralObject, StructuralType, UriBuilderAdapter, ValidationErrorsChangedEventArgs, VisitContext, Visitor, }; /** Every class, enum and helper of the Breeze 2.x API in one object - the `breeze` that 2.x code imports or finds as a global. Kept so that code written against 2.x runs unchanged. New code imports what it uses by name, which lets a bundler leave out the rest. */ export declare const breeze: { /** The base class of Breeze's data service adapters, for anyone writing one. The same as the `AbstractDataServiceAdapter` export. */ AbstractDataServiceAdapter: typeof AbstractDataServiceAdapter; /** Always `null`. Breeze 2.x exposed its argument-checking helpers here; Breeze 3 does not. */ assertConfig: any; /** Always `null`. Breeze 2.x exposed its argument-checking helpers here; Breeze 3 does not. */ assertParam: any; /** The same as the {@link AutoGeneratedKeyType} export. */ AutoGeneratedKeyType: typeof AutoGeneratedKeyType; /** The operators that combine predicates in a query - `and`, `or` and `not` - as an enum. The same as the `BooleanQueryOp` export. */ BooleanQueryOp: typeof BooleanQueryOp; /** The same as the {@link ComplexAspect} export. */ ComplexAspect: typeof ComplexAspect; /** The same as the {@link ComplexType} export. */ ComplexType: typeof ComplexType; /** The same as the {@link config} export: the older adapter-registration API. New code calls {@link configureBreeze} instead. */ config: BreezeConfig; /** The same as the {@link core} export. */ core: { hasOwnProperty: (obj: Object, key: string) => boolean; getOwnPropertyValues: (source: Object) => any[]; getPropertyDescriptor: (obj: Object, propertyName: string) => PropertyDescriptor | undefined; objectForEach: (obj: Object, kvFn: (key: string, val: any) => any) => void; objectFirst: (obj: Object, kvPredicate: (key: string, val: any) => boolean) => { key: string; value: any; } | null; objectMap: (obj: Object, kvFn?: (key: string, val: any) => any) => any[]; extend: (target: Object, source?: Object, propNames?: string[]) => Object; propEq: (propertyName: string, value: any) => (obj: Object) => boolean; propsEq: (property1Name: string, property2Name: string, value: any) => (obj: Object) => boolean; pluck: (propertyName: any) => (obj: Object) => any; map: (items: T | T[], fn: (v: T, ix?: number) => any, includeNull?: boolean) => any | any[]; resolveProperties: (sources: Object[], propertyNames: string[]) => any; setAsDefault: (target: Object, ctor: { new (...args: any[]): any; defaultInstance?: any; }) => any; updateWithDefaults: (target: Object, defaults: Object) => any; getMapArray: (map: Map, key: K) => V[]; toArray: (item: any) => any[]; arrayEquals: (a1: any[], a2: any[], equalsFn?: (x1: any, x2: any) => boolean) => boolean; arraySlice: (ar: any[], start?: number, end?: number) => any[]; arrayFirst: (array: T[], predicate: (i: any) => boolean) => T; arrayIndexOf: (array: T[], predicate: (i: any) => boolean) => number; arrayRemoveItem: (array: T[], predicateOrItem: T | ((i: T) => boolean), shouldRemoveMultiple?: boolean) => boolean; arrayZip: (a1: any[], a2: any[], callback: (x1: any, x2: any) => any) => any[]; arrayAddItemUnique: (array: T[], item: T) => void; arrayFlatMap: typeof import("./core/core.js").arrayFlatMap; using: (obj: Object, property: string, tempValue: any, fn: () => any) => any; wrapExecution: (startFn: () => any, endFn: (state: any) => any, fn: () => any) => any; memoize: (fn: any) => any; getUuid: typeof import("./core/core.js").getUuid; durationToSeconds: (duration: string) => number; isSettable: (obj: Object, propertyName: string) => boolean; isDate: (o: any) => boolean; isDateString: (s: string) => boolean; isGuid: (value: any) => boolean; isDuration: (value: any) => boolean; isFunction: (o: any) => boolean; isEmpty: (obj: any) => boolean; identity: (x: any) => any; noop: () => void; stringStartsWith: typeof import("./core/core.js").stringStartsWith; stringEndsWith: typeof import("./core/core.js").stringEndsWith; formatString: typeof import("./core/core.js").formatString; toJson: (source: Object, template: Object, target?: Object) => Object; toJSONSafe: (obj: any, replacer?: (prop: string, value: any) => any) => any; toJSONSafeReplacer: (prop: string, val: any) => any; strings: { TO_TYPE: string; }; }; /** The same as the {@link DataProperty} export. */ DataProperty: typeof DataProperty; /** The same as the {@link DataService} export. */ DataService: typeof DataService; /** The same as the {@link DataType} export. */ DataType: typeof DataType; /** The same as the {@link EntityAction} export. */ EntityAction: typeof EntityAction; /** The same as the {@link EntityAspect} export. */ EntityAspect: typeof EntityAspect; /** The same as the {@link EntityKey} export. */ EntityKey: typeof EntityKey; /** The same as the {@link EntityManager} export. */ EntityManager: typeof EntityManager; /** The same as the {@link EntityQuery} export. */ EntityQuery: typeof EntityQuery; /** The same as the {@link EntityState} export. */ EntityState: typeof EntityState; /** The same as the {@link EntityType} export. */ EntityType: typeof EntityType; /** The same as the {@link BreezeEvent} export, under its 2.x name. */ Event: typeof BreezeEvent; /** The same as the {@link FetchStrategy} export. */ FetchStrategy: typeof FetchStrategy; /** The same as the {@link FilterQueryOp} export. */ FilterQueryOp: typeof FilterQueryOp; /** The same as the {@link InterfaceRegistry} export. */ InterfaceRegistry: typeof InterfaceRegistry; /** The same as the {@link JsonResultsAdapter} export. */ JsonResultsAdapter: typeof JsonResultsAdapter; /** The same as the {@link KeyGenerator} export. */ KeyGenerator: typeof KeyGenerator; /** The same as the {@link LocalQueryComparisonOptions} export. */ LocalQueryComparisonOptions: typeof LocalQueryComparisonOptions; /** Turns an array into the array behind a collection of complex objects. For model library adapter authors; Breeze's own adapter calls it when it sets up an entity. */ makeComplexArray: typeof makeComplexArray; /** Turns an array into the array behind a collection of primitive values. For model library adapter authors; Breeze's own adapter calls it when it sets up an entity. */ makePrimitiveArray: typeof makePrimitiveArray; /** Turns an array into the {@link RelationArray} behind a collection navigation property. For model library adapter authors; Breeze's own adapter calls it when it sets up an entity. */ makeRelationArray: typeof makeRelationArray; /** The same as the {@link MergeStrategy} export. */ MergeStrategy: typeof MergeStrategy; /** The same as the {@link MetadataStore} export. */ MetadataStore: typeof MetadataStore; /** The same as the {@link NamingConvention} export. */ NamingConvention: typeof NamingConvention; /** The same as the {@link NavigationProperty} export. */ NavigationProperty: typeof NavigationProperty; /** The class that holds a query's `orderBy`. Exposed for Breeze's own tests; applications do not need it. */ OrderByClause: typeof OrderByClause; /** Breeze's internal argument-checking helper. Applications do not need it. */ Param: typeof Param; /** The same as the {@link Predicate} export. */ Predicate: typeof Predicate; /** The same as the {@link QueryOptions} export. */ QueryOptions: typeof QueryOptions; /** The same as the {@link SaveOptions} export. */ SaveOptions: typeof SaveOptions; /** The same as the {@link ValidationError} export. */ ValidationError: typeof ValidationError; /** The same as the {@link ValidationOptions} export. */ ValidationOptions: typeof ValidationOptions; /** The same as the {@link Validator} export. */ Validator: typeof Validator; /** The version of `breeze-client`. A test keeps it equal to the one in package.json. */ version: string; }; export type { AdapterCtor, AdapterType } from './config/config.js'; export type { AjaxRequest, ChangeRequestInterceptorCtor } from './config/interface-registry.js'; export type { ComplexTypeConfig, DataPropertyConfig, EntityTypeConfig, EntityTypeSetConfig, MetadataFetchedEventArgs, MetadataStoreConfig, NavigationPropertyConfig, } from './metadata/entity-metadata.js'; export type { EntityByKeyResult, EntityTypeArg, ExportEntitiesArg, IEntityByKeyResult, ImportConfig, ImportResult, InitialValues, ITempKeyMap, QueryErrorCallback, QuerySuccessCallback, SaveError, } from './manager/entity-manager.js'; export type { LocalQueryComparisonOptionsConfig } from './metadata/local-query-comparison-options.js'; export type { NamingConventionConfig } from './metadata/naming-convention.js'; export type { CollectionElement, CollectionPath, FilterOpFor, FilterValueExpression, FilterValueFor, FunctionExpressionPath, FilterClause, FilterOpsObject, FilterOpNameFor, NavigationPath, OrderByPath, KeyValues, OriginalValues, PropertyPath, PropertyValue, QuantifierOp, SelectPath, WhereObject, } from './query/property-path.js'; export type { TypedPredicateFactory } from './query/predicate.js'; export type { QueryOptionsConfig } from './query/query-options.js'; export type { SaveOptionsConfig } from './manager/save-options.js'; export type { ValidationContext, ValidationFn, ValidationMessageContext } from './validation/validate.js'; export type { ValidationOptionsConfig } from './validation/validation-options.js'; /** Kept for code written against Breeze 2.x and `breeze-bridge2-angular`. Breeze 3 uses native promises and has nothing to configure here. */ export declare namespace promises { /** An empty interface, kept so that code written for `breeze-bridge2-angular`, which named it, still compiles. Breeze 3 uses native promises. */ interface IPromiseService { } }