Socket
Socket
Sign inDemoInstall

breeze-client

Package Overview
Dependencies
Maintainers
5
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

breeze-client - npm Package Compare versions

Comparing version 1.6.3 to 1.7.0

86

index.d.ts

@@ -102,3 +102,3 @@ // Type definitions for Breeze 1.5.x

/** safely perform toJSON logic on objects with cycles. Replacer function can map or exclude properties. */
export function toJSONSafe(obj: any, replacer: (prop: string, val: any) => any): any
export function toJSONSafe(obj: any, replacer?: (prop: string, val: any) => any): any

@@ -166,4 +166,13 @@ /** Default value replacer for toJSONSafe. Replaces entityAspect and other internal properties with undefined. */

getProperties(): DataProperty[];
constructor(config: ComplexTypeOptions);
}
export interface ComplexTypeOptions {
shortName?: string;
namespace?: string;
dataProperties?: DataProperty[];
custom?: Object;
}
export class DataProperty implements IProperty {

@@ -181,2 +190,3 @@ complexTypeName: string;

isUnmapped: boolean;
isSettable: boolean;

@@ -270,30 +280,12 @@ maxLength: number;

defaultValue: any;
isNumeric: boolean;
isDate: boolean;
}
export interface DataType extends core.IEnum {
Binary: DataTypeSymbol;
Boolean: DataTypeSymbol;
Byte: DataTypeSymbol;
DateTime: DataTypeSymbol;
DateTimeOffset: DataTypeSymbol;
Decimal: DataTypeSymbol;
Double: DataTypeSymbol;
Guid: DataTypeSymbol;
Int16: DataTypeSymbol;
Int32: DataTypeSymbol;
Int64: DataTypeSymbol;
Single: DataTypeSymbol;
String: DataTypeSymbol;
Time: DataTypeSymbol;
Undefined: DataTypeSymbol;
isDate?: boolean;
isFloat?: boolean;
isInteger?: boolean;
isNumeric?: boolean;
quoteJsonOData?: boolean;
toDataType(typeName: string): DataTypeSymbol;
parseDateFromServer(date: any): Date;
defaultValue: any;
isNumeric: boolean;
isInteger: boolean;
validatorCtor: (context: any) => Validator;
/** Function to convert a value from string to this DataType. Note that this will be called each time a property is changed, so make it fast. */
parse: (val: any, sourceTypeName: string) => any;
parse?: (val: any, sourceTypeName?: string) => any;

@@ -315,2 +307,30 @@ /** Function to format this DataType for OData queries. */

}
export interface DataType extends core.IEnum {
Binary: DataTypeSymbol;
Boolean: DataTypeSymbol;
Byte: DataTypeSymbol;
DateTime: DataTypeSymbol;
DateTimeOffset: DataTypeSymbol;
Decimal: DataTypeSymbol;
Double: DataTypeSymbol;
Guid: DataTypeSymbol;
Int16: DataTypeSymbol;
Int32: DataTypeSymbol;
Int64: DataTypeSymbol;
Single: DataTypeSymbol;
String: DataTypeSymbol;
Time: DataTypeSymbol;
Undefined: DataTypeSymbol;
constants: { nextNumber: number, nextNumberIncrement: number, stringPrefix: string };
fromEdmDataType(typeName: string): DataTypeSymbol;
fromValue(val: any): DataTypeSymbol;
getComparableFn(dataType: DataTypeSymbol): (value: any) => any;
parseDateAsUTC(source: any): Date;
parseDateFromServer(date: any): Date;
parseRawValue(val: any, dataType?: DataTypeSymbol): any;
parseTimeFromServer(source: any): string;
}
export var DataType: DataType;

@@ -487,6 +507,6 @@

static importEntities(exportedString: string, config?: { mergeStrategy?: MergeStrategySymbol; metadataVersionFn?: (any: any) => void }): EntityManager;
static importEntities(exportedData: Object, config?: { mergeStrategy?: MergeStrategySymbol; metadataVersionFn?: (any: any) => void }): EntityManager;
importEntities(exportedString: string, config?: { mergeStrategy?: MergeStrategySymbol; metadataVersionFn?: (any: any) => void }): { entities: Entity[]; tempKeyMapping: { [key: string] : EntityKey } };
importEntities(exportedData: Object, config?: { mergeStrategy?: MergeStrategySymbol; metadataVersionFn?: (any: any) => void }): { entities: Entity[]; tempKeyMapping: { [key: string]: EntityKey } };
static importEntities(exportedString: string, config?: { mergeAdds?: boolean; mergeStrategy?: MergeStrategySymbol; metadataVersionFn?: (any: any) => void }): EntityManager;
static importEntities(exportedData: Object, config?: { mergeAdds?: boolean; mergeStrategy?: MergeStrategySymbol; metadataVersionFn?: (any: any) => void }): EntityManager;
importEntities(exportedString: string, config?: { mergeAdds?: boolean; mergeStrategy?: MergeStrategySymbol; metadataVersionFn?: (any: any) => void }): { entities: Entity[]; tempKeyMapping: { [key: string] : EntityKey } };
importEntities(exportedData: Object, config?: { mergeAdds?: boolean; mergeStrategy?: MergeStrategySymbol; metadataVersionFn?: (any: any) => void }): { entities: Entity[]; tempKeyMapping: { [key: string]: EntityKey } };

@@ -809,2 +829,4 @@ rejectChanges(): Entity[];

validators: Validator[];
invForeignKeyNames?: string[];
invForeignKeyNamesOnServer?: string[];

@@ -823,2 +845,4 @@ constructor(config: NavigationPropertyOptions);

validators?: Validator[];
invForeignKeyNames?: string[];
invForeignKeyNamesOnServer?: string[];
}

@@ -1028,3 +1052,3 @@

/** Register a validator factory so that any deserialized metadata can reference it. */
static registerFactory(fn: () => Validator, name: string): void;
static registerFactory(fn: (context?: any) => Validator, name: string): void;
/** Creates a regular expression validator with a fixed expression. */

@@ -1031,0 +1055,0 @@ static makeRegExpValidator(validatorName: string, expression: RegExp, defaultMessage: string, context?: any): Validator;

{
"name": "breeze-client",
"version": "1.6.3",
"version": "1.7.0",
"description": "Breeze Javascript client",

@@ -5,0 +5,0 @@ "main": "./breeze.debug.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc