@ptc-org/nestjs-query-sequelize 1.0.0-alpha.1 → 2.0.0-alpha.1
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 +8 -7
- package/package.json +4 -4
- package/src/index.d.ts +2 -0
- package/src/index.js +3 -3
- package/src/index.js.map +1 -0
- package/src/module.d.ts +5 -0
- package/src/module.js +19 -0
- package/src/module.js.map +1 -0
- package/src/providers.d.ts +3 -0
- package/src/providers.js +21 -0
- package/src/providers.js.map +1 -0
- package/src/query/aggregate.builder.d.ts +19 -0
- package/src/query/aggregate.builder.js +87 -0
- package/src/query/aggregate.builder.js.map +1 -0
- package/src/query/filter-query.builder.d.ts +96 -0
- package/src/query/filter-query.builder.js +203 -0
- package/src/query/filter-query.builder.js.map +1 -0
- package/src/query/index.d.ts +4 -0
- package/src/query/index.js +8 -0
- package/src/query/index.js.map +1 -0
- package/src/query/sql-comparison.builder.d.ts +26 -0
- package/src/query/sql-comparison.builder.js +74 -0
- package/src/query/sql-comparison.builder.js.map +1 -0
- package/src/query/where.builder.d.ts +24 -0
- package/src/query/where.builder.js +81 -0
- package/src/query/where.builder.js.map +1 -0
- package/src/services/index.d.ts +1 -0
- package/src/services/index.js +5 -0
- package/src/services/index.js.map +1 -0
- package/src/services/relation-query.service.d.ts +119 -0
- package/src/services/relation-query.service.js +234 -0
- package/src/services/relation-query.service.js.map +1 -0
- package/src/services/sequelize-query.service.d.ts +147 -0
- package/src/services/sequelize-query.service.js +239 -0
- package/src/services/sequelize-query.service.js.map +1 -0
- package/CHANGELOG.md +0 -426
package/CHANGELOG.md
DELETED
|
@@ -1,426 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
# [0.30.0](https://github.com/tripss/nestjs-query/compare/v0.29.0...v0.30.0) (2021-09-30)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# [0.29.0](https://github.com/tripss/nestjs-query/compare/v0.28.1...v0.29.0) (2021-09-09)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## [0.28.1](https://github.com/tripss/nestjs-query/compare/v0.28.0...v0.28.1) (2021-07-27)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
# [0.28.0](https://github.com/tripss/nestjs-query/compare/v0.27.0...v0.28.0) (2021-07-19)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
# [0.27.0](https://github.com/tripss/nestjs-query/compare/v0.26.0...v0.27.0) (2021-05-12)
|
|
39
|
-
|
|
40
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
# [0.26.0](https://github.com/tripss/nestjs-query/compare/v0.25.1...v0.26.0) (2021-04-13)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
### Features
|
|
50
|
-
|
|
51
|
-
* **sequelize:** Implement `setRelations` to set many relations ([b0c2d2f](https://github.com/tripss/nestjs-query/commit/b0c2d2f419ba2782f6b6e1290548cc8bf2afc699))
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
## [0.25.1](https://github.com/tripss/nestjs-query/compare/v0.25.0...v0.25.1) (2021-04-07)
|
|
58
|
-
|
|
59
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
# [0.25.0](https://github.com/tripss/nestjs-query/compare/v0.24.5...v0.25.0) (2021-03-31)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
### Bug Fixes
|
|
69
|
-
|
|
70
|
-
* Add consistent sorting for aggregate queries ([4ac7a14](https://github.com/tripss/nestjs-query/commit/4ac7a1485c7dcd83569951298606f487608806b1))
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
### Features
|
|
74
|
-
|
|
75
|
-
* **sequelize:** Update to support new aggregate with groupBy ([81fdef1](https://github.com/tripss/nestjs-query/commit/81fdef17304ad28a043f6a8e9a9496158e61022e))
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
## [0.24.5](https://github.com/tripss/nestjs-query/compare/v0.24.4...v0.24.5) (2021-03-19)
|
|
82
|
-
|
|
83
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
## [0.24.4](https://github.com/tripss/nestjs-query/compare/v0.24.3...v0.24.4) (2021-03-18)
|
|
90
|
-
|
|
91
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
# [0.24.0](https://github.com/tripss/nestjs-query/compare/v0.23.1...v0.24.0) (2021-03-15)
|
|
98
|
-
|
|
99
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
# [0.23.0](https://github.com/tripss/nestjs-query/compare/v0.22.0...v0.23.0) (2021-02-26)
|
|
106
|
-
|
|
107
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
# [0.22.0](https://github.com/tripss/nestjs-query/compare/v0.21.2...v0.22.0) (2021-02-08)
|
|
114
|
-
|
|
115
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
## [0.21.2](https://github.com/tripss/nestjs-query/compare/v0.21.1...v0.21.2) (2020-10-23)
|
|
122
|
-
|
|
123
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
# [0.21.0](https://github.com/tripss/nestjs-query/compare/v0.20.2...v0.21.0) (2020-10-16)
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
### Bug Fixes
|
|
133
|
-
|
|
134
|
-
* **eslint:** Fix eslint to recognize sub packages ([13fdd2b](https://github.com/tripss/nestjs-query/commit/13fdd2b31289dbc80316cbdb5aa32edbe596bad4))
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
## [0.20.2](https://github.com/tripss/nestjs-query/compare/v0.20.1...v0.20.2) (2020-10-01)
|
|
141
|
-
|
|
142
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
## [0.20.1](https://github.com/tripss/nestjs-query/compare/v0.20.0...v0.20.1) (2020-09-28)
|
|
149
|
-
|
|
150
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
# [0.20.0](https://github.com/tripss/nestjs-query/compare/v0.19.4...v0.20.0) (2020-09-17)
|
|
157
|
-
|
|
158
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
## [0.19.4](https://github.com/tripss/nestjs-query/compare/v0.19.3...v0.19.4) (2020-09-15)
|
|
165
|
-
|
|
166
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
## [0.19.3](https://github.com/tripss/nestjs-query/compare/v0.19.2...v0.19.3) (2020-09-09)
|
|
173
|
-
|
|
174
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
## [0.19.2](https://github.com/tripss/nestjs-query/compare/v0.19.1...v0.19.2) (2020-09-03)
|
|
181
|
-
|
|
182
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
# [0.19.0](https://github.com/tripss/nestjs-query/compare/v0.18.1...v0.19.0) (2020-09-01)
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
### Features
|
|
192
|
-
|
|
193
|
-
* **sequelize:** Add additional filter options to QueryService ([29fdfa7](https://github.com/tripss/nestjs-query/commit/29fdfa724ec199835a6493b5f9cccb6bec58f074))
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
## [0.18.1](https://github.com/tripss/nestjs-query/compare/v0.18.0...v0.18.1) (2020-08-14)
|
|
200
|
-
|
|
201
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
# [0.18.0](https://github.com/tripss/nestjs-query/compare/v0.17.10...v0.18.0) (2020-08-11)
|
|
208
|
-
|
|
209
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
## [0.17.10](https://github.com/tripss/nestjs-query/compare/v0.17.9...v0.17.10) (2020-08-01)
|
|
216
|
-
|
|
217
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
## [0.17.8](https://github.com/tripss/nestjs-query/compare/v0.17.7...v0.17.8) (2020-07-28)
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
### Features
|
|
227
|
-
|
|
228
|
-
* **graphql:** Allow specifying allowed comparisons on filterable fields ([ced2792](https://github.com/tripss/nestjs-query/commit/ced27920e5c2278c2a04c027a692e25b3306f6cb))
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
## [0.17.7](https://github.com/tripss/nestjs-query/compare/v0.17.6...v0.17.7) (2020-07-27)
|
|
235
|
-
|
|
236
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
## [0.17.2](https://github.com/tripss/nestjs-query/compare/v0.17.1...v0.17.2) (2020-07-17)
|
|
243
|
-
|
|
244
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
# [0.17.0](https://github.com/tripss/nestjs-query/compare/v0.16.2...v0.17.0) (2020-07-16)
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
### Features
|
|
254
|
-
|
|
255
|
-
* **aggregations:** Add aggregation support to sequelize ([c37b7ae](https://github.com/tripss/nestjs-query/commit/c37b7aeb00fc60e7dc55893fe712dcad454edddb))
|
|
256
|
-
* **aggregations:** Add aggregations to graphql ([af075d2](https://github.com/tripss/nestjs-query/commit/af075d2e93b6abbbfbe32afcc917350f803fadaa))
|
|
257
|
-
* **aggregations,sequelize:** Add relation aggregation to sequelize ([93e7c1b](https://github.com/tripss/nestjs-query/commit/93e7c1ba3d03b222b08f39bbbfaf4365ce50204e))
|
|
258
|
-
* **aggregations,sequelize:** Fix aggregation on many-to-many relations ([db6ecb2](https://github.com/tripss/nestjs-query/commit/db6ecb2527a96ba232c8af911e4eb2f6ab9f8a65))
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
## [0.16.2](https://github.com/tripss/nestjs-query/compare/v0.16.1...v0.16.2) (2020-07-09)
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
### Bug Fixes
|
|
268
|
-
|
|
269
|
-
* **imports:** Remove additional /src references ([9528772](https://github.com/tripss/nestjs-query/commit/9528772fd4f9b4448112d912e913d07fddf4b619))
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
# [0.16.0](https://github.com/tripss/nestjs-query/compare/v0.15.1...v0.16.0) (2020-07-05)
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
### Bug Fixes
|
|
279
|
-
|
|
280
|
-
* **sequelize:** Change query to not use sub queries ([80c69d6](https://github.com/tripss/nestjs-query/commit/80c69d6b285725eb99dc05675044185d2f4343a8))
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
### Features
|
|
284
|
-
|
|
285
|
-
* **sequelize:** Add support for querying for nested relations ([92a51c1](https://github.com/tripss/nestjs-query/commit/92a51c120aa2bf6da915037628aad041fa0fc34c))
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
## [0.15.1](https://github.com/tripss/nestjs-query/compare/v0.15.0...v0.15.1) (2020-06-27)
|
|
292
|
-
|
|
293
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
# [0.15.0](https://github.com/tripss/nestjs-query/compare/v0.14.3...v0.15.0) (2020-06-23)
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
### Features
|
|
303
|
-
|
|
304
|
-
* **graphql,connection:** Add totalCount to connections ([ed1e84a](https://github.com/tripss/nestjs-query/commit/ed1e84a2feb6f89c3b270fcbc1d0eaf6aec5e575))
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
# [0.14.0](https://github.com/tripss/nestjs-query/compare/v0.13.2...v0.14.0) (2020-06-18)
|
|
311
|
-
|
|
312
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
# [0.13.0](https://github.com/tripss/nestjs-query/compare/v0.12.0...v0.13.0) (2020-06-12)
|
|
319
|
-
|
|
320
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
# [0.12.0](https://github.com/tripss/nestjs-query/compare/v0.11.8...v0.12.0) (2020-06-07)
|
|
327
|
-
|
|
328
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
## [0.11.8](https://github.com/tripss/nestjs-query/compare/v0.11.7...v0.11.8) (2020-05-30)
|
|
335
|
-
|
|
336
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
## [0.11.7](https://github.com/tripss/nestjs-query/compare/v0.11.6...v0.11.7) (2020-05-29)
|
|
343
|
-
|
|
344
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
## [0.11.6](https://github.com/tripss/nestjs-query/compare/v0.11.5...v0.11.6) (2020-05-26)
|
|
351
|
-
|
|
352
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
## [0.11.5](https://github.com/tripss/nestjs-query/compare/v0.11.4...v0.11.5) (2020-05-21)
|
|
359
|
-
|
|
360
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
## [0.11.4](https://github.com/tripss/nestjs-query/compare/v0.11.3...v0.11.4) (2020-05-19)
|
|
367
|
-
|
|
368
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
## [0.11.3](https://github.com/tripss/nestjs-query/compare/v0.11.2...v0.11.3) (2020-05-16)
|
|
375
|
-
|
|
376
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
## [0.11.2](https://github.com/tripss/nestjs-query/compare/v0.11.1...v0.11.2) (2020-05-14)
|
|
383
|
-
|
|
384
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
## [0.11.1](https://github.com/tripss/nestjs-query/compare/v0.11.0...v0.11.1) (2020-05-11)
|
|
391
|
-
|
|
392
|
-
**Note:** Version bump only for package @ptc-org/nestjs-query-sequelize
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
# [0.11.0](https://github.com/tripss/nestjs-query/compare/v0.10.2...v0.11.0) (2020-05-09)
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
### Features
|
|
402
|
-
|
|
403
|
-
* **graphql:** Add graphql module ([282c421](https://github.com/tripss/nestjs-query/commit/282c421d0e6f67fe750fa6005f6cb7d960c8fbd0))
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
## [0.10.2](https://github.com/tripss/nestjs-query/compare/v0.10.1...v0.10.2) (2020-05-04)
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
### Bug Fixes
|
|
413
|
-
|
|
414
|
-
* **sequelize:** Update sequelize package deps to match hoisted ([c7f5190](https://github.com/tripss/nestjs-query/commit/c7f5190ad1ae3d099cf9709eee36da188a455d13))
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
# [0.10.0](https://github.com/tripss/nestjs-query/compare/v0.9.0...v0.10.0) (2020-04-29)
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
### Features
|
|
424
|
-
|
|
425
|
-
* **sequelize:** Initial Sequelize support ([bfcf436](https://github.com/tripss/nestjs-query/commit/bfcf4368b96617113c0334cd78a8881e4952eb99))
|
|
426
|
-
* **sequelize:** More clean up of code ([a72bce5](https://github.com/tripss/nestjs-query/commit/a72bce583862ed1902ee81974d7b530e7caac4d1))
|