@appvise/domain
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -5,8 +5,7 @@ "use strict"; | ||
class ItemQuery { | ||
constructor(id, selectionSet, currentIdentity) { | ||
constructor(id, selectionSet) { | ||
this.id = id; | ||
this.selectionSet = selectionSet; | ||
this.currentIdentity = currentIdentity; | ||
} | ||
} | ||
exports.ItemQuery = ItemQuery; |
@@ -5,6 +5,5 @@ "use strict"; | ||
class SearchQuery { | ||
constructor(request, selectionSet, currentIdentity, searchFieldNames) { | ||
constructor(request, selectionSet, searchFieldNames) { | ||
this.request = request; | ||
this.selectionSet = selectionSet; | ||
this.currentIdentity = currentIdentity; | ||
// Only auto map search fields when field names are provided | ||
@@ -11,0 +10,0 @@ if (searchFieldNames && request.filter && request.filter.search) { |
export class ItemQuery { | ||
constructor(id, selectionSet, currentIdentity) { | ||
constructor(id, selectionSet) { | ||
this.id = id; | ||
this.selectionSet = selectionSet; | ||
this.currentIdentity = currentIdentity; | ||
} | ||
} |
export class SearchQuery { | ||
constructor(request, selectionSet, currentIdentity, searchFieldNames) { | ||
constructor(request, selectionSet, searchFieldNames) { | ||
this.request = request; | ||
this.selectionSet = selectionSet; | ||
this.currentIdentity = currentIdentity; | ||
// Only auto map search fields when field names are provided | ||
@@ -7,0 +6,0 @@ if (searchFieldNames && request.filter && request.filter.search) { |
@@ -5,4 +5,3 @@ import { SelectionSet } from '../repository'; | ||
readonly selectionSet?: SelectionSet | undefined; | ||
readonly currentIdentity?: string | undefined; | ||
constructor(id: string, selectionSet?: SelectionSet | undefined, currentIdentity?: string | undefined); | ||
constructor(id: string, selectionSet?: SelectionSet | undefined); | ||
} |
@@ -6,4 +6,3 @@ import { SelectionSet } from '../repository'; | ||
readonly selectionSet?: SelectionSet | undefined; | ||
readonly currentIdentity?: string | undefined; | ||
constructor(request: SearchRequest, selectionSet?: SelectionSet | undefined, currentIdentity?: string | undefined, searchFieldNames?: string[]); | ||
constructor(request: SearchRequest, selectionSet?: SelectionSet | undefined, searchFieldNames?: string[]); | ||
} |
{ | ||
"name": "@appvise/domain", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "Base package for building Domain-Driven Hexagon applications in TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
116776
3056