@zola_do/collection-query 0.2.16 → 0.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -1
- package/dist/query.dto.d.ts +40 -0
- package/dist/query.dto.js +246 -0
- package/dist/query.dto.js.map +1 -0
- package/dist/query.js +0 -54
- package/dist/query.js.map +1 -1
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -33,12 +33,18 @@ npm install @zola_do/nestjs-shared
|
|
|
33
33
|
npm install typeorm class-transformer class-validator
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
Optional for Swagger documentation:
|
|
36
|
+
Optional for Swagger documentation (import DTOs from `@zola_do/collection-query/dtos`):
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
39
|
npm install @nestjs/swagger
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
+
## Supply chain / Socket.dev
|
|
43
|
+
|
|
44
|
+
This package has **no runtime dependencies** — only peers. Socket.dev Dependency Alerts on npm usually reflect **TypeORM and class-validator transitives**, not our source. Import from the main barrel (or subpaths other than `./dtos`) to avoid pulling `@nestjs/swagger` into the analyzed tree.
|
|
45
|
+
|
|
46
|
+
See [docs/SUPPLY_CHAIN.md](../../docs/SUPPLY_CHAIN.md) for alert triage and false positives (e.g. `ansis` / “ansi” typosquat warnings).
|
|
47
|
+
|
|
42
48
|
## Quick Start
|
|
43
49
|
|
|
44
50
|
```typescript
|
|
@@ -512,6 +518,18 @@ Root import is supported for backward compatibility:
|
|
|
512
518
|
import { FilterOperators, CollectionQuery } from '@zola_do/collection-query';
|
|
513
519
|
```
|
|
514
520
|
|
|
521
|
+
Swagger/OpenAPI metadata (optional peer):
|
|
522
|
+
|
|
523
|
+
```typescript
|
|
524
|
+
import {
|
|
525
|
+
CollectionQueryDto,
|
|
526
|
+
SearchDto,
|
|
527
|
+
OrderDto,
|
|
528
|
+
WhereDto,
|
|
529
|
+
IncludeSelectDto,
|
|
530
|
+
} from '@zola_do/collection-query/dtos';
|
|
531
|
+
```
|
|
532
|
+
|
|
515
533
|
## Troubleshooting
|
|
516
534
|
|
|
517
535
|
### Common Issues
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare class CollectionQueryDto {
|
|
2
|
+
select?: string[];
|
|
3
|
+
where?: WhereDto[][];
|
|
4
|
+
take?: number;
|
|
5
|
+
skip?: number;
|
|
6
|
+
cursor?: string;
|
|
7
|
+
cursorDirection?: 'n' | 'p' | 'next' | 'prev';
|
|
8
|
+
orderBy?: OrderDto[];
|
|
9
|
+
allowedFilterColumns?: string[];
|
|
10
|
+
allowedSortColumns?: string[];
|
|
11
|
+
maxIncludeDepth?: number;
|
|
12
|
+
stableSortColumn?: string;
|
|
13
|
+
includes?: string[];
|
|
14
|
+
includeAndSelect?: IncludeSelectDto[];
|
|
15
|
+
leftJoinAndMapOne?: any[];
|
|
16
|
+
groupBy?: string[];
|
|
17
|
+
having?: WhereDto[][];
|
|
18
|
+
count?: boolean;
|
|
19
|
+
fuzzySearch?: SearchDto[];
|
|
20
|
+
search?: SearchDto[];
|
|
21
|
+
}
|
|
22
|
+
export declare class SearchDto {
|
|
23
|
+
columns: string[];
|
|
24
|
+
value: string;
|
|
25
|
+
}
|
|
26
|
+
export declare class OrderDto {
|
|
27
|
+
column: string;
|
|
28
|
+
direction?: 'ASC' | 'DESC';
|
|
29
|
+
nulls?: 'NULLS FIRST' | 'NULLS LAST';
|
|
30
|
+
}
|
|
31
|
+
export declare class WhereDto {
|
|
32
|
+
column: string;
|
|
33
|
+
value: any;
|
|
34
|
+
operator: string;
|
|
35
|
+
}
|
|
36
|
+
export declare class IncludeSelectDto {
|
|
37
|
+
name: string;
|
|
38
|
+
select?: string[];
|
|
39
|
+
}
|
|
40
|
+
export { CollectionQueryDto as CollectionQuerySwaggerDto };
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CollectionQuerySwaggerDto = exports.IncludeSelectDto = exports.WhereDto = exports.OrderDto = exports.SearchDto = exports.CollectionQueryDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
const filter_operators_1 = require("./filter_operators");
|
|
17
|
+
class CollectionQueryDto {
|
|
18
|
+
constructor() {
|
|
19
|
+
this.select = [];
|
|
20
|
+
this.where = [];
|
|
21
|
+
this.orderBy = [];
|
|
22
|
+
this.includes = [];
|
|
23
|
+
this.includeAndSelect = [];
|
|
24
|
+
this.leftJoinAndMapOne = [];
|
|
25
|
+
this.groupBy = [];
|
|
26
|
+
this.having = [];
|
|
27
|
+
this.fuzzySearch = [];
|
|
28
|
+
this.search = [];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.CollectionQueryDto = CollectionQueryDto;
|
|
32
|
+
exports.CollectionQuerySwaggerDto = CollectionQueryDto;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)(),
|
|
35
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
(0, class_validator_1.IsArray)(),
|
|
38
|
+
__metadata("design:type", Array)
|
|
39
|
+
], CollectionQueryDto.prototype, "select", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, swagger_1.ApiProperty)(),
|
|
42
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
__metadata("design:type", Array)
|
|
45
|
+
], CollectionQueryDto.prototype, "where", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, swagger_1.ApiProperty)(),
|
|
48
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], CollectionQueryDto.prototype, "take", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiProperty)(),
|
|
54
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], CollectionQueryDto.prototype, "skip", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, swagger_1.ApiProperty)(),
|
|
60
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
(0, class_validator_1.IsString)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], CollectionQueryDto.prototype, "cursor", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, swagger_1.ApiProperty)(),
|
|
67
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_validator_1.IsEnum)(['n', 'p', 'next', 'prev'], {
|
|
70
|
+
message: 'cursorDirection must be one of n, p, next, prev',
|
|
71
|
+
}),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], CollectionQueryDto.prototype, "cursorDirection", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, swagger_1.ApiProperty)(),
|
|
76
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
77
|
+
(0, class_validator_1.IsOptional)(),
|
|
78
|
+
(0, class_validator_1.IsArray)(),
|
|
79
|
+
__metadata("design:type", Array)
|
|
80
|
+
], CollectionQueryDto.prototype, "orderBy", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, swagger_1.ApiProperty)(),
|
|
83
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
84
|
+
(0, class_validator_1.IsOptional)(),
|
|
85
|
+
(0, class_validator_1.IsArray)(),
|
|
86
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
87
|
+
__metadata("design:type", Array)
|
|
88
|
+
], CollectionQueryDto.prototype, "allowedFilterColumns", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, swagger_1.ApiProperty)(),
|
|
91
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
92
|
+
(0, class_validator_1.IsOptional)(),
|
|
93
|
+
(0, class_validator_1.IsArray)(),
|
|
94
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
95
|
+
__metadata("design:type", Array)
|
|
96
|
+
], CollectionQueryDto.prototype, "allowedSortColumns", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, swagger_1.ApiProperty)(),
|
|
99
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
100
|
+
(0, class_validator_1.IsOptional)(),
|
|
101
|
+
(0, class_validator_1.IsNumber)(),
|
|
102
|
+
__metadata("design:type", Number)
|
|
103
|
+
], CollectionQueryDto.prototype, "maxIncludeDepth", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, swagger_1.ApiProperty)(),
|
|
106
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
107
|
+
(0, class_validator_1.IsOptional)(),
|
|
108
|
+
(0, class_validator_1.IsString)(),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], CollectionQueryDto.prototype, "stableSortColumn", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, swagger_1.ApiProperty)(),
|
|
113
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
114
|
+
(0, class_validator_1.IsOptional)(),
|
|
115
|
+
(0, class_validator_1.IsArray)(),
|
|
116
|
+
__metadata("design:type", Array)
|
|
117
|
+
], CollectionQueryDto.prototype, "includes", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, swagger_1.ApiProperty)(),
|
|
120
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
121
|
+
(0, class_validator_1.IsOptional)(),
|
|
122
|
+
(0, class_validator_1.IsArray)(),
|
|
123
|
+
__metadata("design:type", Array)
|
|
124
|
+
], CollectionQueryDto.prototype, "includeAndSelect", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, swagger_1.ApiProperty)(),
|
|
127
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
128
|
+
(0, class_validator_1.IsOptional)(),
|
|
129
|
+
(0, class_validator_1.IsArray)(),
|
|
130
|
+
__metadata("design:type", Array)
|
|
131
|
+
], CollectionQueryDto.prototype, "leftJoinAndMapOne", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, swagger_1.ApiProperty)(),
|
|
134
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
135
|
+
(0, class_validator_1.IsOptional)(),
|
|
136
|
+
__metadata("design:type", Array)
|
|
137
|
+
], CollectionQueryDto.prototype, "groupBy", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, swagger_1.ApiProperty)(),
|
|
140
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
141
|
+
(0, class_validator_1.IsOptional)(),
|
|
142
|
+
__metadata("design:type", Array)
|
|
143
|
+
], CollectionQueryDto.prototype, "having", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, swagger_1.ApiProperty)(),
|
|
146
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
147
|
+
(0, class_validator_1.IsOptional)(),
|
|
148
|
+
(0, class_transformer_1.Transform)(({ value }) => value === 'true'),
|
|
149
|
+
(0, class_validator_1.IsBoolean)(),
|
|
150
|
+
__metadata("design:type", Boolean)
|
|
151
|
+
], CollectionQueryDto.prototype, "count", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, swagger_1.ApiProperty)(),
|
|
154
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
155
|
+
(0, class_validator_1.IsOptional)(),
|
|
156
|
+
(0, class_validator_1.IsArray)(),
|
|
157
|
+
__metadata("design:type", Array)
|
|
158
|
+
], CollectionQueryDto.prototype, "fuzzySearch", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, swagger_1.ApiProperty)(),
|
|
161
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
162
|
+
(0, class_validator_1.IsOptional)(),
|
|
163
|
+
(0, class_validator_1.IsArray)(),
|
|
164
|
+
__metadata("design:type", Array)
|
|
165
|
+
], CollectionQueryDto.prototype, "search", void 0);
|
|
166
|
+
class SearchDto {
|
|
167
|
+
constructor() {
|
|
168
|
+
this.columns = [];
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
exports.SearchDto = SearchDto;
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, swagger_1.ApiProperty)(),
|
|
174
|
+
(0, class_validator_1.IsArray)(),
|
|
175
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
176
|
+
__metadata("design:type", Array)
|
|
177
|
+
], SearchDto.prototype, "columns", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
(0, swagger_1.ApiProperty)(),
|
|
180
|
+
(0, class_validator_1.IsString)(),
|
|
181
|
+
__metadata("design:type", String)
|
|
182
|
+
], SearchDto.prototype, "value", void 0);
|
|
183
|
+
class OrderDto {
|
|
184
|
+
}
|
|
185
|
+
exports.OrderDto = OrderDto;
|
|
186
|
+
__decorate([
|
|
187
|
+
(0, swagger_1.ApiProperty)(),
|
|
188
|
+
(0, class_validator_1.IsString)(),
|
|
189
|
+
__metadata("design:type", String)
|
|
190
|
+
], OrderDto.prototype, "column", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
(0, swagger_1.ApiProperty)(),
|
|
193
|
+
(0, class_validator_1.IsEnum)(['ASC', 'DESC'], {
|
|
194
|
+
message: 'Direction must be either ASC or DESC',
|
|
195
|
+
}),
|
|
196
|
+
__metadata("design:type", String)
|
|
197
|
+
], OrderDto.prototype, "direction", void 0);
|
|
198
|
+
__decorate([
|
|
199
|
+
(0, class_validator_1.IsEnum)(['NULLS FIRST', 'NULLS LAST'], {
|
|
200
|
+
message: 'Null must be either FIRST or LAST',
|
|
201
|
+
}),
|
|
202
|
+
__metadata("design:type", String)
|
|
203
|
+
], OrderDto.prototype, "nulls", void 0);
|
|
204
|
+
class WhereDto {
|
|
205
|
+
}
|
|
206
|
+
exports.WhereDto = WhereDto;
|
|
207
|
+
__decorate([
|
|
208
|
+
(0, swagger_1.ApiProperty)(),
|
|
209
|
+
(0, class_validator_1.IsString)(),
|
|
210
|
+
__metadata("design:type", String)
|
|
211
|
+
], WhereDto.prototype, "column", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
(0, swagger_1.ApiProperty)(),
|
|
214
|
+
(0, class_validator_1.IsString)(),
|
|
215
|
+
__metadata("design:type", Object)
|
|
216
|
+
], WhereDto.prototype, "value", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
(0, class_validator_1.IsEnum)(filter_operators_1.FilterOperators, {
|
|
219
|
+
message: `Operator must be one of ${Object.keys(filter_operators_1.FilterOperators).toString()}`,
|
|
220
|
+
}),
|
|
221
|
+
__metadata("design:type", String)
|
|
222
|
+
], WhereDto.prototype, "operator", void 0);
|
|
223
|
+
class IncludeSelectDto {
|
|
224
|
+
}
|
|
225
|
+
exports.IncludeSelectDto = IncludeSelectDto;
|
|
226
|
+
__decorate([
|
|
227
|
+
(0, swagger_1.ApiProperty)({
|
|
228
|
+
description: 'The name of the relation to be joined.',
|
|
229
|
+
example: 'preBudgetPlans',
|
|
230
|
+
}),
|
|
231
|
+
(0, class_validator_1.IsString)(),
|
|
232
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
233
|
+
__metadata("design:type", String)
|
|
234
|
+
], IncludeSelectDto.prototype, "name", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
237
|
+
description: 'An array of specific field names to select from the relation.',
|
|
238
|
+
example: ['id', 'status'],
|
|
239
|
+
type: [String],
|
|
240
|
+
}),
|
|
241
|
+
(0, class_validator_1.IsOptional)(),
|
|
242
|
+
(0, class_validator_1.IsArray)(),
|
|
243
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
244
|
+
__metadata("design:type", Array)
|
|
245
|
+
], IncludeSelectDto.prototype, "select", void 0);
|
|
246
|
+
//# sourceMappingURL=query.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.dto.js","sourceRoot":"","sources":["../src/query.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AACzB,6CAAmE;AACnE,yDAA8C;AAC9C,yDAAqD;AAErD,MAAa,kBAAkB;IAA/B;QAKE,WAAM,GAAc,EAAE,CAAC;QAKvB,UAAK,GAAkB,EAAE,CAAC;QA8B1B,YAAO,GAAgB,EAAE,CAAC;QAgC1B,aAAQ,GAAc,EAAE,CAAC;QAMzB,qBAAgB,GAAwB,EAAE,CAAC;QAM3C,sBAAiB,GAAW,EAAE,CAAC;QAK/B,YAAO,GAAc,EAAE,CAAC;QAKxB,WAAM,GAAkB,EAAE,CAAC;QAa3B,gBAAW,GAAiB,EAAE,CAAC;QAM/B,WAAM,GAAiB,EAAE,CAAC;IAC5B,CAAC;CAAA;AAlHD,gDAkHC;AAqE8B,uDAAyB;AAlLtD;IAJC,IAAA,qBAAW,GAAE;IACb,IAAA,6BAAmB,GAAE;IACrB,IAA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,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;gDACP"}
|
package/dist/query.js
CHANGED
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.IncludeSelect = exports.Where = exports.Order = exports.Search = exports.CollectionQuery = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const filter_operators_1 = require("./filter_operators");
|
|
15
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
16
15
|
const class_transformer_1 = require("class-transformer");
|
|
17
16
|
class CollectionQuery {
|
|
18
17
|
constructor() {
|
|
@@ -30,40 +29,28 @@ class CollectionQuery {
|
|
|
30
29
|
}
|
|
31
30
|
exports.CollectionQuery = CollectionQuery;
|
|
32
31
|
__decorate([
|
|
33
|
-
(0, swagger_1.ApiProperty)(),
|
|
34
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
35
32
|
(0, class_validator_1.IsOptional)(),
|
|
36
33
|
(0, class_validator_1.IsArray)(),
|
|
37
34
|
__metadata("design:type", Array)
|
|
38
35
|
], CollectionQuery.prototype, "select", void 0);
|
|
39
36
|
__decorate([
|
|
40
|
-
(0, swagger_1.ApiProperty)(),
|
|
41
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
42
37
|
(0, class_validator_1.IsOptional)(),
|
|
43
38
|
__metadata("design:type", Array)
|
|
44
39
|
], CollectionQuery.prototype, "where", void 0);
|
|
45
40
|
__decorate([
|
|
46
|
-
(0, swagger_1.ApiProperty)(),
|
|
47
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
48
41
|
(0, class_validator_1.IsOptional)(),
|
|
49
42
|
__metadata("design:type", Number)
|
|
50
43
|
], CollectionQuery.prototype, "take", void 0);
|
|
51
44
|
__decorate([
|
|
52
|
-
(0, swagger_1.ApiProperty)(),
|
|
53
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
54
45
|
(0, class_validator_1.IsOptional)(),
|
|
55
46
|
__metadata("design:type", Number)
|
|
56
47
|
], CollectionQuery.prototype, "skip", void 0);
|
|
57
48
|
__decorate([
|
|
58
|
-
(0, swagger_1.ApiProperty)(),
|
|
59
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
60
49
|
(0, class_validator_1.IsOptional)(),
|
|
61
50
|
(0, class_validator_1.IsString)(),
|
|
62
51
|
__metadata("design:type", String)
|
|
63
52
|
], CollectionQuery.prototype, "cursor", void 0);
|
|
64
53
|
__decorate([
|
|
65
|
-
(0, swagger_1.ApiProperty)(),
|
|
66
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
67
54
|
(0, class_validator_1.IsOptional)(),
|
|
68
55
|
(0, class_validator_1.IsEnum)(['n', 'p', 'next', 'prev'], {
|
|
69
56
|
message: 'cursorDirection must be one of n, p, next, prev',
|
|
@@ -71,93 +58,67 @@ __decorate([
|
|
|
71
58
|
__metadata("design:type", String)
|
|
72
59
|
], CollectionQuery.prototype, "cursorDirection", void 0);
|
|
73
60
|
__decorate([
|
|
74
|
-
(0, swagger_1.ApiProperty)(),
|
|
75
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
76
61
|
(0, class_validator_1.IsOptional)(),
|
|
77
62
|
(0, class_validator_1.IsArray)(),
|
|
78
63
|
__metadata("design:type", Array)
|
|
79
64
|
], CollectionQuery.prototype, "orderBy", void 0);
|
|
80
65
|
__decorate([
|
|
81
|
-
(0, swagger_1.ApiProperty)(),
|
|
82
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
83
66
|
(0, class_validator_1.IsOptional)(),
|
|
84
67
|
(0, class_validator_1.IsArray)(),
|
|
85
68
|
(0, class_validator_1.IsString)({ each: true }),
|
|
86
69
|
__metadata("design:type", Array)
|
|
87
70
|
], CollectionQuery.prototype, "allowedFilterColumns", void 0);
|
|
88
71
|
__decorate([
|
|
89
|
-
(0, swagger_1.ApiProperty)(),
|
|
90
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
91
72
|
(0, class_validator_1.IsOptional)(),
|
|
92
73
|
(0, class_validator_1.IsArray)(),
|
|
93
74
|
(0, class_validator_1.IsString)({ each: true }),
|
|
94
75
|
__metadata("design:type", Array)
|
|
95
76
|
], CollectionQuery.prototype, "allowedSortColumns", void 0);
|
|
96
77
|
__decorate([
|
|
97
|
-
(0, swagger_1.ApiProperty)(),
|
|
98
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
99
78
|
(0, class_validator_1.IsOptional)(),
|
|
100
79
|
(0, class_validator_1.IsNumber)(),
|
|
101
80
|
__metadata("design:type", Number)
|
|
102
81
|
], CollectionQuery.prototype, "maxIncludeDepth", void 0);
|
|
103
82
|
__decorate([
|
|
104
|
-
(0, swagger_1.ApiProperty)(),
|
|
105
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
106
83
|
(0, class_validator_1.IsOptional)(),
|
|
107
84
|
(0, class_validator_1.IsString)(),
|
|
108
85
|
__metadata("design:type", String)
|
|
109
86
|
], CollectionQuery.prototype, "stableSortColumn", void 0);
|
|
110
87
|
__decorate([
|
|
111
|
-
(0, swagger_1.ApiProperty)(),
|
|
112
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
113
88
|
(0, class_validator_1.IsOptional)(),
|
|
114
89
|
(0, class_validator_1.IsArray)(),
|
|
115
90
|
__metadata("design:type", Array)
|
|
116
91
|
], CollectionQuery.prototype, "includes", void 0);
|
|
117
92
|
__decorate([
|
|
118
|
-
(0, swagger_1.ApiProperty)(),
|
|
119
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
120
93
|
(0, class_validator_1.IsOptional)(),
|
|
121
94
|
(0, class_validator_1.IsArray)(),
|
|
122
95
|
__metadata("design:type", Array)
|
|
123
96
|
], CollectionQuery.prototype, "includeAndSelect", void 0);
|
|
124
97
|
__decorate([
|
|
125
|
-
(0, swagger_1.ApiProperty)(),
|
|
126
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
127
98
|
(0, class_validator_1.IsOptional)(),
|
|
128
99
|
(0, class_validator_1.IsArray)(),
|
|
129
100
|
__metadata("design:type", Array)
|
|
130
101
|
], CollectionQuery.prototype, "leftJoinAndMapOne", void 0);
|
|
131
102
|
__decorate([
|
|
132
|
-
(0, swagger_1.ApiProperty)(),
|
|
133
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
134
103
|
(0, class_validator_1.IsOptional)(),
|
|
135
104
|
__metadata("design:type", Array)
|
|
136
105
|
], CollectionQuery.prototype, "groupBy", void 0);
|
|
137
106
|
__decorate([
|
|
138
|
-
(0, swagger_1.ApiProperty)(),
|
|
139
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
140
107
|
(0, class_validator_1.IsOptional)(),
|
|
141
108
|
__metadata("design:type", Array)
|
|
142
109
|
], CollectionQuery.prototype, "having", void 0);
|
|
143
110
|
__decorate([
|
|
144
|
-
(0, swagger_1.ApiProperty)(),
|
|
145
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
146
111
|
(0, class_validator_1.IsOptional)(),
|
|
147
112
|
(0, class_transformer_1.Transform)(({ value }) => value === 'true'),
|
|
148
113
|
(0, class_validator_1.IsBoolean)(),
|
|
149
114
|
__metadata("design:type", Boolean)
|
|
150
115
|
], CollectionQuery.prototype, "count", void 0);
|
|
151
116
|
__decorate([
|
|
152
|
-
(0, swagger_1.ApiProperty)(),
|
|
153
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
154
117
|
(0, class_validator_1.IsOptional)(),
|
|
155
118
|
(0, class_validator_1.IsArray)(),
|
|
156
119
|
__metadata("design:type", Array)
|
|
157
120
|
], CollectionQuery.prototype, "fuzzySearch", void 0);
|
|
158
121
|
__decorate([
|
|
159
|
-
(0, swagger_1.ApiProperty)(),
|
|
160
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
161
122
|
(0, class_validator_1.IsOptional)(),
|
|
162
123
|
(0, class_validator_1.IsArray)(),
|
|
163
124
|
__metadata("design:type", Array)
|
|
@@ -169,13 +130,11 @@ class Search {
|
|
|
169
130
|
}
|
|
170
131
|
exports.Search = Search;
|
|
171
132
|
__decorate([
|
|
172
|
-
(0, swagger_1.ApiProperty)(),
|
|
173
133
|
(0, class_validator_1.IsArray)(),
|
|
174
134
|
(0, class_validator_1.IsString)({ each: true }),
|
|
175
135
|
__metadata("design:type", Array)
|
|
176
136
|
], Search.prototype, "columns", void 0);
|
|
177
137
|
__decorate([
|
|
178
|
-
(0, swagger_1.ApiProperty)(),
|
|
179
138
|
(0, class_validator_1.IsString)(),
|
|
180
139
|
__metadata("design:type", String)
|
|
181
140
|
], Search.prototype, "value", void 0);
|
|
@@ -183,12 +142,10 @@ class Order {
|
|
|
183
142
|
}
|
|
184
143
|
exports.Order = Order;
|
|
185
144
|
__decorate([
|
|
186
|
-
(0, swagger_1.ApiProperty)(),
|
|
187
145
|
(0, class_validator_1.IsString)(),
|
|
188
146
|
__metadata("design:type", String)
|
|
189
147
|
], Order.prototype, "column", void 0);
|
|
190
148
|
__decorate([
|
|
191
|
-
(0, swagger_1.ApiProperty)(),
|
|
192
149
|
(0, class_validator_1.IsEnum)(['ASC', 'DESC'], {
|
|
193
150
|
message: 'Direction must be either ASC or DESC',
|
|
194
151
|
}),
|
|
@@ -204,12 +161,10 @@ class Where {
|
|
|
204
161
|
}
|
|
205
162
|
exports.Where = Where;
|
|
206
163
|
__decorate([
|
|
207
|
-
(0, swagger_1.ApiProperty)(),
|
|
208
164
|
(0, class_validator_1.IsString)(),
|
|
209
165
|
__metadata("design:type", String)
|
|
210
166
|
], Where.prototype, "column", void 0);
|
|
211
167
|
__decorate([
|
|
212
|
-
(0, swagger_1.ApiProperty)(),
|
|
213
168
|
(0, class_validator_1.IsString)(),
|
|
214
169
|
__metadata("design:type", Object)
|
|
215
170
|
], Where.prototype, "value", void 0);
|
|
@@ -223,20 +178,11 @@ class IncludeSelect {
|
|
|
223
178
|
}
|
|
224
179
|
exports.IncludeSelect = IncludeSelect;
|
|
225
180
|
__decorate([
|
|
226
|
-
(0, swagger_1.ApiProperty)({
|
|
227
|
-
description: 'The name of the relation to be joined.',
|
|
228
|
-
example: 'preBudgetPlans',
|
|
229
|
-
}),
|
|
230
181
|
(0, class_validator_1.IsString)(),
|
|
231
182
|
(0, class_validator_1.IsNotEmpty)(),
|
|
232
183
|
__metadata("design:type", String)
|
|
233
184
|
], IncludeSelect.prototype, "name", void 0);
|
|
234
185
|
__decorate([
|
|
235
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
236
|
-
description: 'An array of specific field names to select from the relation.',
|
|
237
|
-
example: ['id', 'status'],
|
|
238
|
-
type: [String],
|
|
239
|
-
}),
|
|
240
186
|
(0, class_validator_1.IsOptional)(),
|
|
241
187
|
(0, class_validator_1.IsArray)(),
|
|
242
188
|
(0, class_validator_1.IsString)({ each: true }),
|
package/dist/query.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../src/query.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AACzB,yDAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../src/query.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AACzB,yDAAqD;AACrD,yDAA8C;AAE9C,MAAa,eAAe;IAA5B;QAIE,WAAM,GAAc,EAAE,CAAC;QAIvB,UAAK,GAAe,EAAE,CAAC;QA4BvB,YAAO,GAAa,EAAE,CAAC;QA8BvB,aAAQ,GAAc,EAAE,CAAC;QAIzB,qBAAgB,GAAqB,EAAE,CAAC;QAWxC,sBAAiB,GAAW,EAAE,CAAC;QAG/B,YAAO,GAAc,EAAE,CAAC;QAIxB,WAAM,GAAe,EAAE,CAAC;QAYxB,gBAAW,GAAc,EAAE,CAAC;QAI5B,WAAM,GAAc,EAAE,CAAC;IACzB,CAAC;CAAA;AAzGD,0CAyGC;AArGC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;+CAEa;AAIvB;IAFC,IAAA,4BAAU,GAAE;;8C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"0.2.
|
|
3
|
+
"version": "0.2.17",
|
|
4
4
|
"description": "TypeORM query builder for filter, sort, paginate",
|
|
5
5
|
"author": "zolaDO",
|
|
6
6
|
"license": "ISC",
|
|
@@ -38,6 +38,11 @@
|
|
|
38
38
|
"types": "./dist/query-mapper.d.ts",
|
|
39
39
|
"require": "./dist/query-mapper.js",
|
|
40
40
|
"default": "./dist/query-mapper.js"
|
|
41
|
+
},
|
|
42
|
+
"./dtos": {
|
|
43
|
+
"types": "./dist/query.dto.d.ts",
|
|
44
|
+
"require": "./dist/query.dto.js",
|
|
45
|
+
"default": "./dist/query.dto.js"
|
|
41
46
|
}
|
|
42
47
|
},
|
|
43
48
|
"files": [
|