From a8a94f2e95872e2ef6984a4327f0fdcd1209f558 Mon Sep 17 00:00:00 2001 From: Mathew Henson Date: Thu, 26 May 2016 14:36:24 +0100 Subject: [PATCH] Updated definition files, added array foreign key dependencies and foreign key filters --- server/dist/definitions/modepress-api.d.ts | 7 +++++++ server/src/definitions/custom/modepress-api.d.ts | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/server/dist/definitions/modepress-api.d.ts b/server/dist/definitions/modepress-api.d.ts index 50d012e6..307d0fe5 100644 --- a/server/dist/definitions/modepress-api.d.ts +++ b/server/dist/definitions/modepress-api.d.ts @@ -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 }> } /** @@ -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; } /* @@ -64,6 +70,7 @@ declare module Modepress parent?: string; public?: boolean; content?: string; + children?: Array; createdOn?: number; lastUpdated?: number; } diff --git a/server/src/definitions/custom/modepress-api.d.ts b/server/src/definitions/custom/modepress-api.d.ts index f8ee1840..425d3f04 100644 --- a/server/src/definitions/custom/modepress-api.d.ts +++ b/server/src/definitions/custom/modepress-api.d.ts @@ -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 }> } /** @@ -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; } /* @@ -64,6 +70,7 @@ parent?: string; public?: boolean; content?: string; + children?: Array; createdOn?: number; lastUpdated?: number; }