@ptc-org/nestjs-query-core
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
{ | ||
"name": "@ptc-org/nestjs-query-core", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"description": "Base query package", | ||
@@ -5,0 +5,0 @@ "author": "doug-martin <doug@dougamartin.com>", |
<p align="center"> | ||
<a href="https://doug-martin.github.io/nestjs-query" target="blank"><img src="https://doug-martin.github.io/nestjs-query/img/logo.svg" width="120" alt="Nestjs-query Logo" /></a> | ||
<a href="https://tripss.github.io/nestjs-query" target="blank"><img src="https://tripss.github.io/nestjs-query/img/logo.svg" width="120" alt="Nestjs-query Logo" /></a> | ||
</p> | ||
@@ -7,4 +7,4 @@ | ||
[![Test](https://github.com/tripss/nestjs-query/workflows/Test/badge.svg?branch=master)](https://github.com/tripss/nestjs-query/actions?query=workflow%3ATest+and+branch%3Amaster+) | ||
[![Coverage Status](https://coveralls.io/repos/github/doug-martin/nestjs-query/badge.svg?branch=master)](https://coveralls.io/github/doug-martin/nestjs-query?branch=master) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/doug-martin/nestjs-query/badge.svg?targetFile=packages/core/package.json)](https://snyk.io/test/github/doug-martin/nestjs-query?targetFile=packages/core/package.json) | ||
[![Coverage Status](https://coveralls.io/repos/github/tripss/nestjs-query/badge.svg?branch=master)](https://coveralls.io/github/tripss/nestjs-query?branch=master) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/tripss/nestjs-query/badge.svg?targetFile=packages/core/package.json)](https://snyk.io/test/github/tripss/nestjs-query?targetFile=packages/core/package.json) | ||
@@ -17,8 +17,8 @@ # `@ptc-org/nestjs-query-core` | ||
[Install Guide](https://doug-martin.github.io/nestjs-query/docs/introduction/install) | ||
[Install Guide](https://tripss.github.io/nestjs-query/docs/introduction/install) | ||
## Docs | ||
* [Nestjs-query Docs](https://doug-martin.github.io/nestjs-query/docs/introduction/getting-started) | ||
* [Nestjs-query Docs](https://tripss.github.io/nestjs-query/docs/introduction/getting-started) | ||
@@ -57,3 +57,3 @@ "use strict"; | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
const serializer = (0, assembler_serializer_1.getAssemblerSerializer)((entityOrDto).constructor); | ||
const serializer = (0, assembler_serializer_1.getAssemblerSerializer)(entityOrDto.constructor); | ||
if (serializer) { | ||
@@ -60,0 +60,0 @@ return serializer(entityOrDto); |
@@ -1,3 +0,3 @@ | ||
export { mergeQuery, QueryFieldMap, transformQuery, transformSort, applySort, applyPaging, applyQuery, invertSort, } from './query.helpers'; | ||
export { mergeQuery, QueryFieldMap, transformQuery, transformSort, applySort, applyPaging, applyQuery, invertSort } from './query.helpers'; | ||
export { transformAggregateQuery, transformAggregateResponse } from './aggregate.helpers'; | ||
export * from './filter.helpers'; |
@@ -26,3 +26,3 @@ "use strict"; | ||
paging: query.paging, | ||
sorting: (0, exports.transformSort)(query.sorting, fieldMap), | ||
sorting: (0, exports.transformSort)(query.sorting, fieldMap) | ||
}); | ||
@@ -29,0 +29,0 @@ exports.transformQuery = transformQuery; |
export * from './interfaces'; | ||
export * from './common'; | ||
export { InjectAssemblerQueryService, InjectQueryService, getQueryServiceToken } from './decorators'; | ||
export { QueryService, AssemblerQueryService, RelationQueryService, NoOpQueryService, QueryServiceRelation, ProxyQueryService, } from './services'; | ||
export { transformFilter, transformQuery, transformSort, applyFilter, getFilterFields, QueryFieldMap, transformAggregateQuery, transformAggregateResponse, applySort, applyPaging, applyQuery, mergeQuery, mergeFilter, invertSort, getFilterComparisons, getFilterOmitting, } from './helpers'; | ||
export { ClassTransformerAssembler, DefaultAssembler, AbstractAssembler, Assembler, AssemblerSerializer, AssemblerDeserializer, AssemblerFactory, } from './assemblers'; | ||
export { QueryService, AssemblerQueryService, RelationQueryService, NoOpQueryService, QueryServiceRelation, ProxyQueryService } from './services'; | ||
export { transformFilter, transformQuery, transformSort, applyFilter, getFilterFields, QueryFieldMap, transformAggregateQuery, transformAggregateResponse, applySort, applyPaging, applyQuery, mergeQuery, mergeFilter, invertSort, getFilterComparisons, getFilterOmitting } from './helpers'; | ||
export { ClassTransformerAssembler, DefaultAssembler, AbstractAssembler, Assembler, AssemblerSerializer, AssemblerDeserializer, AssemblerFactory } from './assemblers'; | ||
export { NestjsQueryCoreModule, NestjsQueryCoreModuleOpts } from './module'; |
import { Filterable } from './filterable.interface'; | ||
export interface FindByIdOptions<DTO> extends Filterable<DTO> { | ||
/** | ||
* Allow also deleted records to be get | ||
* Allow also deleted records to be retrieved | ||
*/ | ||
withDeleted?: boolean; | ||
} |
import { Filterable } from './filterable.interface'; | ||
export declare type FindRelationOptions<Relation> = Filterable<Relation>; | ||
export interface FindRelationOptions<Relation> extends Filterable<Relation> { | ||
/** | ||
* Allow also deleted records to be retrieved | ||
*/ | ||
withDeleted?: boolean; | ||
} |
@@ -13,3 +13,3 @@ "use strict"; | ||
providers: [...assemblers, ...assemblerServiceProviders], | ||
exports: [...imports, ...assemblers, ...assemblerServiceProviders], | ||
exports: [...imports, ...assemblers, ...assemblerServiceProviders] | ||
}; | ||
@@ -16,0 +16,0 @@ } |
@@ -19,3 +19,3 @@ "use strict"; | ||
}, | ||
inject: [AssemblerClass, (0, decorators_1.getQueryServiceToken)(EntityClass)], | ||
inject: [AssemblerClass, (0, decorators_1.getQueryServiceToken)(EntityClass)] | ||
}; | ||
@@ -22,0 +22,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2758
192824
167