@clairejs/server 3.6.6 → 3.6.9

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.
Files changed (69) hide show
  1. package/.prettierrc +8 -8
  2. package/README.md +672 -670
  3. package/dist/common/FileOperation.d.ts +5 -5
  4. package/dist/common/ServerModelMetadata.d.ts +10 -10
  5. package/dist/common/auth/AbstractPrincipalResolver.d.ts +4 -4
  6. package/dist/common/auth/IPrincipal.d.ts +4 -4
  7. package/dist/common/constants.d.ts +1 -1
  8. package/dist/common/request/EndpointMetadata.d.ts +40 -40
  9. package/dist/common/request/HttpData.d.ts +1 -1
  10. package/dist/common/request/HttpEndpoint.d.ts +8 -8
  11. package/dist/common/request/JobData.d.ts +1 -1
  12. package/dist/common/request/MountedEndpointInfo.d.ts +6 -6
  13. package/dist/common/request/RequestOptions.d.ts +6 -6
  14. package/dist/common/request/SocketData.d.ts +1 -1
  15. package/dist/common/request/types.d.ts +1 -1
  16. package/dist/http/auth/AbstractHttpAuthorizationProvider.d.ts +9 -9
  17. package/dist/http/auth/AbstractRbacAuthProvider.d.ts +18 -18
  18. package/dist/http/auth/RedisRbacAuthProvider.d.ts +23 -23
  19. package/dist/http/auth/SocketRbacAuthProvider.d.ts +25 -25
  20. package/dist/http/auth/rbac.d.ts +34 -34
  21. package/dist/http/common/HttpRequest.d.ts +37 -37
  22. package/dist/http/common/HttpResponse.d.ts +25 -25
  23. package/dist/http/controller/AbstractHttpController.d.ts +9 -9
  24. package/dist/http/controller/AbstractHttpMiddleware.d.ts +5 -5
  25. package/dist/http/controller/AbstractHttpRequestHandler.d.ts +16 -16
  26. package/dist/http/controller/ControllerMetadata.d.ts +6 -6
  27. package/dist/http/controller/CrudHttpController.d.ts +55 -55
  28. package/dist/http/controller/DefaultHttpRequestHandler.d.ts +19 -19
  29. package/dist/http/decorators.d.ts +32 -32
  30. package/dist/http/file-upload/AbstractFileUploadHandler.d.ts +6 -6
  31. package/dist/http/file-upload/FileUploadHandler.d.ts +10 -10
  32. package/dist/http/file-upload/types.d.ts +3 -3
  33. package/dist/http/repository/AbstractRepository.d.ts +10 -10
  34. package/dist/http/repository/DtoRepository.d.ts +58 -58
  35. package/dist/http/repository/ICrudRepository.d.ts +27 -27
  36. package/dist/http/repository/ModelRepository.d.ts +37 -37
  37. package/dist/http/security/AbstractAccessCondition.d.ts +7 -7
  38. package/dist/http/security/access-conditions/DtoFieldValidation.d.ts +4 -4
  39. package/dist/http/security/access-conditions/FilterModelFieldAccessCondition.d.ts +4 -4
  40. package/dist/http/security/access-conditions/MaximumQueryLimit.d.ts +8 -8
  41. package/dist/index.d.ts +55 -55
  42. package/dist/index.js +1 -1
  43. package/dist/job/AbstractJobController.d.ts +4 -4
  44. package/dist/job/AbstractJobExecutor.d.ts +10 -10
  45. package/dist/job/AbstractJobScheduler.d.ts +8 -8
  46. package/dist/job/AwsJobExecutor.d.ts +8 -8
  47. package/dist/job/AwsJobScheduler.d.ts +5 -5
  48. package/dist/job/LocalJobExecutor.d.ts +8 -8
  49. package/dist/job/LocalJobScheduler.d.ts +21 -21
  50. package/dist/job/decorators.d.ts +4 -4
  51. package/dist/job/interfaces.d.ts +16 -16
  52. package/dist/logging/FileLogMedium.d.ts +13 -13
  53. package/dist/service/AbstractCacheService.d.ts +22 -22
  54. package/dist/service/AbstractFileService.d.ts +8 -8
  55. package/dist/service/AbstractService.d.ts +7 -7
  56. package/dist/socket/AbstractServerSocket.d.ts +19 -19
  57. package/dist/socket/AbstractServerSocketManager.d.ts +44 -44
  58. package/dist/socket/AbstractSocketConnectionHandler.d.ts +6 -6
  59. package/dist/socket/AbstractSocketController.d.ts +14 -14
  60. package/dist/socket/AwsSocketManager.d.ts +31 -31
  61. package/dist/socket/IServerSocket.d.ts +16 -16
  62. package/dist/socket/LocalSocketManager.d.ts +48 -48
  63. package/dist/system/ClaireServer.d.ts +13 -13
  64. package/dist/system/ExpressWrapper.d.ts +17 -17
  65. package/dist/system/LambdaWrapper.d.ts +19 -19
  66. package/dist/system/ServerGlobalStore.d.ts +5 -5
  67. package/dist/system/errors.d.ts +14 -14
  68. package/dist/system/lamba-request-mapper.d.ts +12 -12
  69. package/package.json +59 -59
