@clairejs/server 3.6.19 → 3.6.22

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