Skip to content

Commit

Permalink
Updated definition files, added array foreign key dependencies and fo…
Browse files Browse the repository at this point in the history
…reign key filters
  • Loading branch information
MKHenson committed May 26, 2016
1 parent 270f347 commit a8a94f2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/dist/definitions/modepress-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ declare module Modepress
_id?: any;
_requiredDependencies?: Array<{ collection: string, _id : any }>
_optionalDependencies?: Array<{ collection: string, propertyName: string, _id : any }>
_arrayDependencies?: Array<{ collection: string, propertyName: string, _id : any }>
}

/**
Expand All @@ -34,6 +35,11 @@ declare module Modepress
* Only read if expandForeignKeys is true.
*/
expandMaxDepth? : number;

/**
* Defines an array of schema names that must not be expanded when expandForeignKeys is true.
*/
expandSchemaBlacklist?: Array<string>;
}

/*
Expand Down Expand Up @@ -64,6 +70,7 @@ declare module Modepress
parent?: string;
public?: boolean;
content?: string;
children?: Array<string>;
createdOn?: number;
lastUpdated?: number;
}
Expand Down
7 changes: 7 additions & 0 deletions server/src/definitions/custom/modepress-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
_id?: any;
_requiredDependencies?: Array<{ collection: string, _id : any }>
_optionalDependencies?: Array<{ collection: string, propertyName: string, _id : any }>
_arrayDependencies?: Array<{ collection: string, propertyName: string, _id : any }>
}

/**
Expand All @@ -34,6 +35,11 @@
* Only read if expandForeignKeys is true.
*/
expandMaxDepth? : number;

/**
* Defines an array of schema names that must not be expanded when expandForeignKeys is true.
*/
expandSchemaBlacklist?: Array<string>;
}

/*
Expand Down Expand Up @@ -64,6 +70,7 @@
parent?: string;
public?: boolean;
content?: string;
children?: Array<string>;
createdOn?: number;
lastUpdated?: number;
}
Expand Down

0 comments on commit a8a94f2

Please sign in to comment.