package/README.md CHANGED
@@ -1,670 +1,672 @@
1
- ## Change Log
2
-
3
- #### 3.6.6
4
-
5
- - fix AwsSocketManager not remove socket from channel after disconnection
6
- - support @HasOne for Crud controller
7
- - fix nested queries for ModelRepository
8
-
9
- #### 3.6.3
10
-
11
- - fix onChannelConnected cannot send back data to socket (because socket was not yet added to channel and old instance was used)
12
- - add READY socket message
13
-
14
- #### 3.6.0
15
-
16
- - move database to @clairejs/orm package. Bye bye...
17
-
18
- #### 3.5.4
19
-
20
- - fix aws get socket by id
21
- - send error when close socket
22
- - remove constructor dependency of socket connection handler in socket managers
23
-
24
- #### 3.5.0
25
-
26
- - use ioredis instead of redis (for redlock to work)
27
- - update job interfaces
28
- - adapt socket managers to use ioredis
29
-
30
- #### 3.4.0
31
-
32
- - add job related classes
33
-
34
- #### 3.3.27
35
-
36
- - add random order
37
- - add \_nin operator
38
-
39
- #### 3.3.26
40
-
41
- - remove socket if authentication failed for aws socket manager
42
- - fix lambda request mapper
43
- - fix Express parse Api gateway query for socket connection
44
- - add debug log
45
- - refactor principal data resolver for socket manager
46
-
47
- #### 3.3.19
48
-
49
- - ExpressWrapper don't send response for gateway socket integration (except for connection request)
50
- - fix ExpressWrapper handle APi gateway socket message data
51
- - fix LocalSocketManager get socket by id
52
- - fix auth resolver typing
53
- - fix socket data parsing problem
54
- - fix local socket manager subscribe
55
- - update redis client to v4
56
-
57
- #### 3.3.10
58
-
59
- - fix LambdaWrapper receive ClaireApp factory
60
- - socket pong return original data
61
- - fix ModelRepository getNestedQueries
62
- - add ops to ICrudRepository
63
-
64
- #### 3.3.5
65
-
66
- - fix socket auth provider
67
- - add getSocketsByChannels
68
- - fix express server exit close connection
69
- - update socket manager to support multiple instances
70
-
71
- #### 3.2.8
72
-
73
- - fix CrudHttpController condition check for update body
74
-
75
- #### 3.2.6
76
-
77
- - add cache to RedisRbacAuthProvider
78
-
79
- #### 3.2.5
80
-
81
- - add TfaRequired() decorator and hasTfa to IPrincipal
82
- - abstract DefaultHttpRequestHandler accessControl
83
-
84
- #### 3.2.4
85
-
86
- - IPrincipal id to be any
87
-
88
- #### 3.2.3
89
-
90
- - simplify dto dissolver interface
91
- - introduce DtoRepository
92
-
93
- #### 3.2.0
94
-
95
- - introduce ICrudRepository
96
- - CrudHttpController now requires param of ICrudRepository
97
-
98
- #### 3.1.16
99
-
100
- - fix uri mapper in CRUD update request
101
-
102
- #### 3.1.15
103
-
104
- - re-implement @CurrentUser decorator
105
-
106
- #### 3.1.14
107
-
108
- - fix UriMapper & UriMapperHandler types
109
-
110
- #### 3.1.13
111
-
112
- - provide IQueryProvider to uriMapper, move uriMapper to server logic
113
- - provide tmpUri to uriMapper in ModelRepository
114
-
115
- #### 3.1.11
116
-
117
- - fix CrudHttpController missing description
118
- - fix projection query data type
119
-
120
- #### 3.1.9
121
-
122
- - strip response data if responseDto is present
123
-
124
- #### 3.1.8
125
-
126
- - return 401 http code if not auth throw
127
-
128
- #### 3.1.7
129
-
130
- - fix CrudHtppController merge wrong endpoint
131
-
132
- #### 3.1.5
133
-
134
- - fix aws socket manager parse null redis
135
-
136
- #### 3.1.4
137
-
138
- - abstract file service and cache service does not extends AbstractService anymore
139
- - fix abstract file service
140
-
141
- #### 3.1.2
142
-
143
- - fix server socket sending incorrect plain message
144
-
145
- #### 3.1.1
146
-
147
- - fix server socket
148
- - add permission conditions to CrudHttpController
149
- - add abstract services
150
- - add FileUploadHandler
151
- - add Abstract RbacAuthProvider, Redis & Cache Rbac Auth Provider
152
- - add rbac dto
153
- - add MaximumQueryLimit & DtoFieldValidation conditions
154
-
155
- #### 3.0.36
156
-
157
- - fix crud controller metadata
158
-
159
- #### 3.0.33
160
-
161
- - add @ApiDescription
162
- - add CrudHttpController metadata description
163
-
164
- #### 3.0.30
165
-
166
- - fix objectTypeConstructor
167
-
168
- #### 3.0.29:
169
-
170
- - @Socket -> @Message
171
- - use @Socket to get socket injection in controller method
172
-
173
- #### 3.0.26:
174
-
175
- - add error log in http request handler
176
-
177
- #### 3.0.25:
178
-
179
- - add null search in vector
180
- - support array search for isSymbol field
181
-
182
- #### 3.0.22:
183
-
184
- - fix timestamp field
185
-
186
- #### 3.0.19:
187
-
188
- - fix error throw in transactional
189
-
190
- #### 3.0.18:
191
-
192
- - fix not escape search value
193
- - fix accent & sensitive search in Mysql and Postgres
194
-
195
- #### 3.0.15:
196
-
197
- - require injection of database adapter in AbstractSerivce & AbstractHttpController
198
-
199
- #### 3.0.14:
200
-
201
- - add getById and getByIds to IQuery
202
-
203
- #### 3.0.12:
204
-
205
- - fix error return
206
-
207
- #### 3.0.10:
208
-
209
- - remove count query when getOne
210
-
211
- #### 3.0.8:
212
-
213
- - freeze table name in join clause
214
-
215
- #### 3.0.6:
216
-
217
- - fix index export
218
- - fix AbstractAccessCondition signature
219
-
220
- #### 3.0.5:
221
-
222
- - tested on Postgres & MySql
223
- - add join ability to IQuery, awesome!!
224
-
225
- #### 3.0.3: http method decorator return type check
226
-
227
- - add @ApiResponse decorator to store response body validator
228
- - add TypedPropertyDescriptor in HTTP method decorator to validate function return type (Promise<HttpResponse<any>>>)
229
-
230
- #### 3.0.2: improve http response
231
-
232
- - add binary response
233
-
234
- #### 3.0.0:
235
-
236
- - update claire core 3.0
237
- - controller function param decorators
238
- - ResponseBuilder
239
- - remove ops in getMany
240
-
241
- #### 2.3.13:
242
-
243
- - update raw query function signature
244
-
245
- #### 2.3.12:
246
-
247
- - fix & export CrudService
248
-
249
- #### 2.3.10:
250
-
251
- - Array & Object model field persist & parse
252
-
253
- #### 2.3.9:
254
-
255
- - @TextField will default to Sequelize.TEXT if length is not specified
256
-
257
- #### 2.3.6:
258
-
259
- - fix missing beforeCreate call when update nesting
260
-
261
- #### 2.3.1:
262
-
263
- - fix returning nested uris
264
-
265
- #### 2.3.0:
266
-
267
- - introduce CrudService
268
- - CrudHttpController support @HasMany
269
-
270
- #### 2.2.12:
271
-
272
- - fix isIntegral default
273
-
274
- #### 2.2.10:
275
-
276
- - update `CrudHttpController` Update and Delete to return `Partial<T>`
277
-
278
- #### 2.2.2:
279
-
280
- - fix `@CurrentUser` decorator
281
- - implement `@CurrentUser` decorator
282
-
283
- #### 2.2.0:
284
-
285
- - add `AbstractFileUploadHandler` and handle file upload in `CrudHttpController`
286
- - fix migration contraint remove order
287
-
288
- #### 2.1.20:
289
-
290
- - extends IPrincipal
291
-
292
- #### 2.1.19:
293
-
294
- - fix crud http controller not init database adapter
295
-
296
- #### 2.1.18:
297
-
298
- - downgrade webpack
299
-
300
- #### 2.1.16:
301
-
302
- - add pg-hstore
303
-
304
- #### 2.1.15:
305
-
306
- - add optional injection for socket manager
307
-
308
- #### 2.1.14:
309
-
310
- - AwsSocketManger needs always to be fed by JSON object
311
-
312
- #### 2.1.13:
313
-
314
- - correct json parsing when hanling aws socket message
315
-
316
- #### 2.1.11:
317
-
318
- - adjust getMany and getRecords to return Pick type based on projection
319
- - add getRecords for IQuery to return just the records
320
-
321
- #### 2.1.9:
322
-
323
- - fix CrudHttpController updateMany FilterField condition check
324
-
325
- #### 2.1.8:
326
-
327
- - fix server socket remove not delete its redis info
328
- - add socket created timestamp info
329
- - add get all alive sockets to remove stale sockets in server
330
-
331
- #### 2.1.5:
332
-
333
- - support model defualt value in db migrator & adapter
334
-
335
- #### 2.1.3:
336
-
337
- - add test for cascade delete
338
-
339
- #### 2.1.2:
340
-
341
- - update claire core
342
- - fix converting QueryCondition use "and" as default operator
343
-
344
- #### 2.1.1:
345
-
346
- - update claire core
347
- - update implementation of FileLogMedium
348
-
349
- #### 2.0.26:
350
-
351
- - parse client socket data
352
- - add more debug log
353
- - fix ExpressWrapper AWS GW socket http integration
354
-
355
- #### 2.0.17:
356
-
357
- - add AWS API GW socket request parser for express
358
-
359
- #### 2.0.16:
360
-
361
- - add log to http request handler
362
- - refactor to allow AwsSocketManager to be used with ExpressWrapper
363
-
364
- #### 2.0.14:
365
-
366
- - fix express socket unique id
367
-
368
- #### 2.0.13:
369
-
370
- - update error code from claire core
371
-
372
- #### 2.0.12:
373
-
374
- - export Get, Post, Put, Del decorators
375
-
376
- #### 2.0.11:
377
-
378
- - add log in http request handler
379
- - fix AbstractAccessCondition signature
380
-
381
- #### 2.0.9:
382
-
383
- - fix AccessCondition (to use injection)
384
- - fix ExpressWrapper & LambdaWrapper to resolve AbstractServerSocketManager
385
- - remove getMountedEndpointInfo from AbstractHttpRequestHandler, move to ServerGlobalStore
386
- - fix property assignment in isolated transactional object
387
- - add log for AwsSocketManager, fix connection problem to redis
388
-
389
- #### 2.0.1:
390
-
391
- - fix some import redundancies
392
-
393
- #### 2.0.0:
394
-
395
- - Upgrade with claire core 2.0.0
396
-
397
- #### 1.6.4:
398
-
399
- - Add pong socket response
400
-
401
- #### 1.6.3:
402
-
403
- - AbstractDatabaseMigrator: supply migration directory to migrate and rollback functions
404
- - fix migrator cli path
405
-
406
- #### 1.6.1:
407
-
408
- - AbstractPrincipal -> IPrincipal (for serialization)
409
-
410
- #### 1.5.51:
411
-
412
- - fix AwsSocketManager not release redis connection, add more log
413
- - fix ExpressWrapper unhandled socket promise exception
414
-
415
- #### 1.5.39 (Breaking change):
416
-
417
- - fix properties null check
418
- - socket multiplex
419
-
420
- #### 1.5.28:
421
-
422
- - fix server socket authId => authInfo
423
-
424
- #### 1.5.26:
425
-
426
- - add OwnedResourceAccessCondition
427
-
428
- #### 1.5.24:
429
-
430
- - replace HttpRequest.getPrincipalId by HttpRequest.getAuthInfo
431
-
432
- #### 1.5.23:
433
-
434
- - fix ServerSocket
435
- - fix not remove disconnect socket from socket manager
436
-
437
- #### 1.5.15 (Breaking change):
438
-
439
- - remove getValue / setValue in HttpRequest
440
- - add setPrincipalId / getPrincipalId in HttpRequest
441
- - adjust Socket Server
442
-
443
- #### 1.5.12:
444
-
445
- - handle socket in lambda wrapper
446
-
447
- #### 1.5.11:
448
-
449
- - fix ServerSocket
450
-
451
- #### 1.5.6:
452
-
453
- - update claire core
454
- - fix ServerSocket
455
-
456
- #### 1.5.4:
457
-
458
- - run middleware before socket authentication
459
-
460
- #### 1.5.2:
461
-
462
- - add websocket support in ExpressWrapper
463
-
464
- #### 1.5.1:
465
-
466
- - update claire core
467
-
468
- #### 1.5.0:
469
-
470
- - revert back to 1.3.38
471
-
472
- #### 1.3.38:
473
-
474
- - export QueryCondition
475
-
476
- #### 1.3.37:
477
-
478
- - return error name instead of TRANSACTION_ERROR
479
- - update claire core
480
-
481
- #### 1.3.36:
482
-
483
- - fix missing down script of unique constraint in database migrator
484
- - add rollback to database migrator
485
-
486
- #### 1.3.34:
487
-
488
- - export AbstractDatabaseMigrator
489
- - fix DefaultSqlDatabaseMigrator not generate new unique constraints for new field
490
-
491
- #### 1.3.32:
492
-
493
- - fix DefaultSqlDatabaseMigrator missing foreign constraint check when add/remove fields
494
-
495
- #### 1.3.31:
496
-
497
- - update server modify
498
-
499
- #### 1.3.30:
500
-
501
- - adjust body raw parser in ExpressWrapper
502
-
503
- #### 1.3.28:
504
-
505
- - fix not supply HttpResponse in Http handler
506
-
507
- #### 1.3.27:
508
-
509
- - add body parser raw middleware
510
-
511
- #### 1.3.26:
512
-
513
- - modify express wrapper send result
514
-
515
- #### 1.3.25:
516
-
517
- - add request options mapper in LambdaWrapper
518
-
519
- #### 1.3.24:
520
-
521
- - add LambdaWrapper
522
-
523
- #### 1.3.23:
524
-
525
- - add ExpressWrapper
526
-
527
- #### 1.3.22:
528
-
529
- - merge accessConditions in CrudHttpController
530
-
531
- #### 1.3.21:
532
-
533
- - DefaultSqlDatabaseMigrator will no longer generate remove table query.
534
-
535
- #### 1.3.20:
536
-
537
- - add permissionGroup and displayName metadata for EndpointMetadata
538
-
539
- #### 1.3.16:
540
-
541
- - update claire core
542
- - allow empty records for CrudHttpController createMany
543
-
544
- #### 1.3.15:
545
-
546
- - fix incorrect parse Http params
547
-
548
- #### 1.3.13:
549
-
550
- - update claire core
551
-
552
- #### 1.3.12:
553
-
554
- - re-introduce terser plugin
555
- - update claire core
556
-
557
- #### 1.3.10:
558
-
559
- - emit source map
560
-
561
- #### 1.3.9:
562
-
563
- - update claire core
564
-
565
- #### 1.3.8:
566
-
567
- - fix missing HttpResponse export
568
-
569
- #### 1.3.7:
570
-
571
- - upgrade Clairejs/core
572
-
573
- #### 1.3.6:
574
-
575
- - upgrade Clairejs/core
576
-
577
- - interpret @ServerTime and @Timestamp
578
-
579
- #### 1.3.2 (Breaking change):
580
-
581
- - re-introduce http response to controller
582
-
583
- #### 1.2.6:
584
-
585
- - add unaccent operators (uSUBSTR, iuSUBSTR)
586
-
587
- #### 1.2.5:
588
-
589
- - allow multiple calls to boot
590
-
591
- #### 1.2.4:
592
-
593
- - fix http request handler parse get and delete request body
594
-
595
- #### 1.2.2:
596
-
597
- - split database migrator
598
- - rework of ClaireServer to be request handler
599
- - remove dependency of expressjs and its middleware
600
-
601
- #### 1.1.9:
602
-
603
- - revert 1.1.8
604
-
605
- #### 1.1.8:
606
-
607
- - init app when getExpressApp
608
-
609
- #### 1.1.7:
610
-
611
- - add pg-hstore as dependency
612
-
613
- #### 1.1.6:
614
-
615
- - fix autoCommit in @Transactional
616
-
617
- #### 1.1.5:
618
-
619
- - use AbstractModel id field for primary key query
620
-
621
- #### 1.1.3:
622
-
623
- - fix returning ids for updateMany and deleteMany
624
-
625
- #### 1.1.2:
626
-
627
- - fix not auto generate migration when changing cascade of @FK
628
- - set build target es6
629
-
630
- #### 1.1.0:
631
-
632
- - fix foreign key cascase delete
633
- - fix auto commit of crud http controller
634
- - return array of ids when updateMany or deleteMany
635
-
636
- #### 1.0.22:
637
-
638
- - CrudHttpController exposes static validators
639
-
640
- #### 1.0.21:
641
-
642
- - update Clairejs Core
643
-
644
- #### 1.0.20:
645
-
646
- - update CrudHttpController for query change
647
-
648
- #### 1.0.17:
649
-
650
- - perform json parsing for fields of request params and queries
651
-
652
- #### 1.0.15:
653
-
654
- - fix @Searchable in CrudHttpController
655
-
656
- #### 1.0.13:
657
-
658
- - add iSUBSTR operator to search for case insensitive string
659
-
660
- #### 1.0.9:
661
-
662
- - fix CrudHttpController endpoint naming
663
-
664
- #### 1.0.8:
665
-
666
- - fix DefaultHttpRequestHandler upgrade Http
667
-
668
- #### 1.0.6:
669
-
670
- - fix DefaultHttpRequestHandler cannot return request body when no validator is provided
1
+ ## Change Log
2
+
3
+ #### 3.6.9
4
+
5
+ - handle default "" or "/" endpoint correctly
6
+ - fix CrudHttpController filter by boolean field
7
+ - fix AwsSocketManager not remove socket from channel after disconnection
8
+ - support @HasOne for Crud controller
9
+ - fix nested queries for ModelRepository
10
+
11
+ #### 3.6.3
12
+
13
+ - fix onChannelConnected cannot send back data to socket (because socket was not yet added to channel and old instance was used)
14
+ - add READY socket message
15
+
16
+ #### 3.6.0
17
+
18
+ - move database to @clairejs/orm package. Bye bye...
19
+
20
+ #### 3.5.4
21
+
22
+ - fix aws get socket by id
23
+ - send error when close socket
24
+ - remove constructor dependency of socket connection handler in socket managers
25
+
26
+ #### 3.5.0
27
+
28
+ - use ioredis instead of redis (for redlock to work)
29
+ - update job interfaces
30
+ - adapt socket managers to use ioredis
31
+
32
+ #### 3.4.0
33
+
34
+ - add job related classes
35
+
36
+ #### 3.3.27
37
+
38
+ - add random order
39
+ - add \_nin operator
40
+
41
+ #### 3.3.26
42
+
43
+ - remove socket if authentication failed for aws socket manager
44
+ - fix lambda request mapper
45
+ - fix Express parse Api gateway query for socket connection
46
+ - add debug log
47
+ - refactor principal data resolver for socket manager
48
+
49
+ #### 3.3.19
50
+
51
+ - ExpressWrapper don't send response for gateway socket integration (except for connection request)
52
+ - fix ExpressWrapper handle APi gateway socket message data
53
+ - fix LocalSocketManager get socket by id
54
+ - fix auth resolver typing
55
+ - fix socket data parsing problem
56
+ - fix local socket manager subscribe
57
+ - update redis client to v4
58
+
59
+ #### 3.3.10
60
+
61
+ - fix LambdaWrapper receive ClaireApp factory
62
+ - socket pong return original data
63
+ - fix ModelRepository getNestedQueries
64
+ - add ops to ICrudRepository
65
+
66
+ #### 3.3.5
67
+
68
+ - fix socket auth provider
69
+ - add getSocketsByChannels
70
+ - fix express server exit close connection
71
+ - update socket manager to support multiple instances
72
+
73
+ #### 3.2.8
74
+
75
+ - fix CrudHttpController condition check for update body
76
+
77
+ #### 3.2.6
78
+
79
+ - add cache to RedisRbacAuthProvider
80
+
81
+ #### 3.2.5
82
+
83
+ - add TfaRequired() decorator and hasTfa to IPrincipal
84
+ - abstract DefaultHttpRequestHandler accessControl
85
+
86
+ #### 3.2.4
87
+
88
+ - IPrincipal id to be any
89
+
90
+ #### 3.2.3
91
+
92
+ - simplify dto dissolver interface
93
+ - introduce DtoRepository
94
+
95
+ #### 3.2.0
96
+
97
+ - introduce ICrudRepository
98
+ - CrudHttpController now requires param of ICrudRepository
99
+
100
+ #### 3.1.16
101
+
102
+ - fix uri mapper in CRUD update request
103
+
104
+ #### 3.1.15
105
+
106
+ - re-implement @CurrentUser decorator
107
+
108
+ #### 3.1.14
109
+
110
+ - fix UriMapper & UriMapperHandler types
111
+
112
+ #### 3.1.13
113
+
114
+ - provide IQueryProvider to uriMapper, move uriMapper to server logic
115
+ - provide tmpUri to uriMapper in ModelRepository
116
+
117
+ #### 3.1.11
118
+
119
+ - fix CrudHttpController missing description
120
+ - fix projection query data type
121
+
122
+ #### 3.1.9
123
+
124
+ - strip response data if responseDto is present
125
+
126
+ #### 3.1.8
127
+
128
+ - return 401 http code if not auth throw
129
+
130
+ #### 3.1.7
131
+
132
+ - fix CrudHtppController merge wrong endpoint
133
+
134
+ #### 3.1.5
135
+
136
+ - fix aws socket manager parse null redis
137
+
138
+ #### 3.1.4
139
+
140
+ - abstract file service and cache service does not extends AbstractService anymore
141
+ - fix abstract file service
142
+
143
+ #### 3.1.2
144
+
145
+ - fix server socket sending incorrect plain message
146
+
147
+ #### 3.1.1
148
+
149
+ - fix server socket
150
+ - add permission conditions to CrudHttpController
151
+ - add abstract services
152
+ - add FileUploadHandler
153
+ - add Abstract RbacAuthProvider, Redis & Cache Rbac Auth Provider
154
+ - add rbac dto
155
+ - add MaximumQueryLimit & DtoFieldValidation conditions
156
+
157
+ #### 3.0.36
158
+
159
+ - fix crud controller metadata
160
+
161
+ #### 3.0.33
162
+
163
+ - add @ApiDescription
164
+ - add CrudHttpController metadata description
165
+
166
+ #### 3.0.30
167
+
168
+ - fix objectTypeConstructor
169
+
170
+ #### 3.0.29:
171
+
172
+ - @Socket -> @Message
173
+ - use @Socket to get socket injection in controller method
174
+
175
+ #### 3.0.26:
176
+
177
+ - add error log in http request handler
178
+
179
+ #### 3.0.25:
180
+
181
+ - add null search in vector
182
+ - support array search for isSymbol field
183
+
184
+ #### 3.0.22:
185
+
186
+ - fix timestamp field
187
+
188
+ #### 3.0.19:
189
+
190
+ - fix error throw in transactional
191
+
192
+ #### 3.0.18:
193
+
194
+ - fix not escape search value
195
+ - fix accent & sensitive search in Mysql and Postgres
196
+
197
+ #### 3.0.15:
198
+
199
+ - require injection of database adapter in AbstractSerivce & AbstractHttpController
200
+
201
+ #### 3.0.14:
202
+
203
+ - add getById and getByIds to IQuery
204
+
205
+ #### 3.0.12:
206
+
207
+ - fix error return
208
+
209
+ #### 3.0.10:
210
+
211
+ - remove count query when getOne
212
+
213
+ #### 3.0.8:
214
+
215
+ - freeze table name in join clause
216
+
217
+ #### 3.0.6:
218
+
219
+ - fix index export
220
+ - fix AbstractAccessCondition signature
221
+
222
+ #### 3.0.5:
223
+
224
+ - tested on Postgres & MySql
225
+ - add join ability to IQuery, awesome!!
226
+
227
+ #### 3.0.3: http method decorator return type check
228
+
229
+ - add @ApiResponse decorator to store response body validator
230
+ - add TypedPropertyDescriptor in HTTP method decorator to validate function return type (Promise<HttpResponse<any>>>)
231
+
232
+ #### 3.0.2: improve http response
233
+
234
+ - add binary response
235
+
236
+ #### 3.0.0:
237
+
238
+ - update claire core 3.0
239
+ - controller function param decorators
240
+ - ResponseBuilder
241
+ - remove ops in getMany
242
+
243
+ #### 2.3.13:
244
+
245
+ - update raw query function signature
246
+
247
+ #### 2.3.12:
248
+
249
+ - fix & export CrudService
250
+
251
+ #### 2.3.10:
252
+
253
+ - Array & Object model field persist & parse
254
+
255
+ #### 2.3.9:
256
+
257
+ - @TextField will default to Sequelize.TEXT if length is not specified
258
+
259
+ #### 2.3.6:
260
+
261
+ - fix missing beforeCreate call when update nesting
262
+
263
+ #### 2.3.1:
264
+
265
+ - fix returning nested uris
266
+
267
+ #### 2.3.0:
268
+
269
+ - introduce CrudService
270
+ - CrudHttpController support @HasMany
271
+
272
+ #### 2.2.12:
273
+
274
+ - fix isIntegral default
275
+
276
+ #### 2.2.10:
277
+
278
+ - update `CrudHttpController` Update and Delete to return `Partial<T>`
279
+
280
+ #### 2.2.2:
281
+
282
+ - fix `@CurrentUser` decorator
283
+ - implement `@CurrentUser` decorator
284
+
285
+ #### 2.2.0:
286
+
287
+ - add `AbstractFileUploadHandler` and handle file upload in `CrudHttpController`
288
+ - fix migration contraint remove order
289
+
290
+ #### 2.1.20:
291
+
292
+ - extends IPrincipal
293
+
294
+ #### 2.1.19:
295
+
296
+ - fix crud http controller not init database adapter
297
+
298
+ #### 2.1.18:
299
+
300
+ - downgrade webpack
301
+
302
+ #### 2.1.16:
303
+
304
+ - add pg-hstore
305
+
306
+ #### 2.1.15:
307
+
308
+ - add optional injection for socket manager
309
+
310
+ #### 2.1.14:
311
+
312
+ - AwsSocketManger needs always to be fed by JSON object
313
+
314
+ #### 2.1.13:
315
+
316
+ - correct json parsing when hanling aws socket message
317
+
318
+ #### 2.1.11:
319
+
320
+ - adjust getMany and getRecords to return Pick type based on projection
321
+ - add getRecords for IQuery to return just the records
322
+
323
+ #### 2.1.9:
324
+
325
+ - fix CrudHttpController updateMany FilterField condition check
326
+
327
+ #### 2.1.8:
328
+
329
+ - fix server socket remove not delete its redis info
330
+ - add socket created timestamp info
331
+ - add get all alive sockets to remove stale sockets in server
332
+
333
+ #### 2.1.5:
334
+
335
+ - support model defualt value in db migrator & adapter
336
+
337
+ #### 2.1.3:
338
+
339
+ - add test for cascade delete
340
+
341
+ #### 2.1.2:
342
+
343
+ - update claire core
344
+ - fix converting QueryCondition use "and" as default operator
345
+
346
+ #### 2.1.1:
347
+
348
+ - update claire core
349
+ - update implementation of FileLogMedium
350
+
351
+ #### 2.0.26:
352
+
353
+ - parse client socket data
354
+ - add more debug log
355
+ - fix ExpressWrapper AWS GW socket http integration
356
+
357
+ #### 2.0.17:
358
+
359
+ - add AWS API GW socket request parser for express
360
+
361
+ #### 2.0.16:
362
+
363
+ - add log to http request handler
364
+ - refactor to allow AwsSocketManager to be used with ExpressWrapper
365
+
366
+ #### 2.0.14:
367
+
368
+ - fix express socket unique id
369
+
370
+ #### 2.0.13:
371
+
372
+ - update error code from claire core
373
+
374
+ #### 2.0.12:
375
+
376
+ - export Get, Post, Put, Del decorators
377
+
378
+ #### 2.0.11:
379
+
380
+ - add log in http request handler
381
+ - fix AbstractAccessCondition signature
382
+
383
+ #### 2.0.9:
384
+
385
+ - fix AccessCondition (to use injection)
386
+ - fix ExpressWrapper & LambdaWrapper to resolve AbstractServerSocketManager
387
+ - remove getMountedEndpointInfo from AbstractHttpRequestHandler, move to ServerGlobalStore
388
+ - fix property assignment in isolated transactional object
389
+ - add log for AwsSocketManager, fix connection problem to redis
390
+
391
+ #### 2.0.1:
392
+
393
+ - fix some import redundancies
394
+
395
+ #### 2.0.0:
396
+
397
+ - Upgrade with claire core 2.0.0
398
+
399
+ #### 1.6.4:
400
+
401
+ - Add pong socket response
402
+
403
+ #### 1.6.3:
404
+
405
+ - AbstractDatabaseMigrator: supply migration directory to migrate and rollback functions
406
+ - fix migrator cli path
407
+
408
+ #### 1.6.1:
409
+
410
+ - AbstractPrincipal -> IPrincipal (for serialization)
411
+
412
+ #### 1.5.51:
413
+
414
+ - fix AwsSocketManager not release redis connection, add more log
415
+ - fix ExpressWrapper unhandled socket promise exception
416
+
417
+ #### 1.5.39 (Breaking change):
418
+
419
+ - fix properties null check
420
+ - socket multiplex
421
+
422
+ #### 1.5.28:
423
+
424
+ - fix server socket authId => authInfo
425
+
426
+ #### 1.5.26:
427
+
428
+ - add OwnedResourceAccessCondition
429
+
430
+ #### 1.5.24:
431
+
432
+ - replace HttpRequest.getPrincipalId by HttpRequest.getAuthInfo
433
+
434
+ #### 1.5.23:
435
+
436
+ - fix ServerSocket
437
+ - fix not remove disconnect socket from socket manager
438
+
439
+ #### 1.5.15 (Breaking change):
440
+
441
+ - remove getValue / setValue in HttpRequest
442
+ - add setPrincipalId / getPrincipalId in HttpRequest
443
+ - adjust Socket Server
444
+
445
+ #### 1.5.12:
446
+
447
+ - handle socket in lambda wrapper
448
+
449
+ #### 1.5.11:
450
+
451
+ - fix ServerSocket
452
+
453
+ #### 1.5.6:
454
+
455
+ - update claire core
456
+ - fix ServerSocket
457
+
458
+ #### 1.5.4:
459
+
460
+ - run middleware before socket authentication
461
+
462
+ #### 1.5.2:
463
+
464
+ - add websocket support in ExpressWrapper
465
+
466
+ #### 1.5.1:
467
+
468
+ - update claire core
469
+
470
+ #### 1.5.0:
471
+
472
+ - revert back to 1.3.38
473
+
474
+ #### 1.3.38:
475
+
476
+ - export QueryCondition
477
+
478
+ #### 1.3.37:
479
+
480
+ - return error name instead of TRANSACTION_ERROR
481
+ - update claire core
482
+
483
+ #### 1.3.36:
484
+
485
+ - fix missing down script of unique constraint in database migrator
486
+ - add rollback to database migrator
487
+
488
+ #### 1.3.34:
489
+
490
+ - export AbstractDatabaseMigrator
491
+ - fix DefaultSqlDatabaseMigrator not generate new unique constraints for new field
492
+
493
+ #### 1.3.32:
494
+
495
+ - fix DefaultSqlDatabaseMigrator missing foreign constraint check when add/remove fields
496
+
497
+ #### 1.3.31:
498
+
499
+ - update server modify
500
+
501
+ #### 1.3.30:
502
+
503
+ - adjust body raw parser in ExpressWrapper
504
+
505
+ #### 1.3.28:
506
+
507
+ - fix not supply HttpResponse in Http handler
508
+
509
+ #### 1.3.27:
510
+
511
+ - add body parser raw middleware
512
+
513
+ #### 1.3.26:
514
+
515
+ - modify express wrapper send result
516
+
517
+ #### 1.3.25:
518
+
519
+ - add request options mapper in LambdaWrapper
520
+
521
+ #### 1.3.24:
522
+
523
+ - add LambdaWrapper
524
+
525
+ #### 1.3.23:
526
+
527
+ - add ExpressWrapper
528
+
529
+ #### 1.3.22:
530
+
531
+ - merge accessConditions in CrudHttpController
532
+
533
+ #### 1.3.21:
534
+
535
+ - DefaultSqlDatabaseMigrator will no longer generate remove table query.
536
+
537
+ #### 1.3.20:
538
+
539
+ - add permissionGroup and displayName metadata for EndpointMetadata
540
+
541
+ #### 1.3.16:
542
+
543
+ - update claire core
544
+ - allow empty records for CrudHttpController createMany
545
+
546
+ #### 1.3.15:
547
+
548
+ - fix incorrect parse Http params
549
+
550
+ #### 1.3.13:
551
+
552
+ - update claire core
553
+
554
+ #### 1.3.12:
555
+
556
+ - re-introduce terser plugin
557
+ - update claire core
558
+
559
+ #### 1.3.10:
560
+
561
+ - emit source map
562
+
563
+ #### 1.3.9:
564
+
565
+ - update claire core
566
+
567
+ #### 1.3.8:
568
+
569
+ - fix missing HttpResponse export
570
+
571
+ #### 1.3.7:
572
+
573
+ - upgrade Clairejs/core
574
+
575
+ #### 1.3.6:
576
+
577
+ - upgrade Clairejs/core
578
+
579
+ - interpret @ServerTime and @Timestamp
580
+
581
+ #### 1.3.2 (Breaking change):
582
+
583
+ - re-introduce http response to controller
584
+
585
+ #### 1.2.6:
586
+
587
+ - add unaccent operators (uSUBSTR, iuSUBSTR)
588
+
589
+ #### 1.2.5:
590
+
591
+ - allow multiple calls to boot
592
+
593
+ #### 1.2.4:
594
+
595
+ - fix http request handler parse get and delete request body
596
+
597
+ #### 1.2.2:
598
+
599
+ - split database migrator
600
+ - rework of ClaireServer to be request handler
601
+ - remove dependency of expressjs and its middleware
602
+
603
+ #### 1.1.9:
604
+
605
+ - revert 1.1.8
606
+
607
+ #### 1.1.8:
608
+
609
+ - init app when getExpressApp
610
+
611
+ #### 1.1.7:
612
+
613
+ - add pg-hstore as dependency
614
+
615
+ #### 1.1.6:
616
+
617
+ - fix autoCommit in @Transactional
618
+
619
+ #### 1.1.5:
620
+
621
+ - use AbstractModel id field for primary key query
622
+
623
+ #### 1.1.3:
624
+
625
+ - fix returning ids for updateMany and deleteMany
626
+
627
+ #### 1.1.2:
628
+
629
+ - fix not auto generate migration when changing cascade of @FK
630
+ - set build target es6
631
+
632
+ #### 1.1.0:
633
+
634
+ - fix foreign key cascase delete
635
+ - fix auto commit of crud http controller
636
+ - return array of ids when updateMany or deleteMany
637
+
638
+ #### 1.0.22:
639
+
640
+ - CrudHttpController exposes static validators
641
+
642
+ #### 1.0.21:
643
+
644
+ - update Clairejs Core
645
+
646
+ #### 1.0.20:
647
+
648
+ - update CrudHttpController for query change
649
+
650
+ #### 1.0.17:
651
+
652
+ - perform json parsing for fields of request params and queries
653
+
654
+ #### 1.0.15:
655
+
656
+ - fix @Searchable in CrudHttpController
657
+
658
+ #### 1.0.13:
659
+
660
+ - add iSUBSTR operator to search for case insensitive string
661
+
662
+ #### 1.0.9:
663
+
664
+ - fix CrudHttpController endpoint naming
665
+
666
+ #### 1.0.8:
667
+
668
+ - fix DefaultHttpRequestHandler upgrade Http
669
+
670
+ #### 1.0.6:
671
+
672
+ - fix DefaultHttpRequestHandler cannot return request body when no validator is provided